EditHeaderView.handlebars 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {{#if name}}
  2. <h1 class="screenreader-only">{{name}}</h1>
  3. {{else}}
  4. <h1 class="screenreader-only">{{#t}}New Assignment{{/t}}</h1>
  5. {{/if}}
  6. {{#if CONDITIONAL_RELEASE_SERVICE_ENABLED}}
  7. <div class='edit-assignment-header-cr'>
  8. <div id="edit-assignment-header-cr-tabs" class="ui-tabs-minimal">
  9. <ul id="edit-assignment-header-cr-tab-nav">
  10. <li><a href="#edit_assignment_wrapper" id="edit_assignment_link">{{#t}}Details{{/t}}</a></li>
  11. <li><a href="#mastery-paths-editor" id="conditional_release_link">{{#t}}Mastery Paths{{/t}}</a></li>
  12. {{! this is a weird place for this, but we need to make this line up with the tabs}}
  13. <span id='edit-assignment-header-cr-spacer'></span>
  14. {{#if published}}
  15. <span id='assignment-draft-state-cr' class='published-status published'>
  16. <i class="icon-publish icon-Solid"></i>
  17. {{#t}}Published{{/t}}
  18. </span>
  19. {{else}}
  20. <span id='assignment-draft-state-cr' class='published-status unpublished'>
  21. <i class="icon-unpublished"></i>
  22. {{#t}}Not Published{{/t}}
  23. </span>
  24. {{/if}}
  25. {{#unless is_locked}} <!-- delete is only thing in menu, remove the whole thing if locked -->
  26. <span id='assignment-gear-button-cr'>
  27. <a role="button" class="al-trigger btn" href="#">
  28. <i class="icon-settings"></i><i class="icon-mini-arrow-down"></i>
  29. </a>
  30. <ul class="al-options">
  31. <li>
  32. {{#if canDelete}}
  33. <a href="#" class="delete_assignment_link">
  34. {{else}}
  35. <a href="#" class="delete_assignment_link disabled" aria-disabled=true>
  36. {{/if}}
  37. <i class="icon-trash"></i>
  38. {{#t}}Delete{{/t}}
  39. </a>
  40. </li>
  41. </ul>
  42. <span>
  43. {{/unless}}
  44. </ul>
  45. <div id="edit-assignment-header-cr-tab-content">
  46. <form id="edit_assignment_form" class="form-horizontal bootstrap-form">
  47. </form>
  48. </div>
  49. </div>
  50. </div>
  51. {{else}}
  52. <div class="header-bar-right">
  53. <div class="header-group-left">
  54. {{#if published}}
  55. <span id='assignment-draft-state' class='published-status published'>
  56. <i class="icon-publish icon-Solid"></i>
  57. {{#t}}Published{{/t}}
  58. </span>
  59. {{else}}
  60. <span id='assignment-draft-state' class='published-status unpublished'>
  61. <i class="icon-unpublished"></i>
  62. {{#t}}Not Published{{/t}}
  63. </span>
  64. {{/if}}
  65. </div>
  66. <div class="header-bar-right">
  67. {{#unless is_locked}} <!-- delete is only thing in menu, remove the whole thing if locked -->
  68. <div class="admin-links">
  69. <a role="button" class="al-trigger btn" href="#">
  70. <i class="icon-settings"></i><i class="icon-mini-arrow-down"></i>
  71. </a>
  72. <ul class="al-options">
  73. <li>
  74. {{#if canDelete}}
  75. <a href="#" class="delete_assignment_link">
  76. {{else}}
  77. <a href="#" class="delete_assignment_link disabled" aria-disabled=true>
  78. {{/if}}
  79. <i class="icon-trash"></i>
  80. {{#t}}Delete{{/t}}
  81. </a>
  82. </li>
  83. </ul>
  84. </div>
  85. {{/unless}}
  86. </div>
  87. </div>
  88. <form id="edit_assignment_form" class="form-horizontal bootstrap-form">
  89. </form>
  90. {{/if}}