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 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <h2><%= @query.new_record? ? l(:label_calendar) : h(@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. <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
  6. <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
  7. <div style="<%= @query.new_record? ? "" : "display: none;" %>">
  8. <%= render :partial => 'queries/filters', :locals => {:query => @query} %>
  9. </div>
  10. </fieldset>
  11. <p style="float:right;">
  12. <%= link_to_previous_month(@year, @month) %> | <%= link_to_next_month(@year, @month) %>
  13. </p>
  14. <p class="buttons">
  15. <%= label_tag('month', l(:label_month)) %>
  16. <%= select_month(@month, :prefix => "month", :discard_type => true) %>
  17. <%= label_tag('year', l(:label_year)) %>
  18. <%= select_year(@year, :prefix => "year", :discard_type => true) %>
  19. <%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %>
  20. <%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %>
  21. </p>
  22. <% end %>
  23. <%= error_messages_for 'query' %>
  24. <% if @query.valid? %>
  25. <%= render :partial => 'common/calendar', :locals => {:calendar => @calendar} %>
  26. <p class="legend cal">
  27. <span class="starting"><%= l(:text_tip_issue_begin_day) %></span>
  28. <span class="ending"><%= l(:text_tip_issue_end_day) %></span>
  29. <span class="starting ending"><%= l(:text_tip_issue_begin_end_day) %></span>
  30. </p>
  31. <% end %>
  32. <% content_for :sidebar do %>
  33. <%= render :partial => 'issues/sidebar' %>
  34. <% end %>
  35. <% html_title(l(:label_calendar)) -%>