Display and overwrite task order uploads correctly.

- Populate the POSTed form with additional data from the existing TO
  model. This way the pdf attachment has to be explicitly overwritten.
- Adjust the frontend so that if there is an existing PDF, it only sends
  a file input back if the user removes the existing PDF.
This commit is contained in:
dandds
2019-06-11 09:58:32 -04:00
parent 49332c5d6e
commit 0e89a55c07
4 changed files with 18 additions and 7 deletions

View File

@@ -20,7 +20,7 @@
{{ field.label }}
{% endif %}
{{ field.description }}
<div class="upload-widget">
<div v-if="!hideInput" class="upload-widget">
<label class="upload-label" for="{{ field.name }}">
<span class="upload-button">
Browse