Allow user to download a previously uploaded pdf

This commit is contained in:
richard-dds
2019-08-29 15:46:30 -04:00
parent 922a48f76a
commit b26cd3ffae
6 changed files with 32 additions and 20 deletions

View File

@@ -4,7 +4,8 @@
<uploadinput
inline-template
{% if not field.errors %}
v-bind:initial-data='{{ {"filename": field.filename.data, "objectName": field.object_name.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") }}
<a class="uploaded-file__name" v-html="baseName" v-bind:href="downloadLink"></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 }'>