diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 4063d763..a07d26d4 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -213,8 +213,8 @@ module IssuesHelper def send_notification_option content_tag(:p, content_tag(:label, - l(:label_notify_member_plural)) + - hidden_field_tag('send_notification', '0') + + l(:label_notify_member_plural), :for => 'send_notification') + + hidden_field_tag('send_notification', '0', :id => nil) + check_box_tag('send_notification', '1', true)) diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index 6bc9b1d4..b03552b8 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -43,6 +43,7 @@ module SearchHelper options << [l(:label_my_projects), 'my_projects'] unless User.current.memberships.empty? options << [l(:label_and_its_subprojects, @project.name), 'subprojects'] unless @project.nil? || @project.descendants.active.empty? options << [@project.name, ''] unless @project.nil? + label_tag("scope", l(:description_project_scope), :class => "hidden-for-sighted") + select_tag('scope', options_for_select(options, params[:scope].to_s)) if options.size > 1 end diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb index af604a66..173b7509 100644 --- a/app/views/activities/index.html.erb +++ b/app/views/activities/index.html.erb @@ -44,7 +44,7 @@

<%= l(:label_activity) %>

<% @activity.event_types.each do |t| %> <%= check_box_tag "show_#{t}", 1, @activity.scope.include?(t) %> -<%= link_to(l("label_#{t.singularize}_plural"), {"show_#{t}" => 1, :user_id => params[:user_id]})%> +
<% end %>

