form-row.hbs 548 B

12345678910111213141516171819202122
  1. <label for="{{for}}" class="{{label-class}} control-label">{{label}}</label>
  2. <div class="{{control-class}}">
  3. {{yield}}
  4. {{#if hasFeedback}}
  5. <span class="glyphicon {{if hasSuccess "glyphicon-ok" "glyphicon-remove"}} form-control-feedback" aria-hidden="true"></span>
  6. {{/if}}
  7. {{#if errors }}
  8. <div class="help-block">
  9. {{#each error in errors}}
  10. <div>
  11. <strong>{{error}}</strong>
  12. </div>
  13. {{/each}}
  14. </div>
  15. {{/if}}
  16. {{#if help_text}}
  17. <span class="help-block">{{help_text}}</span>
  18. {{/if}}
  19. </div>