@@ -1,8 +1,8 | |||
|
1 | 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 | 4 | <%= render :partial => 'form', :locals => {:f => f} %> |
|
5 | 5 | <p><%= submit_tag l(:button_save) %></p> |
|
6 | 6 | <% end %> |
|
7 | 7 | |
|
8 | 8 |
@@ -1,6 +1,6 | |||
|
1 | 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 | 4 | <%= render :partial => 'form', :locals => {:f => f} %> |
|
5 | 5 | <%= submit_tag l(:button_save) %> |
|
6 | 6 | <% end %> |
@@ -1,7 +1,7 | |||
|
1 | 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 | 4 | <%= f.hidden_field :type %> |
|
5 | 5 | <%= render :partial => 'form', :locals => {:f => f} %> |
|
6 | 6 | <%= submit_tag l(:button_create) %> |
|
7 | 7 | <% end %> |
@@ -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 | 2 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
3 | 3 | <%= submit_tag l(:button_save) %> |
|
4 | 4 | <% end %> |
@@ -1,9 +1,9 | |||
|
1 | 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 | 4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | 5 | <p> |
|
6 | 6 | <%= f.submit l(:button_create) %> |
|
7 | 7 | <%= f.submit l(:button_create_and_continue), :name => 'continue' %> |
|
8 | 8 | </p> |
|
9 | 9 | <% end %> |
@@ -1,60 +1,60 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= additional_emails_link(@user) %> |
|
3 | 3 | <%= link_to(l(:button_change_password), {:action => 'password'}, :class => 'icon icon-passwd') if @user.change_password_allowed? %> |
|
4 | 4 | <%= call_hook(:view_my_account_contextual, :user => @user)%> |
|
5 | 5 | </div> |
|
6 | 6 | |
|
7 | 7 | <h2> |
|
8 | 8 | <%= avatar_edit_link(@user, :size => "50") %> |
|
9 | 9 | <%=l(:label_my_account)%> |
|
10 | 10 | </h2> |
|
11 | 11 | |
|
12 | 12 | <%= error_messages_for 'user' %> |
|
13 | 13 | |
|
14 | 14 | <%= labelled_form_for :user, @user, |
|
15 | 15 | :url => { :action => "account" }, |
|
16 | 16 | :html => { :id => 'my_account_form', |
|
17 | :method => :post } do |f| %> | |
|
17 | :method => :post, :multipart => true } do |f| %> | |
|
18 | 18 | <div class="splitcontentleft"> |
|
19 | 19 | <fieldset class="box tabular"> |
|
20 | 20 | <legend><%=l(:label_information_plural)%></legend> |
|
21 | 21 | <p><%= f.text_field :firstname, :required => true %></p> |
|
22 | 22 | <p><%= f.text_field :lastname, :required => true %></p> |
|
23 | 23 | <p><%= f.text_field :mail, :required => true %></p> |
|
24 | 24 | <% unless @user.force_default_language? %> |
|
25 | 25 | <p><%= f.select :language, lang_options_for_select %></p> |
|
26 | 26 | <% end %> |
|
27 | 27 | <% if Setting.openid? %> |
|
28 | 28 | <p><%= f.text_field :identity_url %></p> |
|
29 | 29 | <% end %> |
|
30 | 30 | |
|
31 | 31 | <% @user.custom_field_values.select(&:editable?).each do |value| %> |
|
32 | 32 | <p><%= custom_field_tag_with_label :user, value %></p> |
|
33 | 33 | <% end %> |
|
34 | 34 | <%= call_hook(:view_my_account, :user => @user, :form => f) %> |
|
35 | 35 | </fieldset> |
|
36 | 36 | |
|
37 | 37 | <p class="mobile-hide"><%= submit_tag l(:button_save) %></p> |
|
38 | 38 | </div> |
|
39 | 39 | |
|
40 | 40 | <div class="splitcontentright"> |
|
41 | 41 | <fieldset class="box"> |
|
42 | 42 | <legend><%=l(:field_mail_notification)%></legend> |
|
43 | 43 | <%= render :partial => 'users/mail_notifications' %> |
|
44 | 44 | </fieldset> |
|
45 | 45 | |
|
46 | 46 | <fieldset class="box tabular"> |
|
47 | 47 | <legend><%=l(:label_preferences)%></legend> |
|
48 | 48 | <%= render :partial => 'users/preferences' %> |
|
49 | 49 | <%= call_hook(:view_my_account_preferences, :user => @user, :form => f) %> |
|
50 | 50 | </fieldset> |
|
51 | 51 | |
|
52 | 52 | <p class="mobile-show"><%= submit_tag l(:button_save) %></p> |
|
53 | 53 | </div> |
|
54 | 54 | <% end %> |
|
55 | 55 | |
|
56 | 56 | <% content_for :sidebar do %> |
|
57 | 57 | <%= render :partial => 'sidebar' %> |
|
58 | 58 | <% end %> |
|
59 | 59 | |
|
60 | 60 | <% html_title(l(:label_my_account)) -%> |
@@ -1,4 +1,4 | |||
|
1 | <%= labelled_form_for @project do |f| %> | |
|
1 | <%= labelled_form_for @project, :html => {:multipart => true} do |f| %> | |
|
2 | 2 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
3 | 3 | <%= submit_tag l(:button_save) %> |
|
4 | 4 | <% end %> |
@@ -1,7 +1,7 | |||
|
1 | 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 | 4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | 5 | <%= submit_tag l(:button_create) %> |
|
6 | 6 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
|
7 | 7 | <% end %> |
@@ -1,6 +1,6 | |||
|
1 | 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 | 4 | <%= render :partial => 'form', :locals => {:f => f} %> |
|
5 | 5 | <%= submit_tag l(:button_save) %> |
|
6 | 6 | <% end %> |
@@ -1,7 +1,7 | |||
|
1 | 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 | 4 | <%= render :partial => 'form', :locals => {:f => f} %> |
|
5 | 5 | <%= submit_tag l(:button_create) %> |
|
6 | 6 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
|
7 | 7 | <% end %> |
@@ -1,7 +1,7 | |||
|
1 | <%= labelled_form_for @user do |f| %> | |
|
1 | <%= labelled_form_for @user, :html => {:multipart => true} do |f| %> | |
|
2 | 2 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
3 | 3 | <% if @user.active? && email_delivery_enabled? && @user != User.current -%> |
|
4 | 4 | <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p> |
|
5 | 5 | <% end -%> |
|
6 | 6 | <p><%= submit_tag l(:button_save) %></p> |
|
7 | 7 | <% end %> |
@@ -1,30 +1,30 | |||
|
1 | 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 | 4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | 5 | <% if email_delivery_enabled? %> |
|
6 | 6 | <p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p> |
|
7 | 7 | <% end %> |
|
8 | 8 | <p> |
|
9 | 9 | <%= submit_tag l(:button_create) %> |
|
10 | 10 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
|
11 | 11 | </p> |
|
12 | 12 | <% end %> |
|
13 | 13 | |
|
14 | 14 | <% if @auth_sources.present? && @auth_sources.any?(&:searchable?) %> |
|
15 | 15 | <%= javascript_tag do %> |
|
16 | 16 | observeAutocompleteField('user_login', '<%= escape_javascript autocomplete_for_new_user_auth_sources_path %>', { |
|
17 | 17 | select: function(event, ui) { |
|
18 | 18 | $('input#user_firstname').val(ui.item.firstname); |
|
19 | 19 | $('input#user_lastname').val(ui.item.lastname); |
|
20 | 20 | $('input#user_mail').val(ui.item.mail); |
|
21 | 21 | $('select#user_auth_source_id option').each(function(){ |
|
22 | 22 | if ($(this).attr('value') == ui.item.auth_source_id) { |
|
23 | 23 | $(this).attr('selected', true); |
|
24 | 24 | $('select#user_auth_source_id').trigger('change'); |
|
25 | 25 | } |
|
26 | 26 | }); |
|
27 | 27 | } |
|
28 | 28 | }); |
|
29 | 29 | <% end %> |
|
30 | 30 | <% end %> |
@@ -1,7 +1,7 | |||
|
1 | 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 | 4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | 5 | <%= submit_tag l(:button_save) %> |
|
6 | 6 | <% end %> |
|
7 | 7 |
@@ -1,6 +1,6 | |||
|
1 | 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 | 4 | <%= render :partial => 'versions/form', :locals => { :f => f } %> |
|
5 | 5 | <%= submit_tag l(:button_create) %> |
|
6 | 6 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now