2023-08-25 19:08:50 +08:00
|
|
|
<%= form_with model: @my_module, url: my_module_path(@my_module, format: :json), data: { remote: :true }, builder: SciFormHelper::SciFormBuilder do |f| %>
|
2023-11-02 20:35:10 +08:00
|
|
|
<label class="sci-label">
|
|
|
|
<%= t('my_modules.due_date.label') %>
|
|
|
|
</label>
|
|
|
|
<div id="date-time-picker" class="vue-date-time-picker">
|
2023-11-15 22:28:25 +08:00
|
|
|
<input ref="input" type="hidden" v-model="date" data-simple-format="true" name="my_module[due_date]" data-default="<%= l(@my_module.due_date, format: :default) if @my_module.due_date %>" />
|
2023-11-22 04:00:46 +08:00
|
|
|
<date-time-picker class="w-64" :clearable="true" @cleared="clearDate" ref="vueDateTime" @change="updateDate" mode="datetime"></date-time-picker>
|
2023-11-02 20:35:10 +08:00
|
|
|
</div>
|
2017-02-10 21:27:20 +08:00
|
|
|
<% end %>
|