Update _form.html.erb

把輸入欄位改成能輸入當月的幾號而非預設為當日
This commit is contained in:
chiu 2019-08-16 10:39:14 +08:00
parent 4c6cc5e836
commit ec87f059f6
1 changed files with 3 additions and 3 deletions

View File

@ -212,7 +212,7 @@
<div class="control-group">
<label class="control-label muted"><%= t("personal_patent.publication_date") %></label>
<div class="controls">
<%= f.datetime_picker :publish_date, :no_label => true, :format=>"yyyy/MM", :value => @patent.publish_date, :new_record => @patent.new_record? %>
<%= f.datetime_picker :publish_date, :no_label => true, :format=>"yyyy/MM/dd", :value => @patent.publish_date, :new_record => @patent.new_record? %>
</div>
</div>
@ -220,7 +220,7 @@
<div class="control-group">
<label class="control-label muted"><%= t("personal_patent.application_date") %></label>
<div class="controls">
<%= f.datetime_picker :application_date, :no_label => true, :format=>"yyyy/MM", :value => @patent.application_date, :new_record => @patent.new_record? %>
<%= f.datetime_picker :application_date, :no_label => true, :format=>"yyyy/MM/dd", :value => @patent.application_date, :new_record => @patent.new_record? %>
</div>
</div>
@ -228,7 +228,7 @@
<div class="control-group">
<label class="control-label muted"><%= t("personal_patent.end_date") %></label>
<div class="controls">
<%= f.datetime_picker :end_date, :no_label => true, :format=>"yyyy/MM", :value => @patent.end_date, :new_record => @patent.new_record? %>
<%= f.datetime_picker :end_date, :no_label => true, :format=>"yyyy/MM/dd", :value => @patent.end_date, :new_record => @patent.new_record? %>
</div>
</div>