mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-10 01:21:32 +00:00
Remove useless settings when editing a query from the gantt (#16747).
git-svn-id: http://svn.redmine.org/redmine/trunk@13168 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
cf4af2c5db
commit
b189d85dde
@ -23,6 +23,7 @@
|
||||
<%= check_box_tag 'query_is_for_all', 1, @query.project.nil?,
|
||||
:disabled => (!@query.new_record? && (@query.project.nil? || (@query.is_public? && !User.current.admin?))) %></p>
|
||||
|
||||
<% unless params[:gantt] %>
|
||||
<fieldset><legend><%= l(:label_options) %></legend>
|
||||
<p><label for="query_default_columns"><%=l(:label_default_columns)%></label>
|
||||
<%= check_box_tag 'default_columns', 1, @query.has_default_columns?, :id => 'query_default_columns',
|
||||
@ -33,20 +34,22 @@
|
||||
|
||||
<p><label><%= l(:button_show) %></label>
|
||||
<%= available_block_columns_tags(@query) %></p>
|
||||
|
||||
<% if params[:gantt] %>
|
||||
<p><label><%= l(:label_gantt) %></label>
|
||||
</fieldset>
|
||||
<% else %>
|
||||
<fieldset><legend><%= l(:label_options) %></legend>
|
||||
<p><label><%= l(:button_show) %></label>
|
||||
<label class="inline"><%= check_box_tag "query[draw_relations]", "1", @query.draw_relations %> <%= l(:label_related_issues) %></label>
|
||||
<label class="inline"><%= check_box_tag "query[draw_progress_line]", "1", @query.draw_progress_line %> <%= l(:label_gantt_progress_line) %></label>
|
||||
</p>
|
||||
<% end %>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<fieldset id="filters"><legend><%= l(:label_filter_plural) %></legend>
|
||||
<%= render :partial => 'queries/filters', :locals => {:query => query}%>
|
||||
</fieldset>
|
||||
|
||||
<% unless params[:gantt] %>
|
||||
<fieldset><legend><%= l(:label_sort) %></legend>
|
||||
<% 3.times do |i| %>
|
||||
<%= i+1 %>:
|
||||
@ -63,11 +66,14 @@
|
||||
<br />
|
||||
<% end %>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
|
||||
<% unless params[:gantt] %>
|
||||
<%= content_tag 'fieldset', :id => 'columns', :style => (query.has_default_columns? ? 'display:none;' : nil) do %>
|
||||
<legend><%= l(:field_column_names) %></legend>
|
||||
<%= render_query_columns_selection(query) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user