X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fviews%2Fquick_edit_issues%2F_input_dialog.html.erb;h=7b485f5b27bbbd0fa0be85b80fb986c6dd2d511c;hb=02eae9ef628dd6940be63b3c6a93ca97abdb3527;hp=bd746f51b4c2ed410c64096fe1cac9e1c309219d;hpb=861c379c37b10ab1d0a16839b797994f5502da32;p=quickedit%2Fquick_edit.git diff --git a/app/views/quick_edit_issues/_input_dialog.html.erb b/app/views/quick_edit_issues/_input_dialog.html.erb index bd746f5..7b485f5 100644 --- a/app/views/quick_edit_issues/_input_dialog.html.erb +++ b/app/views/quick_edit_issues/_input_dialog.html.erb @@ -4,6 +4,7 @@ dialog_size[1] += 130 if @dialog_params[:field_type] == :text dialog_size[1] += 160 # for notes dialog_size[1] += 25 if @dialog_params[:attribute_name]==:description + dialog_size[1] -= 160 if @dialog_params[:attribute_name].to_sym == :notes dialog_size[1] += 50 unless @dialog_params[:description].nil? textarea_size = parse_size(Setting.plugin_quick_edit['textarea_size'], 10...256, 80, 10...256, 10) @@ -31,61 +32,76 @@ <%= form_tag({:controller=>'issues', :action=>:bulk_update}) do %>
- <%= @dialog_params[:caption] %>: - <% case @dialog_params[:field_type] %> - <% when :date %> - - <%= calendar_for('new_value') %> - <% when :int, :float %> - - <% if @dialog_params[:target_specifier] == "issue[parent_issue_id]" %> - <%= javascript_tag "observeAutocompleteField('new_value', '#{escape_javascript auto_complete_issues_path(:project_id => @issue.project, :scope => (Setting.cross_project_issue_relations? ? 'all' : nil))}')" %> - <%= javascript_tag "setPredecessorFieldsVisibility();" %> - <% end %> - <% when :text %> - - <% if @dialog_params[:attribute_name].to_sym == :description %> - <%= wikitoolbar_for 'new_value' %> - <% end %> - <% else %> - - <% end %> - <% unless @dialog_params[:clear_pseudo_value].nil? %> - <%= l(:button_clear) %> - <% end %> - - <% if !@dialog_params[:description].nil? %> -
<%= @dialog_params[:description] %>
- <% end %> - -
- <%= l(:field_notes) %> - - <%= wikitoolbar_for :notes_for_edit %> - + - -
+ + <% else %> + <%= @dialog_params[:caption] %>: + <% case @dialog_params[:field_type] %> + <% when :date %> + + <%= calendar_for('new_value') %> + <% when :int, :float %> + + <% if @dialog_params[:target_specifier] == "issue[parent_issue_id]" %> + <%= javascript_tag "observeAutocompleteField('new_value', '#{escape_javascript auto_complete_issues_path(:project_id => @issue.project, :scope => (Setting.cross_project_issue_relations? ? 'all' : nil))}')" %> + <%= javascript_tag "setPredecessorFieldsVisibility();" %> + <% end %> + <% when :text %> + + <% if @dialog_params[:attribute_name].to_sym == :description %> + <%= wikitoolbar_for 'new_value' %> + <% end %> + <% else %> + + <% end %> + <% unless @dialog_params[:clear_pseudo_value].nil? %> + <%= l(:button_clear) %> + <% end %> + + <% if !@dialog_params[:description].nil? %> +
<%= @dialog_params[:description] %>
+ <% end %> + +
+ <%= l(:field_notes) %> + + <%= wikitoolbar_for :notes_for_edit %> + + +
+ <% end %> <% @dialog_params[:issue_ids].each do |id| %> <% end %>