Hard code TO upload description into the UploadInput Macro

This is a temporary fix to avoid spending too much time trying to use app.config variables in a Form class field descriptions and labels. This is tech debt and should be fixed in the future.
This commit is contained in:
leigh-mil
2020-01-27 16:29:25 -05:00
parent 0c408bccfd
commit 745ce713b0
2 changed files with 6 additions and 13 deletions

View File

@@ -24,7 +24,11 @@
{{ field.label }}
{% endif %}
<p>
{{ field.description }}
<!-- TODO: fix this to use field.description -->
<!-- This was temporarily hard coded because we were unable to use
app.config['FILE_SIZE_LIMIT'] in TaskOrderForm field descriptions and labels -->
{% set size_limit = file_size_limit // 1000000 %}
{{ "task_orders.form.supporting_docs_size_limit" | translate({ "file_size_limit": size_limit }) }}
</p>
<div v-if="!hideInput" class="upload-widget">
<label class="upload-label" :for="name">