34 lines
1.8 KiB
Plaintext
34 lines
1.8 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="">
|
|
<% v = !period_field.new_record? ? format_date(period_field.period_from, column.date_format, true) : "" %>
|
|
<%= f.text_field :period_from, :value => v, :placeholder => column.date_format.upcase, :data => {:format => (column.date_format == "yyyy" ? "yyyy/MM" : column.date_format)}, :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="">
|
|
<% v = !period_field.new_record? ? format_date(period_field.period_to, column.date_format, true) : "" %>
|
|
<%= f.text_field :period_to,:value => v, :placeholder => column.date_format.upcase, :data => {:format => (column.date_format == "yyyy" ? "yyyy/MM" : column.date_format)}, :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> |