@@ -1,6 +1,6 | |||||
1 | <h2><%=l(:label_document)%></h2> |
|
1 | <h2><%=l(:label_document)%></h2> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @document do |f| %> |
|
3 | <%= labelled_form_for @document, :html => {:multipart => true} do |f| %> | |
4 | <%= render :partial => 'form', :locals => {:f => f} %> |
|
4 | <%= render :partial => 'form', :locals => {:f => f} %> | |
5 | <p><%= submit_tag l(:button_save) %></p> |
|
5 | <p><%= submit_tag l(:button_save) %></p> | |
6 | <% end %> |
|
6 | <% end %> |
@@ -1,6 +1,6 | |||||
1 | <%= title [l(@enumeration.option_name), enumerations_path], @enumeration.name %> |
|
1 | <%= title [l(@enumeration.option_name), enumerations_path], @enumeration.name %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for :enumeration, @enumeration, :url => enumeration_path(@enumeration), :html => {:method => :put} do |f| %> |
|
3 | <%= labelled_form_for :enumeration, @enumeration, :url => enumeration_path(@enumeration), :html => {:method => :put, :multipart => true} do |f| %> | |
4 | <%= render :partial => 'form', :locals => {:f => f} %> |
|
4 | <%= render :partial => 'form', :locals => {:f => f} %> | |
5 | <%= submit_tag l(:button_save) %> |
|
5 | <%= submit_tag l(:button_save) %> | |
6 | <% end %> |
|
6 | <% end %> |
@@ -1,6 +1,6 | |||||
1 | <%= title [l(@enumeration.option_name), enumerations_path], l(:label_enumeration_new) %> |
|
1 | <%= title [l(@enumeration.option_name), enumerations_path], l(:label_enumeration_new) %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for :enumeration, @enumeration, :url => enumerations_path do |f| %> |
|
3 | <%= labelled_form_for :enumeration, @enumeration, :url => enumerations_path, :html => {:multipart => true} do |f| %> | |
4 | <%= f.hidden_field :type %> |
|
4 | <%= f.hidden_field :type %> | |
5 | <%= render :partial => 'form', :locals => {:f => f} %> |
|
5 | <%= render :partial => 'form', :locals => {:f => f} %> | |
6 | <%= submit_tag l(:button_create) %> |
|
6 | <%= submit_tag l(:button_create) %> |
@@ -1,4 +1,4 | |||||
1 | <%= labelled_form_for @group, :url => group_path(@group) do |f| %> |
|
1 | <%= labelled_form_for @group, :url => group_path(@group), :html => {:multipart => true} do |f| %> | |
2 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
2 | <%= render :partial => 'form', :locals => { :f => f } %> | |
3 | <%= submit_tag l(:button_save) %> |
|
3 | <%= submit_tag l(:button_save) %> | |
4 | <% end %> |
|
4 | <% end %> |
@@ -1,6 +1,6 | |||||
1 | <%= title [l(:label_group_plural), groups_path], l(:label_group_new) %> |
|
1 | <%= title [l(:label_group_plural), groups_path], l(:label_group_new) %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @group do |f| %> |
|
3 | <%= labelled_form_for @group, :html => {:multipart => true} do |f| %> | |
4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
4 | <%= render :partial => 'form', :locals => { :f => f } %> | |
5 | <p> |
|
5 | <p> | |
6 | <%= f.submit l(:button_create) %> |
|
6 | <%= f.submit l(:button_create) %> |
@@ -14,7 +14,7 | |||||
14 | <%= labelled_form_for :user, @user, |
|
14 | <%= labelled_form_for :user, @user, | |
15 | :url => { :action => "account" }, |
|
15 | :url => { :action => "account" }, | |
16 | :html => { :id => 'my_account_form', |
|
16 | :html => { :id => 'my_account_form', | |
17 | :method => :post } do |f| %> |
|
17 | :method => :post, :multipart => true } do |f| %> | |
18 | <div class="splitcontentleft"> |
|
18 | <div class="splitcontentleft"> | |
19 | <fieldset class="box tabular"> |
|
19 | <fieldset class="box tabular"> | |
20 | <legend><%=l(:label_information_plural)%></legend> |
|
20 | <legend><%=l(:label_information_plural)%></legend> |
@@ -1,4 +1,4 | |||||
1 | <%= labelled_form_for @project do |f| %> |
|
1 | <%= labelled_form_for @project, :html => {:multipart => true} do |f| %> | |
2 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
2 | <%= render :partial => 'form', :locals => { :f => f } %> | |
3 | <%= submit_tag l(:button_save) %> |
|
3 | <%= submit_tag l(:button_save) %> | |
4 | <% end %> |
|
4 | <% end %> |
@@ -1,6 +1,6 | |||||
1 | <%= title l(:label_project_new) %> |
|
1 | <%= title l(:label_project_new) %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @project do |f| %> |
|
3 | <%= labelled_form_for @project, :html => {:multipart => true} do |f| %> | |
4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
4 | <%= render :partial => 'form', :locals => { :f => f } %> | |
5 | <%= submit_tag l(:button_create) %> |
|
5 | <%= submit_tag l(:button_create) %> | |
6 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
|
6 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
@@ -1,6 +1,6 | |||||
1 | <h2><%= l(:label_spent_time) %></h2> |
|
1 | <h2><%= l(:label_spent_time) %></h2> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @time_entry, :url => time_entry_path(@time_entry) do |f| %> |
|
3 | <%= labelled_form_for @time_entry, :url => time_entry_path(@time_entry), :html => {:multipart => true} do |f| %> | |
4 | <%= render :partial => 'form', :locals => {:f => f} %> |
|
4 | <%= render :partial => 'form', :locals => {:f => f} %> | |
5 | <%= submit_tag l(:button_save) %> |
|
5 | <%= submit_tag l(:button_save) %> | |
6 | <% end %> |
|
6 | <% end %> |
@@ -1,6 +1,6 | |||||
1 | <h2><%= l(:label_spent_time) %></h2> |
|
1 | <h2><%= l(:label_spent_time) %></h2> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @time_entry, :url => time_entries_path do |f| %> |
|
3 | <%= labelled_form_for @time_entry, :url => time_entries_path, :html => {:multipart => true} do |f| %> | |
4 | <%= render :partial => 'form', :locals => {:f => f} %> |
|
4 | <%= render :partial => 'form', :locals => {:f => f} %> | |
5 | <%= submit_tag l(:button_create) %> |
|
5 | <%= submit_tag l(:button_create) %> | |
6 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
|
6 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
@@ -1,4 +1,4 | |||||
1 | <%= labelled_form_for @user do |f| %> |
|
1 | <%= labelled_form_for @user, :html => {:multipart => true} do |f| %> | |
2 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
2 | <%= render :partial => 'form', :locals => { :f => f } %> | |
3 | <% if @user.active? && email_delivery_enabled? && @user != User.current -%> |
|
3 | <% if @user.active? && email_delivery_enabled? && @user != User.current -%> | |
4 | <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p> |
|
4 | <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p> |
@@ -1,6 +1,6 | |||||
1 | <%= title [l(:label_user_plural), users_path], l(:label_user_new) %> |
|
1 | <%= title [l(:label_user_plural), users_path], l(:label_user_new) %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @user do |f| %> |
|
3 | <%= labelled_form_for @user, :html => {:multipart => true} do |f| %> | |
4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
4 | <%= render :partial => 'form', :locals => { :f => f } %> | |
5 | <% if email_delivery_enabled? %> |
|
5 | <% if email_delivery_enabled? %> | |
6 | <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p> |
|
6 | <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p> |
@@ -1,6 +1,6 | |||||
1 | <h2><%=l(:label_version)%></h2> |
|
1 | <h2><%=l(:label_version)%></h2> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @version do |f| %> |
|
3 | <%= labelled_form_for @version, :html => {:multipart => true} do |f| %> | |
4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
4 | <%= render :partial => 'form', :locals => { :f => f } %> | |
5 | <%= submit_tag l(:button_save) %> |
|
5 | <%= submit_tag l(:button_save) %> | |
6 | <% end %> |
|
6 | <% end %> |
@@ -1,6 +1,6 | |||||
1 | <h2><%=l(:label_version_new)%></h2> |
|
1 | <h2><%=l(:label_version_new)%></h2> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @version, :url => project_versions_path(@project) do |f| %> |
|
3 | <%= labelled_form_for @version, :url => project_versions_path(@project), :html => {:multipart => true} do |f| %> | |
4 | <%= render :partial => 'versions/form', :locals => { :f => f } %> |
|
4 | <%= render :partial => 'versions/form', :locals => { :f => f } %> | |
5 | <%= submit_tag l(:button_create) %> |
|
5 | <%= submit_tag l(:button_create) %> | |
6 | <% end %> |
|
6 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now