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">
|
2021-11-19 20:24:57 +08:00
|
|
|
<%= render partial: "start_date_label.html.erb" , 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-06-08 14:33:37 +08:00
|
|
|
<span class="sn-icon sn-icon-calendar"></span>
|
2020-03-28 00:35:24 +08:00
|
|
|
<input id="calendarStartDate"
|
|
|
|
type="datetime"
|
|
|
|
data-toggle='date-time-picker'
|
|
|
|
class="form-control calendar-input"
|
|
|
|
readonly
|
2020-05-07 22:11:22 +08:00
|
|
|
placeholder="<%= t('my_modules.details.no_start_date_placeholder') %>"
|
2020-03-28 00:35:24 +08:00
|
|
|
data-date-format="<%= datetime_picker_format_full %>"
|
|
|
|
data-date-locale="<%= I18n.locale %>"
|
|
|
|
data-date-use-current="false"
|
|
|
|
value="<%= my_module.started_on ? l(my_module.started_on, format: :full) : '' %>"/>
|
|
|
|
</div>
|
2023-06-08 23:33:50 +08:00
|
|
|
<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
|
|
|
<% end %>
|
|
|
|
</span>
|