wizard-field-upload.hbs 466 B

12345678910111213141516
  1. <label class="wizard-btn wizard-btn-upload-file {{if uploading 'disabled'}}">
  2. {{#if uploading}}
  3. {{i18n "wizard.uploading"}}
  4. {{else}}
  5. {{i18n "wizard.upload"}}
  6. {{d-icon "upload"}}
  7. {{/if}}
  8. <input disabled={{uploading}} type="file" accept="image/*,application/pdf" style="visibility: hidden; position: absolute;" />
  9. </label>
  10. {{#if field.value}}
  11. <a href="{{field.value.url}}" class="filename">
  12. {{field.value.original_filename}}
  13. </a>
  14. {{/if}}