diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-09 18:15:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-09 18:15:55 +0000 |
commit | 9636882c1e890c7d6dda6b974b9765bebe3f880a (patch) | |
tree | 626d15eb8cb6f7cb17fc514abb5ad97293d95efe /app/views/projects | |
parent | 312ffe43c7efa910d3aa987826e4b8b5f358139e (diff) | |
download | redmine-9636882c1e890c7d6dda6b974b9765bebe3f880a.tar.gz redmine-9636882c1e890c7d6dda6b974b9765bebe3f880a.zip |
Use #labelled_form_for instead of #labelled_tabular_form_for.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8141 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/_edit.html.erb | 2 | ||||
-rw-r--r-- | app/views/projects/_form.html.erb | 8 | ||||
-rw-r--r-- | app/views/projects/copy.html.erb | 4 | ||||
-rw-r--r-- | app/views/projects/new.html.erb | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/app/views/projects/_edit.html.erb b/app/views/projects/_edit.html.erb index 43e1c3ba6..e52baa116 100644 --- a/app/views/projects/_edit.html.erb +++ b/app/views/projects/_edit.html.erb @@ -1,4 +1,4 @@ -<% labelled_tabular_form_for @project do |f| %> +<% labelled_form_for @project do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> <%= submit_tag l(:button_save) %> <% end %> diff --git a/app/views/projects/_form.html.erb b/app/views/projects/_form.html.erb index 0e8978519..a41b00e50 100644 --- a/app/views/projects/_form.html.erb +++ b/app/views/projects/_form.html.erb @@ -1,6 +1,6 @@ <%= error_messages_for 'project' %> -<div class="box"> +<div class="box tabular"> <!--[form:project]--> <p><%= f.text_field :name, :required => true, :size => 60 %></p> @@ -24,7 +24,7 @@ </div> <% if @project.new_record? %> -<fieldset class="box"><legend><%= l(:label_module_plural) %></legend> +<fieldset class="box tabular"><legend><%= l(:label_module_plural) %></legend> <% Redmine::AccessControl.available_project_modules.each do |m| %> <label class="floating"> <%= check_box_tag 'project[enabled_module_names][]', m, @project.module_enabled?(m), :id => "project_enabled_module_names_#{m}" %> @@ -38,7 +38,7 @@ <% if @project.new_record? || @project.module_enabled?('issue_tracking') %> <% unless @trackers.empty? %> -<fieldset class="box" id="project_trackers"><legend><%=l(:label_tracker_plural)%></legend> +<fieldset class="box tabular" id="project_trackers"><legend><%=l(:label_tracker_plural)%></legend> <% @trackers.each do |tracker| %> <label class="floating"> <%= check_box_tag 'project[tracker_ids][]', tracker.id, @project.trackers.include?(tracker) %> @@ -50,7 +50,7 @@ <% end %> <% unless @issue_custom_fields.empty? %> -<fieldset class="box" id="project_issue_custom_fields"><legend><%=l(:label_custom_field_plural)%></legend> +<fieldset class="box tabular" id="project_issue_custom_fields"><legend><%=l(:label_custom_field_plural)%></legend> <% @issue_custom_fields.each do |custom_field| %> <label class="floating"> <%= check_box_tag 'project[issue_custom_field_ids][]', custom_field.id, (@project.all_issue_custom_fields.include? custom_field), (custom_field.is_for_all? ? {:disabled => "disabled"} : {}) %> diff --git a/app/views/projects/copy.html.erb b/app/views/projects/copy.html.erb index 1ea4d43cd..66f6d3353 100644 --- a/app/views/projects/copy.html.erb +++ b/app/views/projects/copy.html.erb @@ -1,9 +1,9 @@ <h2><%=l(:label_project_new)%></h2> -<% labelled_tabular_form_for @project, :url => { :action => "copy" } do |f| %> +<% labelled_form_for @project, :url => { :action => "copy" } do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> -<fieldset class="box"><legend><%= l(:button_copy) %></legend> +<fieldset class="box tabular"><legend><%= l(:button_copy) %></legend> <label class="block"><%= check_box_tag 'only[]', 'members', true %> <%= l(:label_member_plural) %> (<%= @source_project.members.count %>)</label> <label class="block"><%= check_box_tag 'only[]', 'versions', true %> <%= l(:label_version_plural) %> (<%= @source_project.versions.count %>)</label> <label class="block"><%= check_box_tag 'only[]', 'issue_categories', true %> <%= l(:label_issue_category_plural) %> (<%= @source_project.issue_categories.count %>)</label> diff --git a/app/views/projects/new.html.erb b/app/views/projects/new.html.erb index 1b87acf68..deca4e344 100644 --- a/app/views/projects/new.html.erb +++ b/app/views/projects/new.html.erb @@ -1,6 +1,6 @@ <h2><%=l(:label_project_new)%></h2> -<% labelled_tabular_form_for @project do |f| %> +<% labelled_form_for @project do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> <%= submit_tag l(:button_create) %> <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |