DateShift.handlebars 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <div class="controls">
  2. <label class="checkbox" for="dateAdjustCheckbox">
  3. {{checkbox "adjust_dates.enabled" id="dateAdjustCheckbox"}}
  4. {{#t "checkbox_label"}}Adjust events and due dates{{/t}}
  5. </label>
  6. </div>
  7. <div class="dateAdjustContent" style="display:none">
  8. <br />
  9. <div class="control-group">
  10. <label class="control-label"><strong>{{#t "date_adjustment"}}Date adjustment{{/t}}</strong></label>
  11. <div class="controls">
  12. <div class="radio">
  13. <label>
  14. <input type="radio" name="adjust_dates[operation]" checked id="dateShiftOption" value="shift_dates">
  15. {{#t "shift_dates"}}Shift dates{{/t}}
  16. </label>
  17. </div>
  18. <div class="radio">
  19. <label>
  20. <input type="radio" name="adjust_dates[operation]" id="dateRemoveOption" value="remove_dates">
  21. {{#t "remove_dates"}}Remove dates{{/t}}
  22. </label>
  23. </div>
  24. </div>
  25. </div>
  26. <div class="dateShiftContent" style="display:none">
  27. <div class="control-group">
  28. <label class="control-label">
  29. <strong>{{#t "beginning_date"}}Beginning date{{/t}}</strong>
  30. </label>
  31. <div class="controls">
  32. <div class="pull-left">
  33. <label class="screenreader-only" id="old_start_date_label">
  34. {{#t}}Beginning date{{/t}}
  35. {{datepickerScreenreaderPrompt}}
  36. </label>
  37. <input type="text"
  38. name="date_shift_options[old_start_date]"
  39. id="oldStartDate"
  40. class="span2"
  41. title="{{accessibleDateFormat}}"
  42. aria-labelledby="old_start_date_label"
  43. data-tooltip='{"position":"top"}' />
  44. </div>
  45. <div class="pull-left">
  46. &nbsp; {{#t "beginning_change_to"}}change to{{/t}}
  47. <label class="screenreader-only" id="new_start_date_label">
  48. {{#t}}Change beginning date to{{/t}}
  49. {{datepickerScreenreaderPrompt}}
  50. </label>
  51. <input type="text"
  52. name="date_shift_options[new_start_date]"
  53. id="newStartDate"
  54. class="span2"
  55. title="{{accessibleDateFormat}}"
  56. aria-labelledby="new_start_date_label"
  57. data-tooltip='{"position":"top"}' />
  58. </div>
  59. </div>
  60. </div>
  61. <div class="control-group">
  62. <label class="control-label">
  63. <strong>{{#t "ending_date"}}Ending date{{/t}}</strong>
  64. </label>
  65. <div class="controls">
  66. <div class="pull-left">
  67. <label class="screenreader-only" id="old_end_date_label">
  68. {{#t}}Ending date{{/t}}
  69. {{datepickerScreenreaderPrompt}}
  70. </label>
  71. <input type="text"
  72. name="date_shift_options[old_end_date]"
  73. id="oldEndDate"
  74. class="span2"
  75. title="{{accessibleDateFormat}}"
  76. aria-labelledby="old_end_date_label"
  77. data-tooltip='{"position":"top"}' />
  78. </div>
  79. <div class="pull-left">
  80. &nbsp; {{#t "ending_change_to"}}change to{{/t}}
  81. <label class="screenreader-only" id="new_end_date_label">
  82. {{#t}}Change ending date to{{/t}}
  83. {{datepickerScreenreaderPrompt}}
  84. </label>
  85. <input type="text"
  86. name="date_shift_options[new_end_date]"
  87. id="newEndDate"
  88. class="span2"
  89. title="{{accessibleDateFormat}}"
  90. aria-labelledby="new_end_date_label"
  91. data-tooltip='{"position":"top"}' />
  92. </div>
  93. </div>
  94. </div>
  95. <div class="control-group">
  96. <div id="daySubstitution"></div>
  97. <div class="controls">
  98. <button aria-label="{{#t "add_day_sub_title"}}Add day substitution{{/t}}" href="#" id='addDaySubstitution' class="btn top-margin bottomMargin"><i class="icon-add"></i> {{#t "substitution"}}Substitution{{/t}}</button>
  99. </div>
  100. </div>
  101. </div>
  102. </div>