2021-11-19 20:24:57 +08:00
|
|
|
<% start_date_editable = can_update_my_module_start_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="<%= start_date_editable %>">
|
2020-03-28 00:35:24 +08:00
|
|
|
<span id="startDateLabelContainer" class="view-block">
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: "start_date_label" , locals: { my_module: my_module, start_date_editable: start_date_editable } %>
|
2020-03-28 00:35:24 +08:00
|
|
|
</span>
|
2021-11-19 20:24:57 +08:00
|
|
|
<% if start_date_editable %>
|
2020-03-28 00:35:24 +08:00
|
|
|
<div class="datetime-picker-container" id="start-date">
|
2023-10-30 22:14:12 +08:00
|
|
|
<div id="calendarStartDateContainer" class="vue-date-time-picker opacity-0">
|
|
|
|
<input type="hidden" ref="input" v-model="date" id="calendarStartDate" data-default="<%= my_module.started_on %>" />
|
|
|
|
<date-time-picker class="w-full" ref="vueDateTime" @change="updateDate" mode="date" :placeholder="'<%= t('my_modules.details.no_start_date_placeholder') %>'"></date-time-picker>
|
|
|
|
</div>
|
|
|
|
<span class="sn-icon sn-icon-close clear-date" data-toggle='clear-date-time-picker' data-target='calendarStartDate'></span>
|
2020-03-28 00:35:24 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</span>
|