From: Toshi MARUYAMA Date: Thu, 1 Sep 2011 13:03:07 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/issue_moves/new.rhtml. X-Git-Tag: 1.3.0~970 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=766a8130f048ba8bae996aa56fd614f1f9648df4;p=redmine.git rename .rhtml to .html.erb of app/views/issue_moves/new.rhtml. :rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6993 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/issue_moves/new.html.erb b/app/views/issue_moves/new.html.erb new file mode 100644 index 000000000..48d62da48 --- /dev/null +++ b/app/views/issue_moves/new.html.erb @@ -0,0 +1,79 @@ +

<%= @copy ? l(:button_copy) : l(:button_move) %>

+ + + +<% form_tag({:action => 'create'}, :id => 'move_form') do %> +<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> + +
+
+<%= l(:label_change_properties) %> + +
+

+<%= select_tag "new_project_id", + project_tree_options_for_select(@allowed_projects, :selected => @target_project), + :onchange => remote_function(:url => { :action => 'new' }, + :method => :get, + :update => 'content', + :with => "Form.serialize('move_form')") %>

+ +

+<%= select_tag "new_tracker_id", "" + options_from_collection_for_select(@trackers, "id", "name") %>

+ +

+ + <%= select_tag('status_id', "" + options_from_collection_for_select(@available_statuses, :id, :name)) %> +

+ +

+ + <%= select_tag('priority_id', "" + options_from_collection_for_select(IssuePriority.active, :id, :name)) %> +

+ +

+ + <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') + + content_tag('option', l(:label_nobody), :value => 'none') + + principals_options_for_select(@target_project.assignable_users)) %> +

+
+ +
+

+ + <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %> +

+ +

+ + <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %> +

+
+ +
+ +
<%= l(:field_notes) %> +<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> +<%= wikitoolbar_for 'notes' %> +
+ +<%= call_hook(:view_issues_move_bottom, :issues => @issues, :target_project => @target_project, :copy => !!@copy) %> +
+ +<% if @copy %> + <%= hidden_field_tag("copy_options[copy]", "1") %> + <%= submit_tag l(:button_copy) %> + <%= submit_tag l(:button_copy_and_follow), :name => 'follow' %> +<% else %> + <%= submit_tag l(:button_move) %> + <%= submit_tag l(:button_move_and_follow), :name => 'follow' %> +<% end %> +<% end %> +<% content_for :header_tags do %> + <%= robot_exclusion_tag %> +<% end %> diff --git a/app/views/issue_moves/new.rhtml b/app/views/issue_moves/new.rhtml deleted file mode 100644 index 48d62da48..000000000 --- a/app/views/issue_moves/new.rhtml +++ /dev/null @@ -1,79 +0,0 @@ -

<%= @copy ? l(:button_copy) : l(:button_move) %>

- - - -<% form_tag({:action => 'create'}, :id => 'move_form') do %> -<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> - -
-
-<%= l(:label_change_properties) %> - -
-

-<%= select_tag "new_project_id", - project_tree_options_for_select(@allowed_projects, :selected => @target_project), - :onchange => remote_function(:url => { :action => 'new' }, - :method => :get, - :update => 'content', - :with => "Form.serialize('move_form')") %>

- -

-<%= select_tag "new_tracker_id", "" + options_from_collection_for_select(@trackers, "id", "name") %>

- -

- - <%= select_tag('status_id', "" + options_from_collection_for_select(@available_statuses, :id, :name)) %> -

- -

- - <%= select_tag('priority_id', "" + options_from_collection_for_select(IssuePriority.active, :id, :name)) %> -

- -

- - <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') + - content_tag('option', l(:label_nobody), :value => 'none') + - principals_options_for_select(@target_project.assignable_users)) %> -

-
- -
-

- - <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %> -

- -

- - <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %> -

-
- -
- -
<%= l(:field_notes) %> -<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> -<%= wikitoolbar_for 'notes' %> -
- -<%= call_hook(:view_issues_move_bottom, :issues => @issues, :target_project => @target_project, :copy => !!@copy) %> -
- -<% if @copy %> - <%= hidden_field_tag("copy_options[copy]", "1") %> - <%= submit_tag l(:button_copy) %> - <%= submit_tag l(:button_copy_and_follow), :name => 'follow' %> -<% else %> - <%= submit_tag l(:button_move) %> - <%= submit_tag l(:button_move_and_follow), :name => 'follow' %> -<% end %> -<% end %> -<% content_for :header_tags do %> - <%= robot_exclusion_tag %> -<% end %>