|
|
|
@ -32,54 +32,71 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
<a href="javascript:"><%= l('timelines.filter.timeline') %></a> |
|
|
|
|
</legend> |
|
|
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= f.text_field :name, required: true %> |
|
|
|
|
</div> |
|
|
|
|
<%= f.fields_for :options, timeline_options do |ff| %> |
|
|
|
|
<div> |
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= ff.hidden_field :exist %> |
|
|
|
|
<%= ff.check_box :hide_chart, { label: l('timelines.filter.hide_chart') }, "yes", "no" %> |
|
|
|
|
<%= f.text_field :name, required: true %> |
|
|
|
|
</div> |
|
|
|
|
<%= f.fields_for :options, timeline_options do |ff| %> |
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= ff.hidden_field :exist %> |
|
|
|
|
<%= ff.check_box :hide_chart, { label: l('timelines.filter.hide_chart') }, "yes", "no" %> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= ff.select(:zoom_factor, |
|
|
|
|
filter_select_i18n_array_with_index_and_none( |
|
|
|
|
timeline.available_zoom_factors, |
|
|
|
|
'timelines.zoom.'), label: l("timelines.filter.zoom")) %> |
|
|
|
|
</div> |
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= ff.select(:zoom_factor, |
|
|
|
|
filter_select_i18n_array_with_index_and_none( |
|
|
|
|
timeline.available_zoom_factors, |
|
|
|
|
'timelines.zoom.'), label: l("timelines.filter.zoom")) %> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= ff.select(:initial_outline_expansion, |
|
|
|
|
filter_select_i18n_array_with_index_and_none( |
|
|
|
|
timeline.available_initial_outline_expansions, |
|
|
|
|
'timelines.outlines.'), |
|
|
|
|
label: l("timelines.filter.outline")) %> |
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= ff.select(:initial_outline_expansion, |
|
|
|
|
filter_select_i18n_array_with_index_and_none( |
|
|
|
|
timeline.available_initial_outline_expansions, |
|
|
|
|
'timelines.outlines.'), |
|
|
|
|
label: l("timelines.filter.outline")) %> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<h4> |
|
|
|
|
<%= l('timelines.filter.timeframe') %> |
|
|
|
|
</h4> |
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= ff.text_field :timeframe_start, label: l('timelines.filter.timeframe_start') %> |
|
|
|
|
<%= calendar_for('timeline_options_timeframe_start') %> |
|
|
|
|
</div> |
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= ff.text_field :timeframe_end, label: l('timelines.filter.timeframe_end') %> |
|
|
|
|
<%= calendar_for('timeline_options_timeframe_end') %> |
|
|
|
|
</div> |
|
|
|
|
<div class="form--field"> |
|
|
|
|
<% if User.current.impaired? %> |
|
|
|
|
<%= ff.select :columns, internationalized_columns_select(timeline.available_columns), |
|
|
|
|
{:selected => timeline.selected_columns}, |
|
|
|
|
{:multiple => true, |
|
|
|
|
:size => 12} %> |
|
|
|
|
<% else %> |
|
|
|
|
<%= ff.label :columns, l("timelines.filter.columns") %> |
|
|
|
|
<%= ff.hidden_field :columns, name: "timeline[options][columns][]", id: "timeline_options_columns_", value: timeline.selected_columns.join(","), :"data-values" => internationalized_columns_select_object(timeline.available_columns).concat(timeline.custom_field_columns).to_json %> |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= ff.select :project_sort, [[l('timelines.filter.sort.date'), 0], [l('timelines.filter.sort.alphabet'), '1']], label: l('timelines.filter.sort.project_sortation') %> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
<div class="form--grouping" role="group" aria-labelledby="timeline--form--timeframe"> |
|
|
|
|
<div id="timeline--form--timeframe" |
|
|
|
|
class="form--grouping-label" |
|
|
|
|
title="<%= l('timelines.filter.timeframe') %>"> |
|
|
|
|
<%= l('timelines.filter.timeframe') %> |
|
|
|
|
</div> |
|
|
|
|
<div class="form--grouping-row"> |
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= ff.text_field :timeframe_start, label: l('timelines.filter.timeframe_start') %> |
|
|
|
|
<%= calendar_for('timeline_options_timeframe_start') %> |
|
|
|
|
</div> |
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= ff.text_field :timeframe_end, label: l('timelines.filter.timeframe_end') %> |
|
|
|
|
<%= calendar_for('timeline_options_timeframe_end') %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="form--field"> |
|
|
|
|
<% if User.current.impaired? %> |
|
|
|
|
<%= ff.select :columns, internationalized_columns_select(timeline.available_columns), |
|
|
|
|
{:selected => timeline.selected_columns}, |
|
|
|
|
{:multiple => true, |
|
|
|
|
:size => 12} %> |
|
|
|
|
<% else %> |
|
|
|
|
<%= ff.label :columns, |
|
|
|
|
l("timelines.filter.columns"), |
|
|
|
|
for: "timeline_options_columns_", |
|
|
|
|
class: "form--label" %> |
|
|
|
|
<div class="form--field-container"> |
|
|
|
|
<%= ff.hidden_field :columns, |
|
|
|
|
name: "timeline[options][columns][]", |
|
|
|
|
id: "timeline_options_columns_", |
|
|
|
|
value: timeline.selected_columns.join(","), |
|
|
|
|
:"data-values" => internationalized_columns_select_object(timeline.available_columns).concat(timeline.custom_field_columns).to_json %> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
<div class="form--field"> |
|
|
|
|
<%= ff.select :project_sort, [[l('timelines.filter.sort.date'), 0], [l('timelines.filter.sort.alphabet'), '1']], label: l('timelines.filter.sort.project_sortation') %> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
</fieldset> |
|
|
|
|