2021-11-19 20:24:57 +08:00
|
|
|
<% due_date_editable = can_update_my_module_due_date?(my_module) %>
|
2020-03-28 00:35:24 +08:00
|
|
|
|
2021-11-19 20:24:57 +08:00
|
|
|
<span class="date-text" data-editable="<%= due_date_editable %>">
|
2020-03-28 00:35:24 +08:00
|
|
|
<span id="dueDateLabelContainer" class="view-block">
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: "due_date_label" , locals: { my_module: my_module, due_date_editable: due_date_editable } %>
|
2020-03-17 00:55:35 +08:00
|
|
|
</span>
|
2021-11-19 20:24:57 +08:00
|
|
|
<% if due_date_editable %>
|
2020-03-17 00:55:35 +08:00
|
|
|
<div class="datetime-picker-container" id="due-date">
|
2023-11-08 20:52:24 +08:00
|
|
|
<div id="calendarDueDateContainer">
|
2023-11-15 22:28:25 +08:00
|
|
|
<input type="hidden" ref="input" v-model="date" data-simple-format="true" id="calendarDueDate" data-default="<%= l(my_module.due_date, format: :default) if my_module.due_date %>
|
2023-11-14 17:58:38 +08:00
|
|
|
" />
|
2023-11-08 20:52:24 +08:00
|
|
|
<date-time-picker class="w-full" ref="vueDateTime" :teleport="false" @change="updateDate" mode="datetime" :placeholder="'<%= t('my_modules.details.no_due_date_placeholder') %>'"></date-time-picker>
|
2023-10-30 22:14:12 +08:00
|
|
|
</div>
|
|
|
|
<span class="sn-icon sn-icon-close clear-date" data-toggle='clear-date-time-picker' data-target='calendarDueDate'></span>
|
2020-03-17 00:55:35 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</span>
|