Commit bd63f77542d01bb2edc3f4fd7fc5d162610b77b1
1 parent
269dc4a4
Exists in
master
and in
29 other branches
All instances of <% *_form_for ... %> changed to <%= instead of <%
Showing
57 changed files
with
57 additions
and
57 deletions
Show diff stats
app/views/account/_login_form.html.erb
1 | -<% labelled_form_for :user, @user, | 1 | +<%= labelled_form_for :user, @user, |
2 | :url => { :controller => 'account', :action => (params[:enterprise_code] ? 'activate_enterprise' : 'login') } do |f| %> | 2 | :url => { :controller => 'account', :action => (params[:enterprise_code] ? 'activate_enterprise' : 'login') } do |f| %> |
3 | 3 | ||
4 | <%= f.text_field :login, | 4 | <%= f.text_field :login, |
app/views/account/forgot_password.html.erb
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | <%= error_messages_for :change_password, :header_message => _('Instructions to password recovery could not be sent'), :message => nil %> | 3 | <%= error_messages_for :change_password, :header_message => _('Instructions to password recovery could not be sent'), :message => nil %> |
4 | 4 | ||
5 | -<% labelled_form_for :change_password, @change_password, :url => { :action => 'forgot_password' } do |f| %> | 5 | +<%= labelled_form_for :change_password, @change_password, :url => { :action => 'forgot_password' } do |f| %> |
6 | 6 | ||
7 | <%= f.text_field :login, | 7 | <%= f.text_field :login, |
8 | :onchange => 'this.value = convToValidLogin( this.value )' %> | 8 | :onchange => 'this.value = convToValidLogin( this.value )' %> |
app/views/account/new_password.html.erb
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | 6 | ||
7 | <%= error_messages_for :change_password %> | 7 | <%= error_messages_for :change_password %> |
8 | 8 | ||
9 | -<% form_for(:change_password) do |f| %> | 9 | +<%= form_for(:change_password) do |f| %> |
10 | 10 | ||
11 | <%= labelled_form_field(_('Enter new password'), (f.password_field :password)) %> | 11 | <%= labelled_form_field(_('Enter new password'), (f.password_field :password)) %> |
12 | <%= labelled_form_field(_('Confirm the new password'), (f.password_field :password_confirmation)) %> | 12 | <%= labelled_form_field(_('Confirm the new password'), (f.password_field :password_confirmation)) %> |
app/views/admin_panel/message_for_disabled_enterprise.html.erb
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | <%= render :file => 'shared/tiny_mce' %> | 3 | <%= render :file => 'shared/tiny_mce' %> |
4 | 4 | ||
5 | -<% labelled_form_for :environment, @environment, :url => {:action => 'site_info'} do |f| %> | 5 | +<%= labelled_form_for :environment, @environment, :url => {:action => 'site_info'} do |f| %> |
6 | 6 | ||
7 | <%= f.text_area :message_for_disabled_enterprise, :cols => 40, :style => 'width: 90%' %> | 7 | <%= f.text_area :message_for_disabled_enterprise, :cols => 40, :style => 'width: 90%' %> |
8 | 8 |
app/views/admin_panel/set_portal_news_amount.html.erb
1 | <h1><%= _('News amount by folder') %></h1> | 1 | <h1><%= _('News amount by folder') %></h1> |
2 | 2 | ||
3 | -<% labelled_form_for :environment, @environment do |f| %> | 3 | +<%= labelled_form_for :environment, @environment do |f| %> |
4 | 4 | ||
5 | <%= labelled_form_field _('Number of news'), select(:environment, :news_amount_by_folder, (1..10).to_a) %> | 5 | <%= labelled_form_field _('Number of news'), select(:environment, :news_amount_by_folder, (1..10).to_a) %> |
6 | 6 |
app/views/admin_panel/site_info.html.erb
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | 4 | ||
5 | <%= render :file => 'shared/tiny_mce' %> | 5 | <%= render :file => 'shared/tiny_mce' %> |
6 | 6 | ||
7 | -<% labelled_form_for :environment, @environment, :url => {:host => @environment.default_hostname, :port => request.port} do |f| %> | 7 | +<%= labelled_form_for :environment, @environment, :url => {:host => @environment.default_hostname, :port => request.port} do |f| %> |
8 | <% tabs = [] %> | 8 | <% tabs = [] %> |
9 | <% tabs << {:title => _('Site info'), :id => 'site-info', | 9 | <% tabs << {:title => _('Site info'), :id => 'site-info', |
10 | :content => (render :partial => 'site_info', :locals => {:f => f})} %> | 10 | :content => (render :partial => 'site_info', :locals => {:f => f})} %> |
app/views/categories/_form.html.erb
1 | <%= error_messages_for 'category' %> | 1 | <%= error_messages_for 'category' %> |
2 | 2 | ||
3 | -<% labelled_form_for 'category', @category, :html => { :multipart => true} do |f| %> | 3 | +<%= labelled_form_for 'category', @category, :html => { :multipart => true} do |f| %> |
4 | 4 | ||
5 | <%= required_fields_message %> | 5 | <%= required_fields_message %> |
6 | 6 |
app/views/cms/destroy.html.erb
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | <%= error_messages_for 'article' %> | 3 | <%= error_messages_for 'article' %> |
4 | 4 | ||
5 | -<% labelled_form_for 'article', @article, :url => { :action => 'destroy' }, :method => 'post' do |f| %> | 5 | +<%= labelled_form_for 'article', @article, :url => { :action => 'destroy' }, :method => 'post' do |f| %> |
6 | 6 | ||
7 | <strong> | 7 | <strong> |
8 | <% if @article.folder? %> | 8 | <% if @article.folder? %> |
app/views/cms/edit.html.erb
1 | <%= error_messages_for 'article' %> | 1 | <%= error_messages_for 'article' %> |
2 | 2 | ||
3 | <div class='<%= (environment.enabled?('media_panel') ? 'with_media_panel' : 'no_media_panel') %>'> | 3 | <div class='<%= (environment.enabled?('media_panel') ? 'with_media_panel' : 'no_media_panel') %>'> |
4 | -<% labelled_form_for 'article', @article, :html => { :multipart => true, :class => @type } do |f| %> | 4 | +<%= labelled_form_for 'article', @article, :html => { :multipart => true, :class => @type } do |f| %> |
5 | 5 | ||
6 | <%= hidden_field_tag("type", @type) if @type %> | 6 | <%= hidden_field_tag("type", @type) if @type %> |
7 | 7 |
app/views/cms/suggest_an_article.html.erb
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | 4 | ||
5 | <%= render :file => 'shared/tiny_mce' %> | 5 | <%= render :file => 'shared/tiny_mce' %> |
6 | 6 | ||
7 | -<% labelled_form_for 'task', @task do |f| %> | 7 | +<%= labelled_form_for 'task', @task do |f| %> |
8 | 8 | ||
9 | <%= required labelled_form_field(_('Title'), text_field(:task, 'article_name', :size => 50)) %> | 9 | <%= required labelled_form_field(_('Title'), text_field(:task, 'article_name', :size => 50)) %> |
10 | 10 |
app/views/cms/upload_files.html.erb
@@ -19,6 +19,6 @@ | @@ -19,6 +19,6 @@ | ||
19 | 19 | ||
20 | <h5><%= _('Uploading files to %s') % content_tag('code', @target) %></h5> | 20 | <h5><%= _('Uploading files to %s') % content_tag('code', @target) %></h5> |
21 | 21 | ||
22 | -<% form_for('uploaded_file', :url => { :action => 'upload_files' }, :html => {:multipart => true}) do |f| %> | 22 | +<%= form_for('uploaded_file', :url => { :action => 'upload_files' }, :html => {:multipart => true}) do |f| %> |
23 | <%= render :partial => 'upload_file_form', :locals => { :size => '45'} %> | 23 | <%= render :partial => 'upload_file_form', :locals => { :size => '45'} %> |
24 | <% end %> | 24 | <% end %> |
app/views/contact/new.html.erb
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | 8 | ||
9 | <%= error_messages_for 'contact' %> | 9 | <%= error_messages_for 'contact' %> |
10 | 10 | ||
11 | -<% labelled_form_for :contact, @contact do |f| %> | 11 | +<%= labelled_form_for :contact, @contact do |f| %> |
12 | <%= hidden_field_tag(:confirm, 'false') %> | 12 | <%= hidden_field_tag(:confirm, 'false') %> |
13 | 13 | ||
14 | <%= required_fields_message %> | 14 | <%= required_fields_message %> |
app/views/enterprise_registration/basic_information.html.erb
@@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
18 | 18 | ||
19 | <%= required_fields_message %> | 19 | <%= required_fields_message %> |
20 | 20 | ||
21 | - <% labelled_form_for(:create_enterprise, @create_enterprise) do |f| %> | 21 | + <%= labelled_form_for(:create_enterprise, @create_enterprise) do |f| %> |
22 | <%= required f.text_field 'name', :onchange => "updateUrlField(this, 'create_enterprise_identifier')", :size => 40 %> | 22 | <%= required f.text_field 'name', :onchange => "updateUrlField(this, 'create_enterprise_identifier')", :size => 40 %> |
23 | <%= required labelled_form_field(_('Address'), content_tag('code', environment.top_url + "/" + text_field(:create_enterprise, 'identifier', :size => 26))) %> | 23 | <%= required labelled_form_field(_('Address'), content_tag('code', environment.top_url + "/" + text_field(:create_enterprise, 'identifier', :size => 26))) %> |
24 | <%= render :partial => 'shared/organization_custom_fields', :locals => { :f => f, :object_name => :create_enterprise, :profile => @create_enterprise } %> | 24 | <%= render :partial => 'shared/organization_custom_fields', :locals => { :f => f, :object_name => :create_enterprise, :profile => @create_enterprise } %> |
app/views/enterprise_validation/edit_validation_info.html.erb
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | <%= error_messages_for :info %> | 3 | <%= error_messages_for :info %> |
4 | 4 | ||
5 | -<% labelled_form_for :info, @info do |f| %> | 5 | +<%= labelled_form_for :info, @info do |f| %> |
6 | <%= f.text_area(:validation_methodology, :cols => 50, :rows => 10) %> | 6 | <%= f.text_area(:validation_methodology, :cols => 50, :rows => 10) %> |
7 | <%= f.text_area(:restrictions, :cols => 50, :rows => 7) %> | 7 | <%= f.text_area(:restrictions, :cols => 50, :rows => 7) %> |
8 | <% button_bar do %> | 8 | <% button_bar do %> |
app/views/environment_role_manager/change_role.html.erb
1 | <%= _('Changing role of %s') % @admin.name %> | 1 | <%= _('Changing role of %s') % @admin.name %> |
2 | 2 | ||
3 | -<% labelled_form_for :member, @admin, :url => {:action => 'update_roles'} do |f| %> | 3 | +<%= labelled_form_for :member, @admin, :url => {:action => 'update_roles'} do |f| %> |
4 | 4 | ||
5 | <%= _('Roles:') %> <br> | 5 | <%= _('Roles:') %> <br> |
6 | <% @roles.each do |r| %> | 6 | <% @roles.each do |r| %> |
app/views/environment_role_manager/make_admin.html.erb
1 | <h2> <% _('Make new admin') %> </h2> | 1 | <h2> <% _('Make new admin') %> </h2> |
2 | 2 | ||
3 | -<% labelled_form_for :person, @person, :url => {:action => 'update_roles'} do |f| %> | 3 | +<%= labelled_form_for :person, @person, :url => {:action => 'update_roles'} do |f| %> |
4 | <%= _('Admin') %> <br> | 4 | <%= _('Admin') %> <br> |
5 | <% @people.each do |p| %> | 5 | <% @people.each do |p| %> |
6 | <%= labelled_form_field(p.name, (radio_button_tag "person", p.id)) %> | 6 | <%= labelled_form_field(p.name, (radio_button_tag "person", p.id)) %> |
app/views/features/_manage_community_fields.html.erb
1 | <h2><%= _('Manage community fields') %></h2> | 1 | <h2><%= _('Manage community fields') %></h2> |
2 | 2 | ||
3 | -<% labelled_form_for(:environment, @environment, :url => {:action => 'manage_community_fields'}) do |f| %> | 3 | +<%= labelled_form_for(:environment, @environment, :url => {:action => 'manage_community_fields'}) do |f| %> |
4 | 4 | ||
5 | <table id='community_fields_conf'> | 5 | <table id='community_fields_conf'> |
6 | <tr> | 6 | <tr> |
app/views/features/_manage_enterprise_fields.html.erb
1 | <h2><%= _('Manage enterprise fields') %></h2> | 1 | <h2><%= _('Manage enterprise fields') %></h2> |
2 | 2 | ||
3 | -<% labelled_form_for(:environment, @environment, :url => {:action => 'manage_enterprise_fields'}) do |f| %> | 3 | +<%= labelled_form_for(:environment, @environment, :url => {:action => 'manage_enterprise_fields'}) do |f| %> |
4 | 4 | ||
5 | <table id='enterprise_fields_conf'> | 5 | <table id='enterprise_fields_conf'> |
6 | <tr> | 6 | <tr> |
app/views/features/_manage_person_fields.html.erb
1 | <h2><%= _('Manage person fields') %></h2> | 1 | <h2><%= _('Manage person fields') %></h2> |
2 | 2 | ||
3 | -<% labelled_form_for(:environment, @environment, :url => {:action => 'manage_person_fields'}) do |f| %> | 3 | +<%= labelled_form_for(:environment, @environment, :url => {:action => 'manage_person_fields'}) do |f| %> |
4 | 4 | ||
5 | <table id='person_fields_conf'> | 5 | <table id='person_fields_conf'> |
6 | <tr> | 6 | <tr> |
app/views/features/index.html.erb
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | Check all the features you want to enable for your environment, uncheck all the ones you don\'t want, and use the <em>"Save changes" button</em> to confirm your changes.') %> | 8 | Check all the features you want to enable for your environment, uncheck all the ones you don\'t want, and use the <em>"Save changes" button</em> to confirm your changes.') %> |
9 | </p> | 9 | </p> |
10 | 10 | ||
11 | -<% labelled_form_for(:environment, @environment, :url => {:action => 'update'}) do |f| %> | 11 | +<%= labelled_form_for(:environment, @environment, :url => {:action => 'update'}) do |f| %> |
12 | 12 | ||
13 | <table> | 13 | <table> |
14 | <tr> | 14 | <tr> |
app/views/licenses/_form.html.erb
1 | <%= error_messages_for :license %> | 1 | <%= error_messages_for :license %> |
2 | 2 | ||
3 | -<% form_for :license, @license do |f| %> | 3 | +<%= form_for :license, @license do |f| %> |
4 | <%= hidden_field_tag(:license_id, params[:license_id]) %> | 4 | <%= hidden_field_tag(:license_id, params[:license_id]) %> |
5 | <%= required labelled_form_field(_('Name'), f.text_field(:name)) %> | 5 | <%= required labelled_form_field(_('Name'), f.text_field(:name)) %> |
6 | <%= labelled_form_field(_('License url'), f.text_field(:url)) %> | 6 | <%= labelled_form_field(_('License url'), f.text_field(:url)) %> |
app/views/manage_products/_add_input.html.erb
1 | <div id='request_result_message' style='display: none'></div> | 1 | <div id='request_result_message' style='display: none'></div> |
2 | 2 | ||
3 | -<% form_for(@input, | 3 | +<%= form_for(@input, |
4 | :url => {:action => 'add_input', :id => @product}, | 4 | :url => {:action => 'add_input', :id => @product}, |
5 | :html => {:method => 'post', :id => 'input-category-form'} | 5 | :html => {:method => 'post', :id => 'input-category-form'} |
6 | ) do |f| %> | 6 | ) do |f| %> |
app/views/manage_products/_edit_description.html.erb
1 | <%= render :file => 'shared/tiny_mce', :locals => {:mode => 'simple'} %> | 1 | <%= render :file => 'shared/tiny_mce', :locals => {:mode => 'simple'} %> |
2 | -<% remote_form_for(@product, | 2 | +<%= remote_form_for(@product, |
3 | :loading => "small_loading('product-description-form')", | 3 | :loading => "small_loading('product-description-form')", |
4 | :before => ("tinyMCE.triggerSave()" unless Rails.env == 'test'), | 4 | :before => ("tinyMCE.triggerSave()" unless Rails.env == 'test'), |
5 | :update => 'product-description', | 5 | :update => 'product-description', |
app/views/manage_products/_edit_image.html.erb
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <%= image_tag (@product.reload.default_image('thumb')), :class => 'product-pic' %> | 2 | <%= image_tag (@product.reload.default_image('thumb')), :class => 'product-pic' %> |
3 | </div> | 3 | </div> |
4 | 4 | ||
5 | -<% form_for(:product, :url => { :controller => 'manage_products', :action => 'edit', :id => @product, :field => 'image' }, :html => { :method => 'post', :id => 'uploadForm', :multipart => true}) do |f| %> | 5 | +<%= form_for(:product, :url => { :controller => 'manage_products', :action => 'edit', :id => @product, :field => 'image' }, :html => { :method => 'post', :id => 'uploadForm', :multipart => true}) do |f| %> |
6 | <% f.fields_for :image_builder, @product.image do |i| %> | 6 | <% f.fields_for :image_builder, @product.image do |i| %> |
7 | <%= i.file_field( :uploaded_data, { :size => 10 } ) %> | 7 | <%= i.file_field( :uploaded_data, { :size => 10 } ) %> |
8 | <p><%= _("Max size: %s (.jpg, .gif, .png)")% Image.max_size.to_humanreadable %></p> | 8 | <p><%= _("Max size: %s (.jpg, .gif, .png)")% Image.max_size.to_humanreadable %></p> |
app/views/manage_products/_edit_info.html.erb
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <%= render_dialog_error_messages 'product' %> | 2 | <%= render_dialog_error_messages 'product' %> |
3 | <% end %> | 3 | <% end %> |
4 | 4 | ||
5 | -<% remote_form_for(@product, | 5 | +<%= remote_form_for(@product, |
6 | :loading => "small_loading('product-info-form')", | 6 | :loading => "small_loading('product-info-form')", |
7 | :update => 'product-info', | 7 | :update => 'product-info', |
8 | :url => {:controller => 'manage_products', :action => 'edit', :id => @product, :field => 'info'}, | 8 | :url => {:controller => 'manage_products', :action => 'edit', :id => @product, :field => 'info'}, |
app/views/manage_products/_edit_input.html.erb
1 | -<% form_for(@input, :url => {:controller => 'manage_products', :action => 'edit_input', :id => @input}, | 1 | +<%= form_for(@input, :url => {:controller => 'manage_products', :action => 'edit_input', :id => @input}, |
2 | :html => {:method => 'post', :id => "edit-input-#{ @input.id }-form"}) do |f| %> | 2 | :html => {:method => 'post', :id => "edit-input-#{ @input.id }-form"}) do |f| %> |
3 | 3 | ||
4 | <%= hidden_field_tag 'input-bar-update-url', @input.product.price_composition_bar_display_url, :class => 'bar-update-url' %> | 4 | <%= hidden_field_tag 'input-bar-update-url', @input.product.price_composition_bar_display_url, :class => 'bar-update-url' %> |
app/views/manage_products/_edit_name.html.erb
1 | -<% remote_form_for(@product, | 1 | +<%= remote_form_for(@product, |
2 | :loading => "small_loading('product-name-form')", | 2 | :loading => "small_loading('product-name-form')", |
3 | :update => 'product-name', | 3 | :update => 'product-name', |
4 | :url => {:controller => 'manage_products', :action => 'edit', :id => @product, :field => 'name'}, | 4 | :url => {:controller => 'manage_products', :action => 'edit', :id => @product, :field => 'name'}, |
app/views/manage_products/_form.html.erb
1 | <%= error_messages_for :product %> <br/> | 1 | <%= error_messages_for :product %> <br/> |
2 | 2 | ||
3 | -<% form_for :product, @product, :html => {:multipart => true }, :url => {:action => mode} do |f| %> | 3 | +<%= form_for :product, @product, :html => {:multipart => true }, :url => {:action => mode} do |f| %> |
4 | <%= required_fields_message %> | 4 | <%= required_fields_message %> |
5 | 5 | ||
6 | <%= display_form_field( _('Name:'), f.text_field(:name) ) %> | 6 | <%= display_form_field( _('Name:'), f.text_field(:name) ) %> |
app/views/manage_products/edit_category.html.erb
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | 8 | ||
9 | <div id='request_result_message' style='display: none'></div> | 9 | <div id='request_result_message' style='display: none'></div> |
10 | 10 | ||
11 | - <% remote_form_for(@product, | 11 | + <%= remote_form_for(@product, |
12 | :loading => "open_loading('#{ _('loading...') }')", | 12 | :loading => "open_loading('#{ _('loading...') }')", |
13 | :update => "request_result_message", | 13 | :update => "request_result_message", |
14 | :url => {:action => 'edit_category', :id => @product}, | 14 | :url => {:action => 'edit_category', :id => @product}, |
app/views/manage_products/new.html.erb
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | <div id='request_result_message' style='display: none'></div> | 3 | <div id='request_result_message' style='display: none'></div> |
4 | 4 | ||
5 | -<% remote_form_for :product, @product, | 5 | +<%= remote_form_for :product, @product, |
6 | :loading => "open_loading('#{ _('loading...') }')", | 6 | :loading => "open_loading('#{ _('loading...') }')", |
7 | :update => "request_result_message", | 7 | :update => "request_result_message", |
8 | :url => {:action => 'new'}, | 8 | :url => {:action => 'new'}, |
app/views/maps/edit_location.html.erb
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | <%= flash[:error] %> | 3 | <%= flash[:error] %> |
4 | </div> | 4 | </div> |
5 | 5 | ||
6 | -<% form_for :profile_data, :url => {:action => 'edit_location'}, :html => {:id => 'location-form'} do |f| %> | 6 | +<%= form_for :profile_data, :url => {:action => 'edit_location'}, :html => {:id => 'location-form'} do |f| %> |
7 | 7 | ||
8 | <div id='location-fields'> | 8 | <div id='location-fields'> |
9 | <%= select_country _('Country'), 'profile_data', 'country', {:class => 'type-select'} %> | 9 | <%= select_country _('Country'), 'profile_data', 'country', {:class => 'type-select'} %> |
app/views/memberships/new_community.html.erb
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | 10 | ||
11 | <div> | 11 | <div> |
12 | 12 | ||
13 | -<% labelled_form_for :community, @community, :html => { :multipart => true } do |f| %> | 13 | +<%= labelled_form_for :community, @community, :html => { :multipart => true } do |f| %> |
14 | 14 | ||
15 | <%= required_fields_message %> | 15 | <%= required_fields_message %> |
16 | 16 |
app/views/plugins/index.html.erb
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | <%= _('Select which plugins you want to enable in your environment') %> | 4 | <%= _('Select which plugins you want to enable in your environment') %> |
5 | </p> | 5 | </p> |
6 | 6 | ||
7 | -<% labelled_form_for(:environment, @environment, :url => {:action => 'update'}) do |f| %> | 7 | +<%= labelled_form_for(:environment, @environment, :url => {:action => 'update'}) do |f| %> |
8 | 8 | ||
9 | <table> | 9 | <table> |
10 | <% @active_plugins.sort_by(&:plugin_name).each do |plugin| %> | 10 | <% @active_plugins.sort_by(&:plugin_name).each do |plugin| %> |
app/views/profile/report_abuse.html.erb
1 | -<% form_for @abuse_report, :url => {:action => 'register_report'}, | 1 | +<%= form_for @abuse_report, :url => {:action => 'register_report'}, |
2 | :html => {:onsubmit => "return send_request(this)", :id => 'report-abuse-form'} do |f| %> | 2 | :html => {:onsubmit => "return send_request(this)", :id => 'report-abuse-form'} do |f| %> |
3 | <%= labelled_form_field('* ' + _('Report reasons'), f.text_area(:reason, :rows => 6, :cols => 60, :class => 'required')) %> | 3 | <%= labelled_form_field('* ' + _('Report reasons'), f.text_area(:reason, :rows => 6, :cols => 60, :class => 'required')) %> |
4 | <%= hidden_field_tag(:content_type, params[:content_type]) %> | 4 | <%= hidden_field_tag(:content_type, params[:content_type]) %> |
app/views/profile/send_mail.html.erb
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | 6 | ||
7 | <%= render :file => 'shared/tiny_mce' %> | 7 | <%= render :file => 'shared/tiny_mce' %> |
8 | 8 | ||
9 | -<% form_for :mailing, :url => {:action => 'send_mail'}, :html => {:id => 'mailing-form'} do |f| %> | 9 | +<%= form_for :mailing, :url => {:action => 'send_mail'}, :html => {:id => 'mailing-form'} do |f| %> |
10 | <%= labelled_form_field(_('Subject:'), f.text_field(:subject)) %> | 10 | <%= labelled_form_field(_('Subject:'), f.text_field(:subject)) %> |
11 | <%= labelled_form_field(_('Body:'), f.text_area(:body, :class => 'mceEditor')) %> | 11 | <%= labelled_form_field(_('Body:'), f.text_area(:body, :class => 'mceEditor')) %> |
12 | <%= submit_button(:send, _('Send')) %> | 12 | <%= submit_button(:send, _('Send')) %> |
app/views/profile_editor/edit.html.erb
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | <%= error_messages_for :profile %> | 3 | <%= error_messages_for :profile %> |
4 | 4 | ||
5 | -<% labelled_form_for :profile_data, @profile, :html => { :id => 'profile-data', :multipart => true } do |f| %> | 5 | +<%= labelled_form_for :profile_data, @profile, :html => { :id => 'profile-data', :multipart => true } do |f| %> |
6 | 6 | ||
7 | <% if user.has_permission?('manage_environment_templates', profile.environment) %> | 7 | <% if user.has_permission?('manage_environment_templates', profile.environment) %> |
8 | <div id="profile-is-template"> | 8 | <div id="profile-is-template"> |
app/views/profile_members/change_role.html.erb
1 | <h3> <%= _('Changing role of %s') % @member.name %> </h3> | 1 | <h3> <%= _('Changing role of %s') % @member.name %> </h3> |
2 | 2 | ||
3 | -<% labelled_form_for :member, @member, :url => {:action => 'update_roles'} do |f| %> | 3 | +<%= labelled_form_for :member, @member, :url => {:action => 'update_roles'} do |f| %> |
4 | 4 | ||
5 | <%= _('Roles:') %> <br> | 5 | <%= _('Roles:') %> <br> |
6 | <% @roles.each do |r| %> | 6 | <% @roles.each do |r| %> |
app/views/role/_form.html.erb
1 | <%= error_messages_for :role %> | 1 | <%= error_messages_for :role %> |
2 | 2 | ||
3 | -<% labelled_form_for :role, role, :url => (mode == :edit) ? {:action => 'update', :id => role} : {:action => 'create'} do |f| %> | 3 | +<%= labelled_form_for :role, role, :url => (mode == :edit) ? {:action => 'update', :id => role} : {:action => 'create'} do |f| %> |
4 | 4 | ||
5 | <%= required_fields_message %> | 5 | <%= required_fields_message %> |
6 | 6 |
app/views/tasks/new.html.erb
1 | <h1><%= @ticket.target ? _('New request for %s') % @ticket.target.name : _('New request') %></h1> | 1 | <h1><%= @ticket.target ? _('New request for %s') % @ticket.target.name : _('New request') %></h1> |
2 | 2 | ||
3 | <%# FIXME: put style in css %> | 3 | <%# FIXME: put style in css %> |
4 | -<% labelled_form_for :ticket, @ticket do |f| %> | 4 | +<%= labelled_form_for :ticket, @ticket do |f| %> |
5 | <% if @ticket.target %> | 5 | <% if @ticket.target %> |
6 | <%= f.hidden_field :target_id %> | 6 | <%= f.hidden_field :target_id %> |
7 | <% else %> | 7 | <% else %> |
app/views/users/send_mail.html.erb
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | 4 | ||
5 | <%= render :file => 'shared/tiny_mce' %> | 5 | <%= render :file => 'shared/tiny_mce' %> |
6 | 6 | ||
7 | -<% form_for :mailing, :url => {:action => 'send_mail', :host => @environment.default_hostname} do |f| %> | 7 | +<%= form_for :mailing, :url => {:action => 'send_mail', :host => @environment.default_hostname} do |f| %> |
8 | <%= labelled_form_field(_('Subject:'), f.text_field(:subject)) %> | 8 | <%= labelled_form_field(_('Subject:'), f.text_field(:subject)) %> |
9 | <%= labelled_form_field(_('Body:'), f.text_area(:body, :class => 'mceEditor')) %> | 9 | <%= labelled_form_field(_('Body:'), f.text_area(:body, :class => 'mceEditor')) %> |
10 | <%= submit_button(:send, _('Send')) %> | 10 | <%= submit_button(:send, _('Send')) %> |
plugins/anti_spam/views/anti_spam_plugin_admin/index.rhtml
plugins/bsc/views/bsc_plugin_admin/new.html.erb
1 | <%= error_messages_for :bsc %> | 1 | <%= error_messages_for :bsc %> |
2 | <h1><%= _('BSC registration') %></h1> | 2 | <h1><%= _('BSC registration') %></h1> |
3 | 3 | ||
4 | -<% labelled_form_for :profile_data, @bsc do |f| %> | 4 | +<%= labelled_form_for :profile_data, @bsc do |f| %> |
5 | <%= render :partial => 'shared/fields', :locals => {:f => f, :profile => @bsc} %> | 5 | <%= render :partial => 'shared/fields', :locals => {:f => f, :profile => @bsc} %> |
6 | 6 | ||
7 | <% button_bar do %> | 7 | <% button_bar do %> |
plugins/bsc/views/bsc_plugin_myprofile/_contract_form.html.erb
1 | <%= error_messages_for :contract %> | 1 | <%= error_messages_for :contract %> |
2 | 2 | ||
3 | -<% labelled_form_for :contract, @contract, :html => {:id => 'bsc-plugin-sales-form'} do |f| %> | 3 | +<%= labelled_form_for :contract, @contract, :html => {:id => 'bsc-plugin-sales-form'} do |f| %> |
4 | <%= hidden_field_tag :contract_id, @contract.id %> | 4 | <%= hidden_field_tag :contract_id, @contract.id %> |
5 | <%= required f.text_field(:client_name) %> | 5 | <%= required f.text_field(:client_name) %> |
6 | <%= labelled_form_field(_('Client type'), f.select(:client_type, BscPlugin::Contract::ClientType.types.map{|type| [BscPlugin::Contract::ClientType.names[type], type]}))%> | 6 | <%= labelled_form_field(_('Client type'), f.select(:client_type, BscPlugin::Contract::ClientType.types.map{|type| [BscPlugin::Contract::ClientType.names[type], type]}))%> |
plugins/bsc/views/bsc_plugin_myprofile/create_enterprise.html.erb
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | 4 | ||
5 | <%= required_fields_message %> | 5 | <%= required_fields_message %> |
6 | 6 | ||
7 | -<% labelled_form_for(:create_enterprise, @create_enterprise) do |f| %> | 7 | +<%= labelled_form_for(:create_enterprise, @create_enterprise) do |f| %> |
8 | 8 | ||
9 | <%= required f.text_field 'name', :onchange => "updateUrlField(this, 'create_enterprise_identifier')", :size => 40 %> | 9 | <%= required f.text_field 'name', :onchange => "updateUrlField(this, 'create_enterprise_identifier')", :size => 40 %> |
10 | <%= render :partial => 'shared/organization_custom_fields', :locals => { :f => f, :object_name => :create_enterprise, :profile => @create_enterprise } %> | 10 | <%= render :partial => 'shared/organization_custom_fields', :locals => { :f => f, :object_name => :create_enterprise, :profile => @create_enterprise } %> |
plugins/custom_forms/views/custom_forms_plugin_myprofile/_form.html.erb
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | <%= error_messages_for :form %> | 3 | <%= error_messages_for :form %> |
4 | 4 | ||
5 | -<% form_for :form, @form do |f| %> | 5 | +<%= form_for :form, @form do |f| %> |
6 | <%= required labelled_form_field _('Name'), f.text_field(:name) %> | 6 | <%= required labelled_form_field _('Name'), f.text_field(:name) %> |
7 | <%= labelled_form_field(_('Period'), ( | 7 | <%= labelled_form_field(_('Period'), ( |
8 | date_range_field('form[begining]', 'form[ending]', @form.begining, @form.ending, | 8 | date_range_field('form[begining]', 'form[ending]', @form.begining, @form.ending, |
plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | <% if @submission.id.nil? %> | 4 | <% if @submission.id.nil? %> |
5 | <%= error_messages_for :submission %> | 5 | <%= error_messages_for :submission %> |
6 | 6 | ||
7 | - <% form_for :submission, @submission do |f| %> | 7 | + <%= form_for :submission, @submission do |f| %> |
8 | <% if !user %> | 8 | <% if !user %> |
9 | <%= required labelled_form_field _('Author name'), text_field_tag(:author_name, @submission.author_name) %> | 9 | <%= required labelled_form_field _('Author name'), text_field_tag(:author_name, @submission.author_name) %> |
10 | <%= required labelled_form_field _('Author email'), text_field_tag(:author_email, @submission.author_email) %> | 10 | <%= required labelled_form_field _('Author email'), text_field_tag(:author_email, @submission.author_email) %> |
plugins/mezuro/views/mezuro_plugin_myprofile/_edit_range.html.erb
1 | -<% remote_form_for :range, :url => {:action =>"update_range", :controller => "mezuro_plugin_myprofile"}, :method => :get do |f| %> | 1 | +<%= remote_form_for :range, :url => {:action =>"update_range", :controller => "mezuro_plugin_myprofile"}, :method => :get do |f| %> |
2 | <%= hidden_field_tag :beginning_id, beginning_id %> | 2 | <%= hidden_field_tag :beginning_id, beginning_id %> |
3 | <%= render :partial => "range_form", :locals => {:f => f, :metric_name => metric_name, :id => id, :beginning_id => beginning_id, :range => range } %> | 3 | <%= render :partial => "range_form", :locals => {:f => f, :metric_name => metric_name, :id => id, :beginning_id => beginning_id, :range => range } %> |
4 | <% end %> | 4 | <% end %> |
plugins/mezuro/views/mezuro_plugin_myprofile/_new_range.html.erb
1 | -<% remote_form_for :range, :url => {:action =>"create_range", :controller => "mezuro_plugin_myprofile"}, :method => :get do |f| %> | 1 | +<%= remote_form_for :range, :url => {:action =>"create_range", :controller => "mezuro_plugin_myprofile"}, :method => :get do |f| %> |
2 | <%= render :partial => "range_form", :locals => {:f => f, :metric_name => metric_name, :id => id } %> | 2 | <%= render :partial => "range_form", :locals => {:f => f, :metric_name => metric_name, :id => id } %> |
3 | <% end %> | 3 | <% end %> |
plugins/mezuro/views/mezuro_plugin_myprofile/edit_compound_metric_configuration.html.erb
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | 4 | ||
5 | <h2><%= @configuration_content.name %> Configuration</h2> | 5 | <h2><%= @configuration_content.name %> Configuration</h2> |
6 | 6 | ||
7 | -<% form_for :metric_configuration, :url => {:action =>"update_compound_metric_configuration", :controller => "mezuro_plugin_myprofile"}, :method => :get do |f| %> | 7 | +<%= form_for :metric_configuration, :url => {:action =>"update_compound_metric_configuration", :controller => "mezuro_plugin_myprofile"}, :method => :get do |f| %> |
8 | <%= hidden_field_tag :id, @configuration_content.id %> | 8 | <%= hidden_field_tag :id, @configuration_content.id %> |
9 | <%= f.hidden_field :configuration_name, :value => @configuration_content.name %> | 9 | <%= f.hidden_field :configuration_name, :value => @configuration_content.name %> |
10 | 10 |
plugins/mezuro/views/mezuro_plugin_myprofile/edit_metric_configuration.html.erb
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | 4 | ||
5 | <h2><%= @configuration_content.name %> Configuration</h2> | 5 | <h2><%= @configuration_content.name %> Configuration</h2> |
6 | 6 | ||
7 | -<% form_for :metric_configuration, :url => {:action =>"update_metric_configuration", :controller => "mezuro_plugin_myprofile"}, :method => :get do |f| %> | 7 | +<%= form_for :metric_configuration, :url => {:action =>"update_metric_configuration", :controller => "mezuro_plugin_myprofile"}, :method => :get do |f| %> |
8 | <%= hidden_field_tag :id, @configuration_content.id %> | 8 | <%= hidden_field_tag :id, @configuration_content.id %> |
9 | <%= f.hidden_field :configuration_name, :value => @configuration_content.name %> | 9 | <%= f.hidden_field :configuration_name, :value => @configuration_content.name %> |
10 | 10 |
plugins/mezuro/views/mezuro_plugin_myprofile/new_compound_metric_configuration.html.erb
1 | <h2><%= @configuration_content.name %> Configuration</h2> | 1 | <h2><%= @configuration_content.name %> Configuration</h2> |
2 | 2 | ||
3 | -<% form_for :metric_configuration, :url => {:action =>"create_compound_metric_configuration", | 3 | +<%= form_for :metric_configuration, :url => {:action =>"create_compound_metric_configuration", |
4 | :controller => "mezuro_plugin_myprofile"}, :method => :get do |f| %> | 4 | :controller => "mezuro_plugin_myprofile"}, :method => :get do |f| %> |
5 | <%= hidden_field_tag :id, @configuration_content.id %> | 5 | <%= hidden_field_tag :id, @configuration_content.id %> |
6 | <%= f.hidden_field :configuration_name, :value => @configuration_content.name %> | 6 | <%= f.hidden_field :configuration_name, :value => @configuration_content.name %> |
plugins/mezuro/views/mezuro_plugin_myprofile/new_metric_configuration.html.erb
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | <h2><%= @configuration_content.name %> Configuration</h2> | 3 | <h2><%= @configuration_content.name %> Configuration</h2> |
4 | 4 | ||
5 | -<% form_for :metric_configuration, :url => {:action =>"create_metric_configuration", :controller => "mezuro_plugin_myprofile"}, :method => :get do |f| %> | 5 | +<%= form_for :metric_configuration, :url => {:action =>"create_metric_configuration", :controller => "mezuro_plugin_myprofile"}, :method => :get do |f| %> |
6 | <%= hidden_field_tag :id, @configuration_content.id %> | 6 | <%= hidden_field_tag :id, @configuration_content.id %> |
7 | <%= f.hidden_field :configuration_name, :value => @configuration_content.name %> | 7 | <%= f.hidden_field :configuration_name, :value => @configuration_content.name %> |
8 | 8 |
plugins/send_email/views/send_email_plugin_admin/index.rhtml
1 | <h1><%= _("SendEmailPlugin's config") %></h1> | 1 | <h1><%= _("SendEmailPlugin's config") %></h1> |
2 | 2 | ||
3 | -<% form_for :environment, :url => {:action => 'index'}, :html => {:method => 'post'} do |f| %> | 3 | +<%= form_for :environment, :url => {:action => 'index'}, :html => {:method => 'post'} do |f| %> |
4 | <%= labelled_form_field(_("E-Mail addresses you want to allow to send"), f.text_area(:send_email_plugin_allow_to, :rows => 8)) %> | 4 | <%= labelled_form_field(_("E-Mail addresses you want to allow to send"), f.text_area(:send_email_plugin_allow_to, :rows => 8)) %> |
5 | <small><%= _('(list of email addresses separated by comma)') %></small> | 5 | <small><%= _('(list of email addresses separated by comma)') %></small> |
6 | <% button_bar do %> | 6 | <% button_bar do %> |
plugins/shopping_cart/views/shopping_cart_plugin_myprofile/edit.html.erb
1 | <h1> <%= _('Basket options') %> </h1> | 1 | <h1> <%= _('Basket options') %> </h1> |
2 | 2 | ||
3 | -<% form_for(:profile_attr, profile, :url => {:action => 'edit'}, :html => {:method => 'post'}) do |f| %> | 3 | +<%= form_for(:profile_attr, profile, :url => {:action => 'edit'}, :html => {:method => 'post'}) do |f| %> |
4 | <%= labelled_form_field(_('Enabled?'), f.check_box(:shopping_cart)) %> | 4 | <%= labelled_form_field(_('Enabled?'), f.check_box(:shopping_cart)) %> |
5 | <%= labelled_form_field(_('Delivery?'), f.check_box(:shopping_cart_delivery)) %> | 5 | <%= labelled_form_field(_('Delivery?'), f.check_box(:shopping_cart_delivery)) %> |
6 | <%= labelled_form_field(_('Delivery price:'), f.text_field(:shopping_cart_delivery_price)) %> | 6 | <%= labelled_form_field(_('Delivery price:'), f.text_field(:shopping_cart_delivery_price)) %> |
plugins/shopping_cart/views/shopping_cart_plugin_profile/buy.html.erb
1 | <% person = user.nil? ? Person.new : user %> | 1 | <% person = user.nil? ? Person.new : user %> |
2 | <div id='cart-request-box'> | 2 | <div id='cart-request-box'> |
3 | - <% form_for(:customer, person, :url => {:action => 'send_request'}, | 3 | + <%= form_for(:customer, person, :url => {:action => 'send_request'}, |
4 | :html => {:onsubmit => "return Cart.send_request(this)", :id => 'cart-request-form' }) do |f| %> | 4 | :html => {:onsubmit => "return Cart.send_request(this)", :id => 'cart-request-form' }) do |f| %> |
5 | <div id="cart-form-main"> | 5 | <div id="cart-form-main"> |
6 | <%= labelled_form_field('* ' + _("Name"), f.text_field(:name, :class => 'required') ) %> | 6 | <%= labelled_form_field('* ' + _("Name"), f.text_field(:name, :class => 'required') ) %> |
plugins/spaminator/views/spaminator_plugin_admin/index.rhtml
1 | <h1><%= _('Spaminator settings')%></h1> | 1 | <h1><%= _('Spaminator settings')%></h1> |
2 | 2 | ||
3 | -<% form_for(:settings) do |f| %> | 3 | +<%= form_for(:settings) do |f| %> |
4 | 4 | ||
5 | <div id="spaminator-config-fields"> | 5 | <div id="spaminator-config-fields"> |
6 | <%= labelled_form_field _('Period (days) for scanning spammers'), f.text_field(:period, :size => 4) %> | 6 | <%= labelled_form_field _('Period (days) for scanning spammers'), f.text_field(:period, :size => 4) %> |
plugins/tolerance_time/views/tolerance_time_plugin_myprofile/index.html.erb
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | <%= error_messages_for :tolerance %> | 3 | <%= error_messages_for :tolerance %> |
4 | 4 | ||
5 | -<% form_for :tolerance, @tolerance do |f| %> | 5 | +<%= form_for :tolerance, @tolerance do |f| %> |
6 | 6 | ||
7 | <% time_units = [[_('Seconds'), 1], [_('Minutes'), 60], [_('Hours'), 3600]]%> | 7 | <% time_units = [[_('Seconds'), 1], [_('Minutes'), 60], [_('Hours'), 3600]]%> |
8 | 8 |