<% if @project && @project.descendants.active.any? %> diff --git a/app/views/admin/projects.rhtml b/app/views/admin/projects.rhtml index 229c77ea..423a804a 100644 --- a/app/views/admin/projects.rhtml +++ b/app/views/admin/projects.rhtml @@ -6,9 +6,9 @@ <% form_tag({}, :method => :get) do %>
<%= l(:label_filter_plural) %> - + <%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> - + <%= text_field_tag 'name', params[:name], :size => 30 %> <%= submit_tag l(:button_apply), :class => "small", :name => nil %> <%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %> diff --git a/app/views/custom_fields/_form.rhtml b/app/views/custom_fields/_form.rhtml index dcaecead..16e3c8c8 100644 --- a/app/views/custom_fields/_form.rhtml +++ b/app/views/custom_fields/_form.rhtml @@ -79,10 +79,9 @@ function toggle_custom_field_format() {
<% case @custom_field.class.name when "IssueCustomField" %> -
<%=l(:label_tracker_plural)%> <% for tracker in @trackers %> - <%= check_box_tag "custom_field[tracker_ids][]", tracker.id, (@custom_field.trackers.include? tracker) %> <%= h(tracker.name) %> + <%= check_box_tag "custom_field[tracker_ids][]", tracker.id, (@custom_field.trackers.include? tracker), :id => "custom_field_tracker_ids_#{tracker.id}" %> <% end %> <%= hidden_field_tag "custom_field[tracker_ids][]", '' %>
diff --git a/app/views/enumerations/destroy.rhtml b/app/views/enumerations/destroy.rhtml index 657df832..b77fff66 100644 --- a/app/views/enumerations/destroy.rhtml +++ b/app/views/enumerations/destroy.rhtml @@ -3,7 +3,7 @@ <% form_tag({}) do %>

<%= l(:text_enumeration_destroy_question, @enumeration.objects_count) %>

-

<%= l(:text_enumeration_category_reassign_to) %> +

<%= select_tag 'reassign_to_id', ("" + options_from_collection_for_select(@enumerations, 'id', 'name')) %>

diff --git a/app/views/groups/_memberships.html.erb b/app/views/groups/_memberships.html.erb index e5d84a17..46f2d11e 100644 --- a/app/views/groups/_memberships.html.erb +++ b/app/views/groups/_memberships.html.erb @@ -44,6 +44,7 @@ <% if projects.any? %>
<%=l(:label_project_new)%> <% remote_form_for(:membership, :url => { :action => 'edit_membership', :id => @group }) do %> +<%= label_tag "membership_project_id", l(:description_choose_project), :class => "hidden-for-sighted" %> <%= select_tag 'membership[project_id]', options_for_membership_project_select(@group, projects) %>

<%= l(:label_role_plural) %>: <% roles.each do |role| %> diff --git a/app/views/issue_categories/destroy.rhtml b/app/views/issue_categories/destroy.rhtml index 2b61810e..fb169c86 100644 --- a/app/views/issue_categories/destroy.rhtml +++ b/app/views/issue_categories/destroy.rhtml @@ -6,6 +6,7 @@


<% if @categories.size > 0 %> : +<%= label_tag "reassign_to_id", l(:description_issue_category_reassign), :class => "hidden-for-sighted" %> <%= select_tag 'reassign_to_id', options_from_collection_for_select(@categories, 'id', 'name') %>

<% end %>
diff --git a/app/views/issue_moves/new.rhtml b/app/views/issue_moves/new.rhtml index 6f2935e1..f1327ad7 100644 --- a/app/views/issue_moves/new.rhtml +++ b/app/views/issue_moves/new.rhtml @@ -26,17 +26,17 @@ <%= select_tag "new_tracker_id", "" + options_from_collection_for_select(@trackers, "id", "name") %>

- + <%= select_tag('status_id', "" + options_from_collection_for_select(@available_statuses, :id, :name)) %>

- + <%= select_tag('priority_id', "" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %>

- + <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') + content_tag('option', l(:label_nobody), :value => 'none') + options_from_collection_for_select(@target_project.assignable_users, :id, :name)) %> @@ -45,12 +45,12 @@

- + <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %>

- + <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %>

diff --git a/app/views/issues/bulk_edit.rhtml b/app/views/issues/bulk_edit.rhtml index eceb11b8..61bd7e4a 100644 --- a/app/views/issues/bulk_edit.rhtml +++ b/app/views/issues/bulk_edit.rhtml @@ -10,28 +10,28 @@

- + <%= select_tag('issue[tracker_id]', "" + options_from_collection_for_select(@trackers, :id, :name)) %>

<% if @available_statuses.any? %>

- + <%= select_tag('issue[status_id]', "" + options_from_collection_for_select(@available_statuses, :id, :name)) %>

<% end %>

- + <%= select_tag('issue[priority_id]', "" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %>

- + <%= select_tag('issue[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') + content_tag('option', l(:label_nobody), :value => 'none') + options_from_collection_for_select(@assignables, :id, :name)) %>

<% if @project %>

- + <%= select_tag('issue[category_id]', content_tag('option', l(:label_no_change_option), :value => '') + content_tag('option', l(:label_none), :value => 'none') + options_from_collection_for_select(@project.issue_categories, :id, :name)) %> @@ -40,7 +40,7 @@ <% #TODO: allow editing versions when multiple projects %> <% if @project %>

- + <%= select_tag('issue[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') + content_tag('option', l(:label_none), :value => 'none') + version_options_for_select(@project.shared_versions.open.sort)) %> @@ -48,7 +48,7 @@ <% end %> <% @custom_fields.each do |custom_field| %> -

<%= custom_field_tag_for_bulk_edit('issue', custom_field) %>

+

<% end %> <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %> @@ -57,23 +57,23 @@
<% if @project && User.current.allowed_to?(:manage_subtasks, @project) %>

- + <%= text_field_tag 'issue[parent_issue_id]', '', :size => 10 %>

<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:project_id => @project) }')" %> <% end %>

- + <%= text_field_tag 'issue[start_date]', '', :size => 10 %><%= calendar_for('issue_start_date') %>

- + <%= text_field_tag 'issue[due_date]', '', :size => 10 %><%= calendar_for('issue_due_date') %>

<% if Issue.use_field_for_done_ratio? %>

- + <%= select_tag 'issue[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %>

<% end %> diff --git a/app/views/issues/index.rhtml b/app/views/issues/index.rhtml index 18df5a6b..122b0c06 100644 --- a/app/views/issues/index.rhtml +++ b/app/views/issues/index.rhtml @@ -26,7 +26,7 @@ <%= render :partial => 'queries/columns', :locals => {:query => @query} %> - <%= l(:field_group_by) %> + <%= select_tag('group_by', options_for_select([[]] + @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, @query.group_by)) %> diff --git a/app/views/journals/_notes_form.rhtml b/app/views/journals/_notes_form.rhtml index 2b0a467c..19604510 100644 --- a/app/views/journals/_notes_form.rhtml +++ b/app/views/journals/_notes_form.rhtml @@ -1,4 +1,6 @@ <% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %> + + <%= label_tag "notes", l(:description_notes), :class => "hidden-for-sighted" %> <%= text_area_tag :notes, @journal.notes, :class => 'wiki-edit', :rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %> <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %> diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index ea485225..553d743d 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -37,7 +37,9 @@