ContentCheckbox.handlebars 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {{#if hasSubCheckboxes }}
  2. <div class="treeitem-heading">
  3. <a href="#" id="caret-{{cid}}" tabindex="-1" aria-hidden="true" class="checkbox-caret">
  4. <i class="icon-arrow-down"></i><i class="icon-arrow-right"></i></a>
  5. <label class="checkbox">
  6. <input type="checkbox" tabindex="-1" name="{{property}}" value="1" id="checkbox-{{cid}}"/>
  7. <i aria-hidden="true" class="{{iconClass}}"></i>
  8. <span data-bind="title" class="checkbox-title">{{title}}</span>
  9. {{#if screenreaderType}}{{/if}}
  10. {{#if count}}
  11. <span data-bind="count">({{n count}})</span>
  12. {{/if}}
  13. {{#if sub_count}}
  14. <span class="sub_count">({{sub_count}})</span>
  15. {{/if}}
  16. </label>
  17. </div>
  18. <ul role="group">
  19. {{#if showModuleOptions}}
  20. <li>
  21. <div class="module_options" id="module-options-{{cid}}">
  22. <div class="ic-Form-control ic-Form-control--radio ic-Form-control--radio-inline">
  23. <div class="ic-Radio">
  24. <input id="module-option-1-{{cid}}" type="radio" name="module-option-group-{{cid}}" value="one" checked="checked">
  25. <label for="module-option-1-{{cid}}" class="ic-Label">Import as one module</label>
  26. </div>
  27. <div class="ic-Radio">
  28. <input id="module-option-2-{{cid}}" type="radio" name="module-option-group-{{cid}}" value="separate">
  29. <label for="module-option-2-{{cid}}" class="ic-Label">Import sub-modules separately</label>
  30. </div>
  31. </div>
  32. </div>
  33. </li>
  34. {{/if}}
  35. <li data-content="sublevelCheckboxes">
  36. </ul>
  37. {{else}}
  38. <div class="treeitem-heading">
  39. <label class="checkbox no-caret">
  40. <input tabindex="-1" type="checkbox" name="{{property}}" value="1" id="checkbox-{{cid}}" />
  41. {{#if isTopLevel}}<i aria-hidden="true" class="{{iconClass}}"></i>{{/if}}
  42. <span data-bind="title" class="checkbox-title">{{title}}</span>
  43. {{#if screenreaderType}}{{/if}}
  44. {{#if count}}
  45. <span data-bind="count">({{n count}})</span>
  46. {{/if}}
  47. </label>
  48. </div>
  49. {{/if}}