mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-05 08:43:06 +00:00
Use multipart forms for objects that may have file custom fields (#6719).
git-svn-id: http://svn.redmine.org/redmine/trunk@16068 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
aaba48900a
commit
7b7a84c93a
@ -1,6 +1,6 @@
|
||||
<h2><%=l(:label_document)%></h2>
|
||||
|
||||
<%= labelled_form_for @document do |f| %>
|
||||
<%= labelled_form_for @document, :html => {:multipart => true} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<p><%= submit_tag l(:button_save) %></p>
|
||||
<% end %>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<%= title [l(@enumeration.option_name), enumerations_path], @enumeration.name %>
|
||||
|
||||
<%= labelled_form_for :enumeration, @enumeration, :url => enumeration_path(@enumeration), :html => {:method => :put} do |f| %>
|
||||
<%= labelled_form_for :enumeration, @enumeration, :url => enumeration_path(@enumeration), :html => {:method => :put, :multipart => true} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<%= title [l(@enumeration.option_name), enumerations_path], l(:label_enumeration_new) %>
|
||||
|
||||
<%= labelled_form_for :enumeration, @enumeration, :url => enumerations_path do |f| %>
|
||||
<%= labelled_form_for :enumeration, @enumeration, :url => enumerations_path, :html => {:multipart => true} do |f| %>
|
||||
<%= f.hidden_field :type %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<%= labelled_form_for @group, :url => group_path(@group) do |f| %>
|
||||
<%= labelled_form_for @group, :url => group_path(@group), :html => {:multipart => true} do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<%= title [l(:label_group_plural), groups_path], l(:label_group_new) %>
|
||||
|
||||
<%= labelled_form_for @group do |f| %>
|
||||
<%= labelled_form_for @group, :html => {:multipart => true} do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<p>
|
||||
<%= f.submit l(:button_create) %>
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
<%= labelled_form_for :user, @user,
|
||||
:url => { :action => "account" },
|
||||
:html => { :id => 'my_account_form',
|
||||
:method => :post } do |f| %>
|
||||
:method => :post, :multipart => true } do |f| %>
|
||||
<div class="splitcontentleft">
|
||||
<fieldset class="box tabular">
|
||||
<legend><%=l(:label_information_plural)%></legend>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<%= labelled_form_for @project do |f| %>
|
||||
<%= labelled_form_for @project, :html => {:multipart => true} do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<%= title l(:label_project_new) %>
|
||||
|
||||
<%= labelled_form_for @project do |f| %>
|
||||
<%= labelled_form_for @project, :html => {:multipart => true} do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<h2><%= l(:label_spent_time) %></h2>
|
||||
|
||||
<%= labelled_form_for @time_entry, :url => time_entry_path(@time_entry) do |f| %>
|
||||
<%= labelled_form_for @time_entry, :url => time_entry_path(@time_entry), :html => {:multipart => true} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<h2><%= l(:label_spent_time) %></h2>
|
||||
|
||||
<%= labelled_form_for @time_entry, :url => time_entries_path do |f| %>
|
||||
<%= labelled_form_for @time_entry, :url => time_entries_path, :html => {:multipart => true} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<%= labelled_form_for @user do |f| %>
|
||||
<%= labelled_form_for @user, :html => {:multipart => true} do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<% if @user.active? && email_delivery_enabled? && @user != User.current -%>
|
||||
<p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<%= title [l(:label_user_plural), users_path], l(:label_user_new) %>
|
||||
|
||||
<%= labelled_form_for @user do |f| %>
|
||||
<%= labelled_form_for @user, :html => {:multipart => true} do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<% if email_delivery_enabled? %>
|
||||
<p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<h2><%=l(:label_version)%></h2>
|
||||
|
||||
<%= labelled_form_for @version do |f| %>
|
||||
<%= labelled_form_for @version, :html => {:multipart => true} do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<h2><%=l(:label_version_new)%></h2>
|
||||
|
||||
<%= labelled_form_for @version, :url => project_versions_path(@project) do |f| %>
|
||||
<%= labelled_form_for @version, :url => project_versions_path(@project), :html => {:multipart => true} do |f| %>
|
||||
<%= render :partial => 'versions/form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<% end %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user