|
|
@ -35,33 +35,75 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
<div style="display:none;"> |
|
|
|
<div style="display:none;"> |
|
|
|
<%= f.fields_for :options, timeline_options do |ff| %> |
|
|
|
<%= f.fields_for :options, timeline_options do |ff| %> |
|
|
|
<div class="form--field"> |
|
|
|
<div class="form--field"> |
|
|
|
<%= ff.label :comparison, l('timelines.filter.comparison.none'), for: :timeline_options_comparison_none %> |
|
|
|
<%= ff.label :comparison, l('timelines.filter.comparison.none'), |
|
|
|
|
|
|
|
for: :timeline_options_comparison_none, |
|
|
|
|
|
|
|
class: "form--label" %> |
|
|
|
<div class="form--field-container"> |
|
|
|
<div class="form--field-container"> |
|
|
|
|
|
|
|
<div class="form--radio-button-container"> |
|
|
|
<%= ff.radio_button :comparison, "none", no_label: true %> |
|
|
|
<%= ff.radio_button :comparison, "none", no_label: true %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
<div class="form--field"> |
|
|
|
<%= ff.label :comparison, l('timelines.filter.comparison.relative'), for: :timeline_options_comparison_relative %> |
|
|
|
<%= ff.label :comparison, l('timelines.filter.comparison.relative'), |
|
|
|
|
|
|
|
for: :timeline_options_comparison_relative, |
|
|
|
|
|
|
|
class: "form--label" %> |
|
|
|
<div class="form--field-container"> |
|
|
|
<div class="form--field-container"> |
|
|
|
<%= ff.radio_button :comparison, "relative", no_label: true %> |
|
|
|
<%= ff.radio_button :comparison, "relative" %> |
|
|
|
<%= ff.label :compare_to_relative, l('timelines.filter.comparison.compare_relative', timespan: "") %> |
|
|
|
</div> |
|
|
|
<%= ff.text_field :compare_to_relative, no_label: true %> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="form--grouping"> |
|
|
|
|
|
|
|
<div id="timeline--form--project-filter-timeframe" |
|
|
|
|
|
|
|
class="form--grouping-label"> |
|
|
|
|
|
|
|
<span class="hidden-for-sighted"> |
|
|
|
|
|
|
|
<%= l('timelines.filter.comparison.relative') %> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form--grouping-row"> |
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
|
|
|
|
<%= ff.text_field :compare_to_relative, label: l('timelines.filter.comparison.compare_relative_prefix') %> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
|
|
|
|
<div class="form--field-container inline-label"> |
|
|
|
<%= ff.select :compare_to_relative_unit, |
|
|
|
<%= ff.select :compare_to_relative_unit, |
|
|
|
[ [l('timelines.filter.time_relative.days'), 0], |
|
|
|
options_for_timeunits(nil), |
|
|
|
[l('timelines.filter.time_relative.weeks'), '1'], |
|
|
|
no_label: true %> |
|
|
|
[l('timelines.filter.time_relative.months'), '2'] |
|
|
|
<span class="form-label -transparent"><%=l('timelines.filter.comparison.compare_relative_suffix')%></span> |
|
|
|
], label: "" # FIXME: this breaks with no_label: true |
|
|
|
</div> |
|
|
|
%> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
<div class="form--field"> |
|
|
|
<%= ff.label :comparison, l('timelines.filter.comparison.absolute'), for: :timeline_options_comparison_absolute %> |
|
|
|
<%= ff.label :comparison, |
|
|
|
|
|
|
|
l('timelines.filter.comparison.absolute'), |
|
|
|
|
|
|
|
for: :timeline_options_comparison_absolute, |
|
|
|
|
|
|
|
class: "form--label" %> |
|
|
|
<div class="form--field-container"> |
|
|
|
<div class="form--field-container"> |
|
|
|
<%= ff.radio_button :comparison, "absolute", no_label: true %> |
|
|
|
<%= ff.radio_button :comparison, "absolute" %> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form--grouping"> |
|
|
|
|
|
|
|
<div id="timeline--form--project-filter-timeframe" |
|
|
|
|
|
|
|
class="form--grouping-label"> |
|
|
|
|
|
|
|
<span class="hidden-for-sighted"> |
|
|
|
|
|
|
|
<%= l('timelines.filter.comparison.absolute') %> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form--grouping-row"> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form--grouping-row"> |
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
<%= ff.text_field :compare_to_absolute, label: l('timelines.filter.comparison.compare_absolute', date: "") %> |
|
|
|
<%= ff.text_field :compare_to_absolute, label: l('timelines.filter.comparison.compare_absolute', date: "") %> |
|
|
|
<%= calendar_for('timeline_options_compare_to_absolute') %> |
|
|
|
<%= calendar_for('timeline_options_compare_to_absolute') %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</fieldset> |
|
|
|
</fieldset> |
|
|
|