You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

show.html.erb 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <h2><%= @query.new_record? ? l(:label_calendar) : @query.name %></h2>
  2. <%= form_tag({:controller => 'calendars', :action => 'show', :project_id => @project},
  3. :method => :get, :id => 'query_form') do %>
  4. <%= hidden_field_tag 'set_filter', '1' %>
  5. <div id="query_form_with_buttons" class="hide-when-print">
  6. <div id="query_form_content">
  7. <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
  8. <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
  9. <div style="<%= @query.new_record? ? "" : "display: none;" %>">
  10. <%= render :partial => 'queries/filters', :locals => {:query => @query} %>
  11. </div>
  12. </fieldset>
  13. </div>
  14. <p class="contextual">
  15. <%= link_to_previous_month(@year, @month, :accesskey => accesskey(:previous)) %> | <%= link_to_next_month(@year, @month, :accesskey => accesskey(:next)) %>
  16. </p>
  17. <p class="buttons">
  18. <%= label_tag('month', l(:label_month)) %>
  19. <%= select_month(@month, :prefix => "month", :discard_type => true) %>
  20. <%= label_tag('year', l(:label_year)) %>
  21. <%= select_year(@year, :prefix => "year", :discard_type => true) %>
  22. <%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %>
  23. <%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %>
  24. </p>
  25. </div>
  26. <% end %>
  27. <%= error_messages_for 'query' %>
  28. <% if @query.valid? %>
  29. <%= render :partial => 'common/calendar', :locals => {:calendar => @calendar} %>
  30. <%= call_hook(:view_calendars_show_bottom, :year => @year, :month => @month, :project => @project, :query => @query) %>
  31. <p class="legend cal">
  32. <span class="starting"><%= l(:text_tip_issue_begin_day) %></span>
  33. <span class="ending"><%= l(:text_tip_issue_end_day) %></span>
  34. <span class="starting ending"><%= l(:text_tip_issue_begin_end_day) %></span>
  35. </p>
  36. <% end %>
  37. <% content_for :sidebar do %>
  38. <%= render :partial => 'issues/sidebar' %>
  39. <% end %>
  40. <% html_title(l(:label_calendar)) -%>