32 lines
1.6 KiB
Plaintext
32 lines
1.6 KiB
Plaintext
<div class="control-group ut-control-group">
|
|
<div class="control-group ut-control-group-col">
|
|
<%= f.label :period_from, column.title, :class => "control-label" %>
|
|
<div class="controls">
|
|
<div>
|
|
<div class="default_picker input-append" style="">
|
|
<%= f.text_field :period_from, :value => (period_field.period_from.strftime("%Y/%m/%d") rescue ""), :placeholder => "YYYY/MM/DD", :data => {:format => "yyyy/MM/dd"}, :class => "input-small" %>
|
|
<span class="add-on clearDate"><i class="icons-cross-3"></i></span>
|
|
<span class="add-on iconbtn"><i data-date-icon="icons-calendar" data-time-icon="icons-clock" class="icons-calendar"></i></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="control-group ut-control-group-col ut-control-group-col-right">
|
|
<%= f.label :period_to, "~", :class => "control-label" %>
|
|
<div class="controls">
|
|
<div>
|
|
<div class="default_picker input-append" style="">
|
|
<%= f.text_field :period_to,:value => (period_field.period_to.strftime("%Y/%m/%d") rescue ""), :placeholder => "YYYY/MM/DD", :data => {:format => "yyyy/MM/dd"}, :class => "input-small" %>
|
|
<span class="add-on clearDate"><i class="icons-cross-3"></i></span>
|
|
<span class="add-on iconbtn"><i data-date-icon="icons-calendar" data-time-icon="icons-clock" class="icons-calendar"></i></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% if !period_field.new_record? %>
|
|
<%= f.hidden_field :id %>
|
|
<% else %>
|
|
<%= f.hidden_field :table_column_id, :value => column.id %>
|
|
<% end %>
|
|
|
|
</div> |