APTrust/dart

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

Summary

Maintainability
Test Coverage
{{#each field.choices }}
<div class="form-check {{#each field.cssClasses }}{{ this }}{{/each }}{{ field.formGroupClass }}"
     {{#each field.attrs }}{{ @key }}="{{ this }}"{{/each }}
     {{#if field.hide }}style="display:none;"{{/if}}>
  <label class="form-check-label">
    <input class="form-check-input" type="checkbox" name="{{ ../field.name }}" value="{{ this.value }}" {{#if this.selected }}checked{{/if }} />
    {{ this.label }}
  </label>
</div>
{{/each}}

<small id="{{ field.id }}Error" class="form-text text-danger">
    {{ field.error }}
</small>