notification_preferences.handlebars 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <div id='notification-legend' aria-hidden='true'>
  2. {{#each buttonData}}
  3. <span><i class='{{icon}}' /> {{title}}</span>
  4. {{/each}}
  5. </div>
  6. {{#each eventGroups}}
  7. <table cellspacing="0"
  8. class="notification-prefs-table table
  9. table-columns-striped table-bordered">
  10. <caption class="screenreader-only">
  11. {{#t "captions.notification_preferences"}}
  12. {{name}} notification events and settings
  13. {{/t}}
  14. </caption>
  15. <thead>
  16. <tr class="grouping">
  17. <th scope="col"><h2 class="group-name">{{name}}</h2></th>
  18. {{#each ../channels}}
  19. <th class="comm-channel" scope="col">
  20. <div class="channel-name">{{name}}</div>
  21. <div class="channel-addr">{{address}}</div>
  22. </th>
  23. {{/each}}
  24. </tr>
  25. </thead>
  26. <tbody>
  27. {{#each items}}
  28. <tr>
  29. <th class="comm-event" scope="row">
  30. <div class="row-title-cell">
  31. <span class="category-name show-popover"
  32. title="<div class='popover-title'>{{title}}</div>
  33. <div class='popover-content'>
  34. <p>{{description}}</p>
  35. </div>">
  36. {{title}}
  37. </span>
  38. {{#if checkName}}
  39. <div class="user-preference">
  40. <label class="checkbox" for="{{checkID}}">
  41. {{checkbox checkName
  42. id=checkID
  43. class="user-pref-check"
  44. checked=checkedState}}
  45. {{checkLabel}}
  46. </label>
  47. </div>
  48. {{/if}}
  49. </div>
  50. </th>
  51. {{#each policyCells}}
  52. <td class='comm-event-option' data-selection='{{selection}}' data-category='{{category}}' data-channelId='{{channelId}}'>
  53. <div class='comm-event-option-contents'>
  54. </div>
  55. </td>
  56. {{/each}}
  57. </tr>
  58. {{/each}}
  59. </tbody>
  60. </table>
  61. {{/each}}