Merge pull request #1005 from dod-ccpo/cloud-pdf-downloads

Cloud pdf downloads
This commit is contained in:
richard-dds
2019-08-30 16:11:27 -04:00
committed by GitHub
12 changed files with 159 additions and 25 deletions

View File

@@ -4,7 +4,8 @@
<uploadinput
inline-template
{% if not field.errors %}
v-bind:initial-data='{{ field.filename.data | tojson }}'
v-bind:filename='{{ field.filename.data | tojson }}'
v-bind:object-name='{{ field.object_name.data | tojson }}'
{% else %}
v-bind:initial-errors='true'
{% endif %}
@@ -16,7 +17,7 @@
<div>
<div v-show="hasAttachment" class="uploaded-file">
{{ Icon("check-circle-solid") }}
<span class="uploaded-file__name" v-html="baseName"></span>
<a class="uploaded-file__name" v-html="baseName" v-bind:href="downloadLink"></a>
<a href="#" class="uploaded-file__remove" v-on:click="removeAttachment">Remove</a>
</div>
<div v-show="hasAttachment === false" v-bind:class='{ "usa-input": true, "usa-input--error": showErrors }'>