editCalendarEvent.handlebars 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <form action='#' id='edit_calendar_event_form' style='padding: 5px; width: 400px'>
  2. <div class="event-details-content">
  3. <table class="formtable" style="width: 100%;" role="presentation">
  4. <tr>
  5. <td style="vertical-align: top;"><label for="calendar_event_title">{{#t "title"}}Title:{{/t}}</label></td>
  6. <td>
  7. {{#if lockedTitle}}
  8. {{title}}
  9. {{else}}
  10. <input id="calendar_event_title" name="calendar_event[title]" size="30" maxlength="255" style="width: 150px;" type="text" value="{{title}}"/>
  11. {{/if}}
  12. </td>
  13. </tr>
  14. <tr>
  15. <td style="vertical-align: top;"><label for="calendar_event_date">{{#t "date"}}Date:{{/t}}</label></td>
  16. <td>
  17. <div class='date_field_container'>
  18. <label class='screenreader-only' id='calendar_event_date_accessible_label'>
  19. {{#t}}Event Date:{{/t}}
  20. {{datepickerScreenreaderPrompt 'date'}}
  21. </label>
  22. <input id="calendar_event_date" type="text"
  23. value="{{fcMomentToDateString date "medium_with_weekday"}}"
  24. name="date" style="width: 100px;" class="date_field"
  25. aria-labelledby='calendar_event_date_accessible_label'
  26. data-tooltip title="{{accessibleDateFormat 'date'}}"/>
  27. </div>
  28. </td>
  29. </tr>
  30. <tr>
  31. <td style="vertical-align: top;"><label for="calendar_event_start_time">{{#t "from"}}From:{{/t}}</label></td>
  32. <td>
  33. <div style="float: left;">
  34. <div class='date_field_container'>
  35. <label class='screenreader-only' id='calendar_event_start_time_accessible_label'>
  36. {{#t}}Event Start Time{{/t}}
  37. {{datepickerScreenreaderPrompt 'time'}}
  38. </label>
  39. <input id="calendar_event_start_time" type="text"
  40. name="start_time" style="width: 60px;"
  41. class="time_field start_time"
  42. aria-labelledby='calendar_event_start_time_accessible_label'
  43. data-tooltip title="{{accessibleDateFormat 'time'}}"/>
  44. </div>
  45. </div>
  46. <div style="float: left; margin: 5px"><label for="calendar_event_end_time">{{#t "timespan_separator"}} to {{/t}}</label></div>
  47. <div style="float: left;">
  48. <div class='date_field_container'>
  49. <label class='screenreader-only' id='calendar_event_end_time_accessible_label'>
  50. {{#t}}Event End Time{{/t}}
  51. {{datepickerScreenreaderPrompt 'time'}}
  52. </label>
  53. <input id="calendar_event_end_time" type="text"
  54. name="end_time" style="width: 60px;"
  55. class="time_field end_time"
  56. aria-labelledby='calendar_event_end_time_accessible_label'
  57. data-tooltip title="{{accessibleDateFormat 'time'}}"/>
  58. </div>
  59. </div>
  60. <div class="clear"></div>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td style="vertical-align: top;"><label for="calendar_event_location_name">{{#t "location"}}Location:{{/t}}</label></td>
  65. <td><input id="calendar_event_location_name" name="location_name" size="30" maxlength="255" style="width: 185px;" type="text" value="{{location_name}}"/></td>
  66. </tr>
  67. <tr class="context_select">
  68. <td><label for="calendar_event_context">{{#t "calendar"}}Calendar:{{/t}}</td>
  69. <td>
  70. <select id="calendar_event_context" class="context_id" name="calendar_event[context_code]">
  71. {{#each contexts}}
  72. {{#if can_create_calendar_events}}
  73. <option value="{{asset_string}}">{{name}}</option>
  74. {{/if}}
  75. {{/each}}
  76. </select>
  77. </td>
  78. </tr>
  79. </table>
  80. </div>
  81. <div class="popover-links-holder event-details-footer pull-right">
  82. <a href="#" class="event_button btn btn-secondary more_options_link">{{#t "links.more_options"}}More Options{{/t}}</a>
  83. <button type="submit" class="event_button btn btn-primary">{{#t "#buttons.submit"}}Submit{{/t}}</button>
  84. </div>
  85. </form>