Mercurial > hg > soundsoftware-site
diff app/views/documents/edit.html.erb @ 1115:433d4f72a19b redmine-2.2
Update to Redmine SVN revision 11137 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Mon, 07 Jan 2013 12:01:42 +0000 |
parents | c6c2cbd0afee |
children |
line wrap: on
line diff
--- a/app/views/documents/edit.html.erb Wed Jun 27 14:54:18 2012 +0100 +++ b/app/views/documents/edit.html.erb Mon Jan 07 12:01:42 2013 +0000 @@ -1,8 +1,8 @@ <h2><%=l(:label_document)%></h2> -<% form_tag({:action => 'edit', :id => @document}, :class => "tabular") do %> - <%= render :partial => 'form' %> - <%= submit_tag l(:button_save) %> +<%= labelled_form_for @document do |f| %> + <%= render :partial => 'form', :locals => {:f => f} %> + <p><%= submit_tag l(:button_save) %></p> <% end %>