##// END OF EJS Templates
Don't force download of PDF (#22483)....
Don't force download of PDF (#22483). Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@15409 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r14873:a0a7e9d00179
r15027:3e776af8066e
Show More
_form.html.erb
92 lines | 4.4 KiB | text/plain | TextLexer
Jean-Philippe Lang
"queries" branch merged...
r92 <%= error_messages_for 'query' %>
<div class="box">
<div class="tabular">
Jean-Philippe Lang
Ability to save Gantt query filters (#7836)....
r11790 <%= hidden_field_tag 'gantt', '1' if params[:gantt] %>
Jean-Philippe Lang
"queries" branch merged...
r92 <p><label for="query_name"><%=l(:field_name)%></label>
<%= text_field 'query', 'name', :size => 80 %></p>
Jean-Philippe Lang
Added per user custom queries....
r563
Jean-Philippe Lang
Fixed that user with "Manage public queries" permission, can create global public query (#19842)....
r14006 <% if User.current.admin? || User.current.allowed_to?(:manage_public_queries, @query.project) %>
Jean-Philippe Lang
Role based custom queries (#1019)....
r11764 <p><label><%=l(:field_visible)%></label>
<label class="block"><%= radio_button 'query', 'visibility', Query::VISIBILITY_PRIVATE %> <%= l(:label_visibility_private) %></label>
Jean-Philippe Lang
Fixed that user with "Manage public queries" permission, can create global public query (#19842)....
r14006 <label class="block"><%= radio_button 'query', 'visibility', Query::VISIBILITY_PUBLIC %> <%= l(:label_visibility_public) %></label>
Jean-Philippe Lang
Role based custom queries (#1019)....
r11764 <label class="block"><%= radio_button 'query', 'visibility', Query::VISIBILITY_ROLES %> <%= l(:label_visibility_roles) %>:</label>
<% Role.givable.sorted.each do |role| %>
<label class="block role-visibility"><%= check_box_tag 'query[role_ids][]', role.id, @query.roles.include?(role), :id => nil %> <%= role.name %></label>
<% end %>
<%= hidden_field_tag 'query[role_ids][]', '' %>
</p>
Jean-Philippe Lang
Added per user custom queries....
r563 <% end %>
Jean-Philippe Lang
Added the ability to customize columns of a saved query....
r771
Jean-Philippe Lang
Queries can be marked as 'For all projects'. Such queries will be available on all projects and on the global issue list (#897, closes #671)....
r1296 <p><label for="query_is_for_all"><%=l(:field_is_for_all)%></label>
Jean-Philippe Lang
Fixed that user with "Manage public queries" permission, can create global public query (#19842)....
r14006 <%= check_box_tag 'query_is_for_all', 1, @query.project.nil?, :class => (User.current.admin? ? '' : 'disable-unless-private') %></p>
Jean-Philippe Lang
Queries can be marked as 'For all projects'. Such queries will be available on all projects and on the global issue list (#897, closes #671)....
r1296
Jean-Philippe Lang
Remove useless settings when editing a query from the gantt (#16747)....
r12893 <% unless params[:gantt] %>
Jean-Philippe Lang
Add id and class for easier styling of query filters (#22018)....
r14873 <fieldset id="options"><legend><%= l(:label_options) %></legend>
Jean-Philippe Lang
Added a checkbox on custom query form to explicitly say if the query uses default columns or not....
r772 <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',
Jean-Philippe Lang
JQuery in, Prototype/Scriptaculous out (#11445)....
r9885 :onclick => 'if (this.checked) {$("#columns").hide();} else {$("#columns").show();}' %></p>
Jean-Philippe Lang
Ticket grouping (#2679)....
r2604
<p><label for="query_group_by"><%= l(:field_group_by) %></label>
<%= select 'query', 'group_by', @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, :include_blank => true %></p>
Jean-Philippe Lang
Adds an option for displaying the issue description on the issue list (#3447)....
r10721
<p><label><%= l(:button_show) %></label>
<%= available_block_columns_tags(@query) %></p>
Jean-Philippe Lang
Adds options to display totals on the issue list (#1561)....
r14260
<p><label><%= l(:label_total_plural) %></label>
<%= available_totalable_columns_tags(@query) %></p>
Jean-Philippe Lang
Remove useless settings when editing a query from the gantt (#16747)....
r12893 </fieldset>
<% else %>
Jean-Philippe Lang
Add id and class for easier styling of query filters (#22018)....
r14873 <fieldset id="options"><legend><%= l(:label_options) %></legend>
Jean-Philippe Lang
Remove useless settings when editing a query from the gantt (#16747)....
r12893 <p><label><%= l(:button_show) %></label>
Jean-Philippe Lang
Ability to save Gantt query filters (#7836)....
r11790 <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>
Jean-Philippe Lang
Role based custom queries (#1019)....
r11764 </fieldset>
Jean-Philippe Lang
Remove useless settings when editing a query from the gantt (#16747)....
r12893 <% end %>
Jean-Philippe Lang
"queries" branch merged...
r92 </div>
Jean-Philippe Lang
Build issue filters using javascript....
r9979 <fieldset id="filters"><legend><%= l(:label_filter_plural) %></legend>
Jean-Philippe Lang
"queries" branch merged...
r92 <%= render :partial => 'queries/filters', :locals => {:query => query}%>
Jean-Philippe Lang
Move the filters buttons inside the filters fieldset on the issue list (closes #614)....
r1247 </fieldset>
Jean-Philippe Lang
Remove useless settings when editing a query from the gantt (#16747)....
r12893 <% unless params[:gantt] %>
Jean-Philippe Lang
Ability to save "sort order" in custom queries (#2899)....
r2504 <fieldset><legend><%= l(:label_sort) %></legend>
<% 3.times do |i| %>
Jean-Philippe Lang
Give numbers in query sort criteria consistent width for non-monospaced fonts (#21119)....
r14408 <%= content_tag(:span, "#{i+1}:", :class => 'query_sort_criteria_count')%>
Toshi MARUYAMA
[#9489] added invisible labels for queries...
r7558 <%= label_tag "query_sort_criteria_attribute_" + i.to_s,
l(:description_query_sort_criteria_attribute), :class => "hidden-for-sighted" %>
<%= select_tag("query[sort_criteria][#{i}][]",
options_for_select([[]] + query.available_columns.select(&:sortable?).collect {|column| [column.caption, column.name.to_s]}, @query.sort_criteria_key(i)),
:id => "query_sort_criteria_attribute_" + i.to_s)%>
<%= label_tag "query_sort_criteria_direction_" + i.to_s,
l(:description_query_sort_criteria_direction), :class => "hidden-for-sighted" %>
<%= select_tag("query[sort_criteria][#{i}][]",
options_for_select([[], [l(:label_ascending), 'asc'], [l(:label_descending), 'desc']], @query.sort_criteria_order(i)),
:id => "query_sort_criteria_direction_" + i.to_s) %>
<br />
Jean-Philippe Lang
Ability to save "sort order" in custom queries (#2899)....
r2504 <% end %>
</fieldset>
Jean-Philippe Lang
Remove useless settings when editing a query from the gantt (#16747)....
r12893 <% end %>
Jean-Philippe Lang
Ability to save "sort order" in custom queries (#2899)....
r2504
Jean-Philippe Lang
Remove useless settings when editing a query from the gantt (#16747)....
r12893 <% unless params[:gantt] %>
Jean-Philippe Lang
Fixed that columns selection in not displayed on the custom query form (#10972)....
r9519 <%= content_tag 'fieldset', :id => 'columns', :style => (query.has_default_columns? ? 'display:none;' : nil) do %>
Jean-Philippe Lang
Adds dynamic columns selection on the issue list (#4272)....
r2991 <legend><%= l(:field_column_names) %></legend>
Jean-Philippe Lang
Typo....
r11223 <%= render_query_columns_selection(query) %>
Jean-Philippe Lang
Adds dynamic columns selection on the issue list (#4272)....
r2991 <% end %>
Jean-Philippe Lang
Remove useless settings when editing a query from the gantt (#16747)....
r12893 <% end %>
Jean-Philippe Lang
Adds dynamic columns selection on the issue list (#4272)....
r2991
Jean-Philippe Lang
"queries" branch merged...
r92 </div>
Jean-Philippe Lang
Role based custom queries (#1019)....
r11764
<%= javascript_tag do %>
$(document).ready(function(){
$("input[name='query[visibility]']").change(function(){
Jean-Philippe Lang
Fixed that user with "Manage public queries" permission, can create global public query (#19842)....
r14006 var roles_checked = $('#query_visibility_1').is(':checked');
var private_checked = $('#query_visibility_0').is(':checked');
$("input[name='query[role_ids][]'][type=checkbox]").attr('disabled', !roles_checked);
if (!private_checked) $("input.disable-unless-private").attr('checked', false);
$("input.disable-unless-private").attr('disabled', !private_checked);
Jean-Philippe Lang
Role based custom queries (#1019)....
r11764 }).trigger('change');
});
<% end %>