diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-26 19:56:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-26 19:56:25 +0000 |
commit | 845460b16525dc350a12a9f1bde2109caa1a53b6 (patch) | |
tree | 746f9b896bc13b3165c4507652adfe8294fa3efc /app/views/documents | |
parent | 7c27fb7c1d9866f68b9e444cd3af68256cdc637a (diff) | |
download | redmine-845460b16525dc350a12a9f1bde2109caa1a53b6.tar.gz redmine-845460b16525dc350a12a9f1bde2109caa1a53b6.zip |
deprecated start_form_tag replaced by form_tag
git-svn-id: http://redmine.rubyforge.org/svn/trunk@184 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/documents')
-rw-r--r-- | app/views/documents/edit.rhtml | 4 | ||||
-rw-r--r-- | app/views/documents/show.rhtml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/documents/edit.rhtml b/app/views/documents/edit.rhtml index 3db4bcc6a..0b9f31f84 100644 --- a/app/views/documents/edit.rhtml +++ b/app/views/documents/edit.rhtml @@ -1,8 +1,8 @@ <h2><%=l(:label_document)%></h2> -<%= start_form_tag({:action => 'edit', :id => @document}, :class => "tabular") %> +<% form_tag({:action => 'edit', :id => @document}, :class => "tabular") do %> <%= render :partial => 'form' %> <%= submit_tag l(:button_save) %> -<%= end_form_tag %> +<% end %> diff --git a/app/views/documents/show.rhtml b/app/views/documents/show.rhtml index d756aad62..b91ecb469 100644 --- a/app/views/documents/show.rhtml +++ b/app/views/documents/show.rhtml @@ -28,10 +28,10 @@ <% if authorize_for('documents', 'add_attachment') %>
- <%= start_form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular") %>
+ <% form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular") do %>
<p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
<%= image_to_function "add.png", "addFileField();return false" %></label>
<%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
<%= submit_tag l(:button_add) %>
- <%= end_form_tag %>
+ <% end %>
<% end %>
|