APTrust/dart

View on GitHub
ui/templates/partials/input_file.html

Summary

Maintainability
Test Coverage
<div class="custom-file {{ field.formGroupClass }}">
  <input type="file" id="{{ field.id }}" name="{{ field.name }}"
         class="custom-file-input {{#each field.cssClasses }}{{ this }} {{/each }}"
         {{#each field.attrs }}{{ @key }}="{{ this }}" {{/each }} />
  <label class="custom-file-label {{#if field.help }}clickable{{/if}}" for="{{ field.id }}"
         {{#if field.help }}data-toggle="popover" data-trigger="hover" title="{{ field.label }}" data-content="{{field.help}}"{{/if}}>{{ field.label }} {{#if field.attrs.required}}<i class="fas fa-asterisk fa-xs text-danger"></i>{{/if}} {{#if field.help}}<i class="fas fa-question-circle text-primary"></i>{{/if}}</label>
  <small id="{{ field.id }}Error" class="form-text text-danger">
    {{ field.error }}
  </small>
</div>