From: Toshi MARUYAMA Date: Thu, 1 Sep 2011 15:19:44 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/issues/new.rhtml. X-Git-Tag: 1.3.0~943 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e9c23b7e605939ceacf3795fa46caecfec230a7;p=redmine.git rename .rhtml to .html.erb of app/views/issues/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@7020 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb new file mode 100644 index 000000000..867590fa2 --- /dev/null +++ b/app/views/issues/new.html.erb @@ -0,0 +1,27 @@ +

<%=l(:label_issue_new)%>

+ +<% labelled_tabular_form_for :issue, @issue, :url => {:controller => 'issues', :action => 'create', :project_id => @project}, + :html => {:multipart => true, :id => 'issue-form', :class => 'tabular new-issue-form'} do |f| %> + <%= error_messages_for 'issue' %> +
+ <%= render :partial => 'issues/form', :locals => {:f => f} %> +
+ <%= submit_tag l(:button_create) %> + <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> + <%= link_to_remote l(:label_preview), + { :url => preview_issue_path(:project_id => @project), + :method => 'post', + :update => 'preview', + :with => "Form.serialize('issue-form')", + :complete => "Element.scrollTo('preview')" + }, :accesskey => accesskey(:preview) %> + + <%= javascript_tag "Form.Element.focus('issue_subject');" %> +<% end %> + +
+ +<% content_for :header_tags do %> + <%= stylesheet_link_tag 'scm' %> + <%= robot_exclusion_tag %> +<% end %> diff --git a/app/views/issues/new.rhtml b/app/views/issues/new.rhtml deleted file mode 100644 index 867590fa2..000000000 --- a/app/views/issues/new.rhtml +++ /dev/null @@ -1,27 +0,0 @@ -

<%=l(:label_issue_new)%>

- -<% labelled_tabular_form_for :issue, @issue, :url => {:controller => 'issues', :action => 'create', :project_id => @project}, - :html => {:multipart => true, :id => 'issue-form', :class => 'tabular new-issue-form'} do |f| %> - <%= error_messages_for 'issue' %> -
- <%= render :partial => 'issues/form', :locals => {:f => f} %> -
- <%= submit_tag l(:button_create) %> - <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> - <%= link_to_remote l(:label_preview), - { :url => preview_issue_path(:project_id => @project), - :method => 'post', - :update => 'preview', - :with => "Form.serialize('issue-form')", - :complete => "Element.scrollTo('preview')" - }, :accesskey => accesskey(:preview) %> - - <%= javascript_tag "Form.Element.focus('issue_subject');" %> -<% end %> - -
- -<% content_for :header_tags do %> - <%= stylesheet_link_tag 'scm' %> - <%= robot_exclusion_tag %> -<% end %>