<%= render_agile_charts_breadcrumb %>

<%= @query.new_record? ? l(:label_agile_chart_plural) : h(@query.name) %>

<% html_title(@query.new_record? ? l(:label_agile_chart_plural) : @query.name) %> <%= form_tag({ :controller => 'agile_charts', :action => 'show', :project_id => @project }, :method => :get, :id => 'query_form') do %>
<%= hidden_field_tag 'set_filter', '1' %>
"><%= l(:label_filter_plural) %>
<%= render :partial => 'queries/filters', :locals => {:query => @query} %>
<%= l(:label_options) %>
<%= select_tag 'chart', options_charts_for_select(@chart), onchange: "toggleChartUnit($(this).val(), 'chart-unit-row');" %> <%= select_tag 'chart_unit', options_chart_units_for_select(@query.chart_unit) %>
<%= l(:label_agile_interval_size) %> <%= select_tag 'interval_size', options_for_select(RedmineAgile::Charts::AgileChart::TIME_INTERVALS.map { |i| [l(:"label_agile_#{i}"), i] }, @query.interval_size) %>

<%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %> <%= link_to l(:button_clear), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload' %>

<% end %> <%= error_messages_for 'query' %> <%= render_agile_chart(@chart, @issues) if @query.valid? %> <% content_for :header_tags do %> <%= chartjs_assets %> <%= javascript_include_tag 'redmine_agile', plugin: 'redmine_agile' %> <% end %> <% content_for :sidebar do %> <%= render :partial => 'agile_boards/issues_links' %> <%= render :partial => 'agile_charts/agile_charts' %> <% end %> <%= javascript_tag do %> var chartsWithUnits = <%= raw RedmineAgile::Charts::Helper::CHARTS_WITH_UNITS.to_json %> $(document).ready(function() { toggleChartUnit($('#chart').val(), 'chart-unit-row'); /* Hide chart_period checkbox so that it couldn't be unchecked */ hideChartPeriodCheckbox(); }); <% end %>