@@ -1,19 +1,19 | |||||
1 |
|
|
1 | <%= title l(:label_plugins) %> | |
2 |
|
2 | |||
3 | <% if @plugins.any? %> |
|
3 | <% if @plugins.any? %> | |
4 | <table class="list plugins"> |
|
4 | <table class="list plugins"> | |
5 | <% @plugins.each do |plugin| %> |
|
5 | <% @plugins.each do |plugin| %> | |
6 | <tr id="plugin-<%= plugin.id %>" class="<%= cycle('odd', 'even') %>"> |
|
6 | <tr id="plugin-<%= plugin.id %>" class="<%= cycle('odd', 'even') %>"> | |
7 | <td><span class="name"><%=h plugin.name %></span> |
|
7 | <td><span class="name"><%=h plugin.name %></span> | |
8 | <%= content_tag('span', h(plugin.description), :class => 'description') unless plugin.description.blank? %> |
|
8 | <%= content_tag('span', h(plugin.description), :class => 'description') unless plugin.description.blank? %> | |
9 | <%= content_tag('span', link_to(h(plugin.url), plugin.url), :class => 'url') unless plugin.url.blank? %> |
|
9 | <%= content_tag('span', link_to(h(plugin.url), plugin.url), :class => 'url') unless plugin.url.blank? %> | |
10 | </td> |
|
10 | </td> | |
11 | <td class="author"><%= plugin.author_url.blank? ? h(plugin.author) : link_to(h(plugin.author), plugin.author_url) %></td> |
|
11 | <td class="author"><%= plugin.author_url.blank? ? h(plugin.author) : link_to(h(plugin.author), plugin.author_url) %></td> | |
12 | <td class="version"><%=h plugin.version %></td> |
|
12 | <td class="version"><%=h plugin.version %></td> | |
13 | <td class="configure"><%= link_to(l(:button_configure), plugin_settings_path(plugin)) if plugin.configurable? %></td> |
|
13 | <td class="configure"><%= link_to(l(:button_configure), plugin_settings_path(plugin)) if plugin.configurable? %></td> | |
14 | </tr> |
|
14 | </tr> | |
15 | <% end %> |
|
15 | <% end %> | |
16 | </table> |
|
16 | </table> | |
17 | <% else %> |
|
17 | <% else %> | |
18 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
18 | <p class="nodata"><%= l(:label_no_data) %></p> | |
19 | <% end %> |
|
19 | <% end %> |
@@ -1,45 +1,43 | |||||
1 | <div class="contextual"> |
|
1 | <div class="contextual"> | |
2 | <%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %> |
|
2 | <%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %> | |
3 | </div> |
|
3 | </div> | |
4 |
|
4 | |||
5 |
|
|
5 | <%= title l(:label_project_plural) %> | |
6 |
|
6 | |||
7 | <%= form_tag({}, :method => :get) do %> |
|
7 | <%= form_tag({}, :method => :get) do %> | |
8 | <fieldset><legend><%= l(:label_filter_plural) %></legend> |
|
8 | <fieldset><legend><%= l(:label_filter_plural) %></legend> | |
9 | <label for='status'><%= l(:field_status) %> :</label> |
|
9 | <label for='status'><%= l(:field_status) %> :</label> | |
10 | <%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> |
|
10 | <%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> | |
11 | <label for='name'><%= l(:label_project) %>:</label> |
|
11 | <label for='name'><%= l(:label_project) %>:</label> | |
12 | <%= text_field_tag 'name', params[:name], :size => 30 %> |
|
12 | <%= text_field_tag 'name', params[:name], :size => 30 %> | |
13 | <%= submit_tag l(:button_apply), :class => "small", :name => nil %> |
|
13 | <%= submit_tag l(:button_apply), :class => "small", :name => nil %> | |
14 | <%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %> |
|
14 | <%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %> | |
15 | </fieldset> |
|
15 | </fieldset> | |
16 | <% end %> |
|
16 | <% end %> | |
17 | |
|
17 | | |
18 |
|
18 | |||
19 | <div class="autoscroll"> |
|
19 | <div class="autoscroll"> | |
20 | <table class="list"> |
|
20 | <table class="list"> | |
21 | <thead><tr> |
|
21 | <thead><tr> | |
22 | <th><%=l(:label_project)%></th> |
|
22 | <th><%=l(:label_project)%></th> | |
23 | <th><%=l(:field_is_public)%></th> |
|
23 | <th><%=l(:field_is_public)%></th> | |
24 | <th><%=l(:field_created_on)%></th> |
|
24 | <th><%=l(:field_created_on)%></th> | |
25 | <th></th> |
|
25 | <th></th> | |
26 | </tr></thead> |
|
26 | </tr></thead> | |
27 | <tbody> |
|
27 | <tbody> | |
28 | <% project_tree(@projects) do |project, level| %> |
|
28 | <% project_tree(@projects) do |project, level| %> | |
29 | <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> |
|
29 | <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> | |
30 | <td class="name"><span><%= link_to_project_settings(project, {}, :title => project.short_description) %></span></td> |
|
30 | <td class="name"><span><%= link_to_project_settings(project, {}, :title => project.short_description) %></span></td> | |
31 | <td align="center"><%= checked_image project.is_public? %></td> |
|
31 | <td align="center"><%= checked_image project.is_public? %></td> | |
32 | <td align="center"><%= format_date(project.created_on) %></td> |
|
32 | <td align="center"><%= format_date(project.created_on) %></td> | |
33 | <td class="buttons"> |
|
33 | <td class="buttons"> | |
34 | <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock') unless project.archived? %> |
|
34 | <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock') unless project.archived? %> | |
35 | <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if project.archived? && (project.parent.nil? || !project.parent.archived?) %> |
|
35 | <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if project.archived? && (project.parent.nil? || !project.parent.archived?) %> | |
36 | <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %> |
|
36 | <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %> | |
37 | <%= link_to(l(:button_delete), project_path(project), :method => :delete, :class => 'icon icon-del') %> |
|
37 | <%= link_to(l(:button_delete), project_path(project), :method => :delete, :class => 'icon icon-del') %> | |
38 | </td> |
|
38 | </td> | |
39 | </tr> |
|
39 | </tr> | |
40 | <% end %> |
|
40 | <% end %> | |
41 | </tbody> |
|
41 | </tbody> | |
42 | </table> |
|
42 | </table> | |
43 | </div> |
|
43 | </div> | |
44 |
|
||||
45 | <% html_title(l(:label_project_plural)) -%> |
|
@@ -1,6 +1,6 | |||||
1 | <h2><%=l(:label_auth_source)%> (<%= h(@auth_source.auth_method_name) %>)</h2> |
|
1 | <%= title [l(:label_auth_source_plural), auth_sources_path], @auth_source.name %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @auth_source, :as => :auth_source, :url => auth_source_path(@auth_source), :html => {:id => 'auth_source_form'} do |f| %> |
|
3 | <%= labelled_form_for @auth_source, :as => :auth_source, :url => auth_source_path(@auth_source), :html => {:id => 'auth_source_form'} do |f| %> | |
4 | <%= render :partial => auth_source_partial_name(@auth_source), :locals => { :f => f } %> |
|
4 | <%= render :partial => auth_source_partial_name(@auth_source), :locals => { :f => f } %> | |
5 | <%= submit_tag l(:button_save) %> |
|
5 | <%= submit_tag l(:button_save) %> | |
6 | <% end %> |
|
6 | <% end %> |
@@ -1,31 +1,31 | |||||
1 | <div class="contextual"> |
|
1 | <div class="contextual"> | |
2 | <%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %> |
|
2 | <%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %> | |
3 | </div> |
|
3 | </div> | |
4 |
|
4 | |||
5 |
|
|
5 | <%= title l(:label_auth_source_plural) %> | |
6 |
|
6 | |||
7 | <table class="list"> |
|
7 | <table class="list"> | |
8 | <thead><tr> |
|
8 | <thead><tr> | |
9 | <th><%=l(:field_name)%></th> |
|
9 | <th><%=l(:field_name)%></th> | |
10 | <th><%=l(:field_type)%></th> |
|
10 | <th><%=l(:field_type)%></th> | |
11 | <th><%=l(:field_host)%></th> |
|
11 | <th><%=l(:field_host)%></th> | |
12 | <th><%=l(:label_user_plural)%></th> |
|
12 | <th><%=l(:label_user_plural)%></th> | |
13 | <th></th> |
|
13 | <th></th> | |
14 | </tr></thead> |
|
14 | </tr></thead> | |
15 | <tbody> |
|
15 | <tbody> | |
16 | <% for source in @auth_sources %> |
|
16 | <% for source in @auth_sources %> | |
17 | <tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>"> |
|
17 | <tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>"> | |
18 | <td><%= link_to(h(source.name), :action => 'edit', :id => source)%></td> |
|
18 | <td><%= link_to(h(source.name), :action => 'edit', :id => source)%></td> | |
19 | <td align="center"><%= h source.auth_method_name %></td> |
|
19 | <td align="center"><%= h source.auth_method_name %></td> | |
20 | <td align="center"><%= h source.host %></td> |
|
20 | <td align="center"><%= h source.host %></td> | |
21 | <td align="center"><%= h source.users.count %></td> |
|
21 | <td align="center"><%= h source.users.count %></td> | |
22 | <td class="buttons"> |
|
22 | <td class="buttons"> | |
23 | <%= link_to l(:button_test), try_connection_auth_source_path(source), :class => 'icon icon-test' %> |
|
23 | <%= link_to l(:button_test), try_connection_auth_source_path(source), :class => 'icon icon-test' %> | |
24 | <%= delete_link auth_source_path(source) %> |
|
24 | <%= delete_link auth_source_path(source) %> | |
25 | </td> |
|
25 | </td> | |
26 | </tr> |
|
26 | </tr> | |
27 | <% end %> |
|
27 | <% end %> | |
28 | </tbody> |
|
28 | </tbody> | |
29 | </table> |
|
29 | </table> | |
30 |
|
30 | |||
31 | <p class="pagination"><%= pagination_links_full @auth_source_pages %></p> |
|
31 | <p class="pagination"><%= pagination_links_full @auth_source_pages %></p> |
@@ -1,7 +1,7 | |||||
1 |
|
|
1 | <%= title [l(:label_auth_source_plural), auth_sources_path], "#{l(:label_auth_source_new)} (#{@auth_source.auth_method_name})" %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @auth_source, :as => :auth_source, :url => auth_sources_path, :html => {:id => 'auth_source_form'} do |f| %> |
|
3 | <%= labelled_form_for @auth_source, :as => :auth_source, :url => auth_sources_path, :html => {:id => 'auth_source_form'} do |f| %> | |
4 | <%= hidden_field_tag 'type', @auth_source.type %> |
|
4 | <%= hidden_field_tag 'type', @auth_source.type %> | |
5 | <%= render :partial => auth_source_partial_name(@auth_source), :locals => { :f => f } %> |
|
5 | <%= render :partial => auth_source_partial_name(@auth_source), :locals => { :f => f } %> | |
6 | <%= submit_tag l(:button_create) %> |
|
6 | <%= submit_tag l(:button_create) %> | |
7 | <% end %> |
|
7 | <% end %> |
@@ -1,8 +1,8 | |||||
1 |
< |
|
1 | <%= title [l(:label_custom_field_plural), custom_fields_path], | |
2 |
|
|
2 | [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)], | |
3 |
|
|
3 | @custom_field.name %> | |
4 |
|
4 | |||
5 | <%= labelled_form_for :custom_field, @custom_field, :url => custom_field_path(@custom_field), :html => {:method => :put, :id => 'custom_field_form'} do |f| %> |
|
5 | <%= labelled_form_for :custom_field, @custom_field, :url => custom_field_path(@custom_field), :html => {:method => :put, :id => 'custom_field_form'} do |f| %> | |
6 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
6 | <%= render :partial => 'form', :locals => { :f => f } %> | |
7 | <%= submit_tag l(:button_save) %> |
|
7 | <%= submit_tag l(:button_save) %> | |
8 | <% end %> |
|
8 | <% end %> |
@@ -1,5 +1,3 | |||||
1 |
|
|
1 | <%= title l(:label_custom_field_plural) %> | |
2 |
|
2 | |||
3 | <%= render_tabs custom_fields_tabs %> |
|
3 | <%= render_tabs custom_fields_tabs %> | |
4 |
|
||||
5 | <% html_title(l(:label_custom_field_plural)) -%> |
|
@@ -1,19 +1,19 | |||||
1 |
< |
|
1 | <%= title [l(:label_custom_field_plural), custom_fields_path], | |
2 |
|
|
2 | [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)], | |
3 |
|
|
3 | l(:label_custom_field_new) %> | |
4 |
|
4 | |||
5 | <%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %> |
|
5 | <%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %> | |
6 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
6 | <%= render :partial => 'form', :locals => { :f => f } %> | |
7 | <%= hidden_field_tag 'type', @custom_field.type %> |
|
7 | <%= hidden_field_tag 'type', @custom_field.type %> | |
8 | <%= submit_tag l(:button_save) %> |
|
8 | <%= submit_tag l(:button_save) %> | |
9 | <% end %> |
|
9 | <% end %> | |
10 |
|
10 | |||
11 | <%= javascript_tag do %> |
|
11 | <%= javascript_tag do %> | |
12 | $('#custom_field_field_format').change(function(){ |
|
12 | $('#custom_field_field_format').change(function(){ | |
13 | $.ajax({ |
|
13 | $.ajax({ | |
14 | url: '<%= new_custom_field_path(:format => 'js') %>', |
|
14 | url: '<%= new_custom_field_path(:format => 'js') %>', | |
15 | type: 'get', |
|
15 | type: 'get', | |
16 | data: $('#custom_field_form').serialize() |
|
16 | data: $('#custom_field_form').serialize() | |
17 | }); |
|
17 | }); | |
18 | }); |
|
18 | }); | |
19 | <% end %> |
|
19 | <% end %> |
@@ -1,12 +1,12 | |||||
1 |
|
|
1 | <%= title [l(@enumeration.option_name), enumerations_path], @enumeration.name %> | |
2 |
|
2 | |||
3 | <%= form_tag({}, :method => :delete) do %> |
|
3 | <%= form_tag({}, :method => :delete) do %> | |
4 | <div class="box"> |
|
4 | <div class="box"> | |
5 | <p><strong><%= l(:text_enumeration_destroy_question, @enumeration.objects_count) %></strong></p> |
|
5 | <p><strong><%= l(:text_enumeration_destroy_question, @enumeration.objects_count) %></strong></p> | |
6 | <p><label for='reassign_to_id'><%= l(:text_enumeration_category_reassign_to) %></label> |
|
6 | <p><label for='reassign_to_id'><%= l(:text_enumeration_category_reassign_to) %></label> | |
7 | <%= select_tag 'reassign_to_id', (content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') + options_from_collection_for_select(@enumerations, 'id', 'name')) %></p> |
|
7 | <%= select_tag 'reassign_to_id', (content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') + options_from_collection_for_select(@enumerations, 'id', 'name')) %></p> | |
8 | </div> |
|
8 | </div> | |
9 |
|
9 | |||
10 | <%= submit_tag l(:button_apply) %> |
|
10 | <%= submit_tag l(:button_apply) %> | |
11 | <%= link_to l(:button_cancel), enumerations_path %> |
|
11 | <%= link_to l(:button_cancel), enumerations_path %> | |
12 | <% end %> |
|
12 | <% end %> |
@@ -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} 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,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 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) %> | |
7 | <% end %> |
|
7 | <% end %> |
@@ -1,6 +1,6 | |||||
1 |
< |
|
1 | <%= title [l(:label_issue_status_plural), issue_statuses_path], @issue_status.name %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @issue_status do |f| %> |
|
3 | <%= labelled_form_for @issue_status 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 |
< |
|
1 | <%= title [l(:label_issue_status_plural), issue_statuses_path], l(:label_issue_status_new) %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @issue_status do |f| %> |
|
3 | <%= labelled_form_for @issue_status 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 | <% end %> |
|
6 | <% end %> |
@@ -1,55 +1,55 | |||||
1 |
|
|
1 | <%= title l(:label_issue_new) %> | |
2 |
|
2 | |||
3 | <%= call_hook(:view_issues_new_top, {:issue => @issue}) %> |
|
3 | <%= call_hook(:view_issues_new_top, {:issue => @issue}) %> | |
4 |
|
4 | |||
5 | <%= labelled_form_for @issue, :url => project_issues_path(@project), |
|
5 | <%= labelled_form_for @issue, :url => project_issues_path(@project), | |
6 | :html => {:id => 'issue-form', :multipart => true} do |f| %> |
|
6 | :html => {:id => 'issue-form', :multipart => true} do |f| %> | |
7 | <%= error_messages_for 'issue' %> |
|
7 | <%= error_messages_for 'issue' %> | |
8 | <%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %> |
|
8 | <%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %> | |
9 | <div class="box tabular"> |
|
9 | <div class="box tabular"> | |
10 | <div id="all_attributes"> |
|
10 | <div id="all_attributes"> | |
11 | <%= render :partial => 'issues/form', :locals => {:f => f} %> |
|
11 | <%= render :partial => 'issues/form', :locals => {:f => f} %> | |
12 | </div> |
|
12 | </div> | |
13 |
|
13 | |||
14 | <% if @copy_from && @copy_from.attachments.any? %> |
|
14 | <% if @copy_from && @copy_from.attachments.any? %> | |
15 | <p> |
|
15 | <p> | |
16 | <label for="copy_attachments"><%= l(:label_copy_attachments) %></label> |
|
16 | <label for="copy_attachments"><%= l(:label_copy_attachments) %></label> | |
17 | <%= check_box_tag 'copy_attachments', '1', @copy_attachments %> |
|
17 | <%= check_box_tag 'copy_attachments', '1', @copy_attachments %> | |
18 | </p> |
|
18 | </p> | |
19 | <% end %> |
|
19 | <% end %> | |
20 | <% if @copy_from && !@copy_from.leaf? %> |
|
20 | <% if @copy_from && !@copy_from.leaf? %> | |
21 | <p> |
|
21 | <p> | |
22 | <label for="copy_subtasks"><%= l(:label_copy_subtasks) %></label> |
|
22 | <label for="copy_subtasks"><%= l(:label_copy_subtasks) %></label> | |
23 | <%= check_box_tag 'copy_subtasks', '1', @copy_subtasks %> |
|
23 | <%= check_box_tag 'copy_subtasks', '1', @copy_subtasks %> | |
24 | </p> |
|
24 | </p> | |
25 | <% end %> |
|
25 | <% end %> | |
26 |
|
26 | |||
27 | <p id="attachments_form"><label><%= l(:label_attachment_plural) %></label><%= render :partial => 'attachments/form', :locals => {:container => @issue} %></p> |
|
27 | <p id="attachments_form"><label><%= l(:label_attachment_plural) %></label><%= render :partial => 'attachments/form', :locals => {:container => @issue} %></p> | |
28 |
|
28 | |||
29 | <% if @issue.safe_attribute? 'watcher_user_ids' -%> |
|
29 | <% if @issue.safe_attribute? 'watcher_user_ids' -%> | |
30 | <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> |
|
30 | <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> | |
31 | <span id="watchers_inputs"> |
|
31 | <span id="watchers_inputs"> | |
32 | <%= watchers_checkboxes(@issue, @available_watchers) %> |
|
32 | <%= watchers_checkboxes(@issue, @available_watchers) %> | |
33 | </span> |
|
33 | </span> | |
34 | <span class="search_for_watchers"> |
|
34 | <span class="search_for_watchers"> | |
35 | <%= link_to l(:label_search_for_watchers), |
|
35 | <%= link_to l(:label_search_for_watchers), | |
36 | {:controller => 'watchers', :action => 'new', :project_id => @issue.project}, |
|
36 | {:controller => 'watchers', :action => 'new', :project_id => @issue.project}, | |
37 | :remote => true, |
|
37 | :remote => true, | |
38 | :method => 'get' %> |
|
38 | :method => 'get' %> | |
39 | </span> |
|
39 | </span> | |
40 | </p> |
|
40 | </p> | |
41 | <% end %> |
|
41 | <% end %> | |
42 | </div> |
|
42 | </div> | |
43 |
|
43 | |||
44 | <%= submit_tag l(:button_create) %> |
|
44 | <%= submit_tag l(:button_create) %> | |
45 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
|
45 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> | |
46 | <%= preview_link preview_new_issue_path(:project_id => @project), 'issue-form' %> |
|
46 | <%= preview_link preview_new_issue_path(:project_id => @project), 'issue-form' %> | |
47 |
|
47 | |||
48 | <%= javascript_tag "$('#issue_subject').focus();" %> |
|
48 | <%= javascript_tag "$('#issue_subject').focus();" %> | |
49 | <% end %> |
|
49 | <% end %> | |
50 |
|
50 | |||
51 | <div id="preview" class="wiki"></div> |
|
51 | <div id="preview" class="wiki"></div> | |
52 |
|
52 | |||
53 | <% content_for :header_tags do %> |
|
53 | <% content_for :header_tags do %> | |
54 | <%= robot_exclusion_tag %> |
|
54 | <%= robot_exclusion_tag %> | |
55 | <% end %> |
|
55 | <% end %> |
@@ -1,18 +1,19 | |||||
1 |
|
|
1 | <%= title l(:label_confirmation) %> | |
|
2 | ||||
2 | <div class="warning"> |
|
3 | <div class="warning"> | |
3 | <p><strong><%=h @project_to_destroy %></strong><br /> |
|
4 | <p><strong><%=h @project_to_destroy %></strong><br /> | |
4 | <%=l(:text_project_destroy_confirmation)%> |
|
5 | <%=l(:text_project_destroy_confirmation)%> | |
5 |
|
6 | |||
6 | <% if @project_to_destroy.descendants.any? %> |
|
7 | <% if @project_to_destroy.descendants.any? %> | |
7 | <br /><%= l(:text_subprojects_destroy_warning, |
|
8 | <br /><%= l(:text_subprojects_destroy_warning, | |
8 | content_tag('strong', h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')))).html_safe %> |
|
9 | content_tag('strong', h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')))).html_safe %> | |
9 | <% end %> |
|
10 | <% end %> | |
10 | </p> |
|
11 | </p> | |
11 | <p> |
|
12 | <p> | |
12 | <%= form_tag(project_path(@project_to_destroy), :method => :delete) do %> |
|
13 | <%= form_tag(project_path(@project_to_destroy), :method => :delete) do %> | |
13 | <label><%= check_box_tag 'confirm', 1 %> <%= l(:general_text_Yes) %></label> |
|
14 | <label><%= check_box_tag 'confirm', 1 %> <%= l(:general_text_Yes) %></label> | |
14 | <%= submit_tag l(:button_delete) %> |
|
15 | <%= submit_tag l(:button_delete) %> | |
15 | <%= link_to l(:button_cancel), :controller => 'admin', :action => 'projects' %> |
|
16 | <%= link_to l(:button_cancel), :controller => 'admin', :action => 'projects' %> | |
16 | <% end %> |
|
17 | <% end %> | |
17 | </p> |
|
18 | </p> | |
18 | </div> |
|
19 | </div> |
@@ -1,8 +1,8 | |||||
1 |
|
|
1 | <%= title l(:label_project_new) %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @project do |f| %> |
|
3 | <%= labelled_form_for @project 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' %> | |
7 | <%= javascript_tag "$('#project_name').focus();" %> |
|
7 | <%= javascript_tag "$('#project_name').focus();" %> | |
8 | <% end %> |
|
8 | <% end %> |
@@ -1,6 +1,6 | |||||
1 |
< |
|
1 | <%= title [l(:label_role_plural), roles_path], @role.name %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @role do |f| %> |
|
3 | <%= labelled_form_for @role 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 |
< |
|
1 | <%= title [l(:label_role_plural), roles_path], l(:label_role_new) %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @role do |f| %> |
|
3 | <%= labelled_form_for @role 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 | <% end %> |
|
6 | <% end %> |
@@ -1,55 +1,55 | |||||
1 |
< |
|
1 | <%= title [l(:label_role_plural), roles_path], l(:label_permissions_report) %> | |
2 |
|
2 | |||
3 | <%= form_tag(permissions_roles_path, :id => 'permissions_form') do %> |
|
3 | <%= form_tag(permissions_roles_path, :id => 'permissions_form') do %> | |
4 | <%= hidden_field_tag 'permissions[0]', '', :id => nil %> |
|
4 | <%= hidden_field_tag 'permissions[0]', '', :id => nil %> | |
5 | <div class="autoscroll"> |
|
5 | <div class="autoscroll"> | |
6 | <table class="list permissions"> |
|
6 | <table class="list permissions"> | |
7 | <thead> |
|
7 | <thead> | |
8 | <tr> |
|
8 | <tr> | |
9 | <th><%=l(:label_permissions)%></th> |
|
9 | <th><%=l(:label_permissions)%></th> | |
10 | <% @roles.each do |role| %> |
|
10 | <% @roles.each do |role| %> | |
11 | <th> |
|
11 | <th> | |
12 | <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> |
|
12 | <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> | |
13 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.role-#{role.id}')", |
|
13 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.role-#{role.id}')", | |
14 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> |
|
14 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> | |
15 | </th> |
|
15 | </th> | |
16 | <% end %> |
|
16 | <% end %> | |
17 | </tr> |
|
17 | </tr> | |
18 | </thead> |
|
18 | </thead> | |
19 | <tbody> |
|
19 | <tbody> | |
20 | <% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %> |
|
20 | <% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %> | |
21 | <% perms_by_module.keys.sort.each do |mod| %> |
|
21 | <% perms_by_module.keys.sort.each do |mod| %> | |
22 | <% unless mod.blank? %> |
|
22 | <% unless mod.blank? %> | |
23 | <tr class="group open"> |
|
23 | <tr class="group open"> | |
24 | <td> |
|
24 | <td> | |
25 | <span class="expander" onclick="toggleRowGroup(this);"> </span> |
|
25 | <span class="expander" onclick="toggleRowGroup(this);"> </span> | |
26 | <%= l_or_humanize(mod, :prefix => 'project_module_') %> |
|
26 | <%= l_or_humanize(mod, :prefix => 'project_module_') %> | |
27 | </td> |
|
27 | </td> | |
28 | <% @roles.each do |role| %> |
|
28 | <% @roles.each do |role| %> | |
29 | <td class="role"><%= h(role.name) %></td> |
|
29 | <td class="role"><%= h(role.name) %></td> | |
30 | <% end %> |
|
30 | <% end %> | |
31 | </tr> |
|
31 | </tr> | |
32 | <% end %> |
|
32 | <% end %> | |
33 | <% perms_by_module[mod].each do |permission| %> |
|
33 | <% perms_by_module[mod].each do |permission| %> | |
34 | <tr class="<%= cycle('odd', 'even') %> permission-<%= permission.name %>"> |
|
34 | <tr class="<%= cycle('odd', 'even') %> permission-<%= permission.name %>"> | |
35 | <td> |
|
35 | <td> | |
36 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('.permission-#{permission.name} input')", |
|
36 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('.permission-#{permission.name} input')", | |
37 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> |
|
37 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> | |
38 | <%= l_or_humanize(permission.name, :prefix => 'permission_') %> |
|
38 | <%= l_or_humanize(permission.name, :prefix => 'permission_') %> | |
39 | </td> |
|
39 | </td> | |
40 | <% @roles.each do |role| %> |
|
40 | <% @roles.each do |role| %> | |
41 | <td align="center"> |
|
41 | <td align="center"> | |
42 | <% if role.setable_permissions.include? permission %> |
|
42 | <% if role.setable_permissions.include? permission %> | |
43 | <%= check_box_tag "permissions[#{role.id}][]", permission.name, (role.permissions.include? permission.name), :id => nil, :class => "role-#{role.id}" %> |
|
43 | <%= check_box_tag "permissions[#{role.id}][]", permission.name, (role.permissions.include? permission.name), :id => nil, :class => "role-#{role.id}" %> | |
44 | <% end %> |
|
44 | <% end %> | |
45 | </td> |
|
45 | </td> | |
46 | <% end %> |
|
46 | <% end %> | |
47 | </tr> |
|
47 | </tr> | |
48 | <% end %> |
|
48 | <% end %> | |
49 | <% end %> |
|
49 | <% end %> | |
50 | </tbody> |
|
50 | </tbody> | |
51 | </table> |
|
51 | </table> | |
52 | </div> |
|
52 | </div> | |
53 | <p><%= check_all_links 'permissions_form' %></p> |
|
53 | <p><%= check_all_links 'permissions_form' %></p> | |
54 | <p><%= submit_tag l(:button_save) %></p> |
|
54 | <p><%= submit_tag l(:button_save) %></p> | |
55 | <% end %> |
|
55 | <% end %> |
@@ -1,10 +1,10 | |||||
1 | <h2><%= l(:label_settings) %>: <%=h @plugin.name %></h2> |
|
1 | <%= title [l(:label_plugins), {:controller => 'admin', :action => 'plugins'}], @plugin.name %> | |
2 |
|
2 | |||
3 | <div id="settings"> |
|
3 | <div id="settings"> | |
4 | <%= form_tag({:action => 'plugin'}) do %> |
|
4 | <%= form_tag({:action => 'plugin'}) do %> | |
5 | <div class="box tabular settings"> |
|
5 | <div class="box tabular settings"> | |
6 | <%= render :partial => @partial, :locals => {:settings => @settings}%> |
|
6 | <%= render :partial => @partial, :locals => {:settings => @settings}%> | |
7 | </div> |
|
7 | </div> | |
8 | <%= submit_tag l(:button_apply) %> |
|
8 | <%= submit_tag l(:button_apply) %> | |
9 | <% end %> |
|
9 | <% end %> | |
10 | </div> |
|
10 | </div> |
@@ -1,5 +1,5 | |||||
1 |
< |
|
1 | <%= title [l(:label_tracker_plural), trackers_path], @tracker.name %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @tracker do |f| %> |
|
3 | <%= labelled_form_for @tracker do |f| %> | |
4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
4 | <%= render :partial => 'form', :locals => { :f => f } %> | |
5 | <% end %> |
|
5 | <% end %> |
@@ -1,77 +1,75 | |||||
1 |
< |
|
1 | <%= title [l(:label_tracker_plural), trackers_path], l(:field_summary) %> | |
2 |
|
2 | |||
3 | <% if @trackers.any? %> |
|
3 | <% if @trackers.any? %> | |
4 | <%= form_tag fields_trackers_path do %> |
|
4 | <%= form_tag fields_trackers_path do %> | |
5 | <div class="autoscroll"> |
|
5 | <div class="autoscroll"> | |
6 | <table class="list"> |
|
6 | <table class="list"> | |
7 | <thead> |
|
7 | <thead> | |
8 | <tr> |
|
8 | <tr> | |
9 | <th></th> |
|
9 | <th></th> | |
10 | <% @trackers.each do |tracker| %> |
|
10 | <% @trackers.each do |tracker| %> | |
11 | <th> |
|
11 | <th> | |
12 | <%= tracker.name %> |
|
12 | <%= tracker.name %> | |
13 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.tracker-#{tracker.id}')", |
|
13 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.tracker-#{tracker.id}')", | |
14 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> |
|
14 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> | |
15 | </th> |
|
15 | </th> | |
16 | <% end %> |
|
16 | <% end %> | |
17 | </tr> |
|
17 | </tr> | |
18 | </thead> |
|
18 | </thead> | |
19 | <tbody> |
|
19 | <tbody> | |
20 | <tr class="group open"> |
|
20 | <tr class="group open"> | |
21 | <td colspan="<%= @trackers.size + 1 %>"> |
|
21 | <td colspan="<%= @trackers.size + 1 %>"> | |
22 | <span class="expander" onclick="toggleRowGroup(this);"> </span> |
|
22 | <span class="expander" onclick="toggleRowGroup(this);"> </span> | |
23 | <%= l(:field_core_fields) %> |
|
23 | <%= l(:field_core_fields) %> | |
24 | </td> |
|
24 | </td> | |
25 | </tr> |
|
25 | </tr> | |
26 | <% Tracker::CORE_FIELDS.each do |field| %> |
|
26 | <% Tracker::CORE_FIELDS.each do |field| %> | |
27 | <tr class="<%= cycle("odd", "even") %>"> |
|
27 | <tr class="<%= cycle("odd", "even") %>"> | |
28 | <td> |
|
28 | <td> | |
29 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.core-field-#{field}')", |
|
29 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.core-field-#{field}')", | |
30 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> |
|
30 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> | |
31 | <%= l("field_#{field}".sub(/_id$/, '')) %> |
|
31 | <%= l("field_#{field}".sub(/_id$/, '')) %> | |
32 | </td> |
|
32 | </td> | |
33 | <% @trackers.each do |tracker| %> |
|
33 | <% @trackers.each do |tracker| %> | |
34 | <td align="center"> |
|
34 | <td align="center"> | |
35 | <%= check_box_tag "trackers[#{tracker.id}][core_fields][]", field, tracker.core_fields.include?(field), |
|
35 | <%= check_box_tag "trackers[#{tracker.id}][core_fields][]", field, tracker.core_fields.include?(field), | |
36 | :class => "tracker-#{tracker.id} core-field-#{field}" %> |
|
36 | :class => "tracker-#{tracker.id} core-field-#{field}" %> | |
37 | </td> |
|
37 | </td> | |
38 | <% end %> |
|
38 | <% end %> | |
39 | </tr> |
|
39 | </tr> | |
40 | <% end %> |
|
40 | <% end %> | |
41 | <% if @custom_fields.any? %> |
|
41 | <% if @custom_fields.any? %> | |
42 | <tr class="group open"> |
|
42 | <tr class="group open"> | |
43 | <td colspan="<%= @trackers.size + 1 %>"> |
|
43 | <td colspan="<%= @trackers.size + 1 %>"> | |
44 | <span class="expander" onclick="toggleRowGroup(this);"> </span> |
|
44 | <span class="expander" onclick="toggleRowGroup(this);"> </span> | |
45 | <%= l(:label_custom_field_plural) %> |
|
45 | <%= l(:label_custom_field_plural) %> | |
46 | </td> |
|
46 | </td> | |
47 | </tr> |
|
47 | </tr> | |
48 | <% @custom_fields.each do |field| %> |
|
48 | <% @custom_fields.each do |field| %> | |
49 | <tr class="<%= cycle("odd", "even") %>"> |
|
49 | <tr class="<%= cycle("odd", "even") %>"> | |
50 | <td> |
|
50 | <td> | |
51 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.custom-field-#{field.id}')", |
|
51 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.custom-field-#{field.id}')", | |
52 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> |
|
52 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> | |
53 | <%= field.name %> |
|
53 | <%= field.name %> | |
54 | </td> |
|
54 | </td> | |
55 | <% @trackers.each do |tracker| %> |
|
55 | <% @trackers.each do |tracker| %> | |
56 | <td align="center"> |
|
56 | <td align="center"> | |
57 | <%= check_box_tag "trackers[#{tracker.id}][custom_field_ids][]", field.id, tracker.custom_fields.include?(field), |
|
57 | <%= check_box_tag "trackers[#{tracker.id}][custom_field_ids][]", field.id, tracker.custom_fields.include?(field), | |
58 | :class => "tracker-#{tracker.id} custom-field-#{field.id}" %> |
|
58 | :class => "tracker-#{tracker.id} custom-field-#{field.id}" %> | |
59 | </td> |
|
59 | </td> | |
60 | <% end %> |
|
60 | <% end %> | |
61 | </tr> |
|
61 | </tr> | |
62 | <% end %> |
|
62 | <% end %> | |
63 | <% end %> |
|
63 | <% end %> | |
64 | </tbody> |
|
64 | </tbody> | |
65 | </table> |
|
65 | </table> | |
66 | </div> |
|
66 | </div> | |
67 | <p><%= submit_tag l(:button_save) %></p> |
|
67 | <p><%= submit_tag l(:button_save) %></p> | |
68 | <% @trackers.each do |tracker| %> |
|
68 | <% @trackers.each do |tracker| %> | |
69 | <%= hidden_field_tag "trackers[#{tracker.id}][core_fields][]", '' %> |
|
69 | <%= hidden_field_tag "trackers[#{tracker.id}][core_fields][]", '' %> | |
70 | <%= hidden_field_tag "trackers[#{tracker.id}][custom_field_ids][]", '' %> |
|
70 | <%= hidden_field_tag "trackers[#{tracker.id}][custom_field_ids][]", '' %> | |
71 | <% end %> |
|
71 | <% end %> | |
72 | <% end %> |
|
72 | <% end %> | |
73 | <% else %> |
|
73 | <% else %> | |
74 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
74 | <p class="nodata"><%= l(:label_no_data) %></p> | |
75 | <% end %> |
|
75 | <% end %> | |
76 |
|
||||
77 | <% html_title l(:field_summary) %> |
|
@@ -1,5 +1,5 | |||||
1 |
< |
|
1 | <%= title [l(:label_tracker_plural), trackers_path], l(:label_tracker_new) %> | |
2 |
|
2 | |||
3 | <%= labelled_form_for @tracker do |f| %> |
|
3 | <%= labelled_form_for @tracker do |f| %> | |
4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
4 | <%= render :partial => 'form', :locals => { :f => f } %> | |
5 | <% end %> |
|
5 | <% end %> |
@@ -1,11 +1,9 | |||||
1 | <div class="contextual"> |
|
1 | <div class="contextual"> | |
2 | <%= link_to l(:label_profile), user_path(@user), :class => 'icon icon-user' %> |
|
2 | <%= link_to l(:label_profile), user_path(@user), :class => 'icon icon-user' %> | |
3 | <%= change_status_link(@user) %> |
|
3 | <%= change_status_link(@user) %> | |
4 | <%= delete_link user_path(@user) if User.current != @user %> |
|
4 | <%= delete_link user_path(@user) if User.current != @user %> | |
5 | </div> |
|
5 | </div> | |
6 |
|
6 | |||
7 |
< |
|
7 | <%= title [l(:label_user_plural), users_path], @user.login %> | |
8 |
|
8 | |||
9 | <%= render_tabs user_settings_tabs %> |
|
9 | <%= render_tabs user_settings_tabs %> | |
10 |
|
||||
11 | <% html_title(l(:label_user), @user.login, l(:label_administration)) -%> |
|
@@ -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 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> | |
7 | <% end %> |
|
7 | <% end %> | |
8 | <p> |
|
8 | <p> | |
9 | <%= submit_tag l(:button_create) %> |
|
9 | <%= submit_tag l(:button_create) %> | |
10 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
|
10 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> | |
11 | </p> |
|
11 | </p> | |
12 | <% end %> |
|
12 | <% end %> | |
13 |
|
13 | |||
14 | <% if @auth_sources.present? && @auth_sources.any?(&:searchable?) %> |
|
14 | <% if @auth_sources.present? && @auth_sources.any?(&:searchable?) %> | |
15 | <%= javascript_tag do %> |
|
15 | <%= javascript_tag do %> | |
16 | observeAutocompleteField('user_login', '<%= escape_javascript autocomplete_for_new_user_auth_sources_path %>', { |
|
16 | observeAutocompleteField('user_login', '<%= escape_javascript autocomplete_for_new_user_auth_sources_path %>', { | |
17 | select: function(event, ui) { |
|
17 | select: function(event, ui) { | |
18 | $('input#user_firstname').val(ui.item.firstname); |
|
18 | $('input#user_firstname').val(ui.item.firstname); | |
19 | $('input#user_lastname').val(ui.item.lastname); |
|
19 | $('input#user_lastname').val(ui.item.lastname); | |
20 | $('input#user_mail').val(ui.item.mail); |
|
20 | $('input#user_mail').val(ui.item.mail); | |
21 | $('select#user_auth_source_id option').each(function(){ |
|
21 | $('select#user_auth_source_id option').each(function(){ | |
22 | if ($(this).attr('value') == ui.item.auth_source_id) { |
|
22 | if ($(this).attr('value') == ui.item.auth_source_id) { | |
23 | $(this).attr('selected', true); |
|
23 | $(this).attr('selected', true); | |
24 | $('select#user_auth_source_id').trigger('change'); |
|
24 | $('select#user_auth_source_id').trigger('change'); | |
25 | } |
|
25 | } | |
26 | }); |
|
26 | }); | |
27 | } |
|
27 | } | |
28 | }); |
|
28 | }); | |
29 | <% end %> |
|
29 | <% end %> | |
30 | <% end %> |
|
30 | <% end %> |
@@ -1,38 +1,38 | |||||
1 |
< |
|
1 | <%= title [l(:label_workflow), workflows_edit_path], l(:button_copy) %> | |
2 |
|
2 | |||
3 | <%= form_tag({}, :id => 'workflow_copy_form') do %> |
|
3 | <%= form_tag({}, :id => 'workflow_copy_form') do %> | |
4 | <fieldset class="tabular box"> |
|
4 | <fieldset class="tabular box"> | |
5 | <legend><%= l(:label_copy_source) %></legend> |
|
5 | <legend><%= l(:label_copy_source) %></legend> | |
6 | <p> |
|
6 | <p> | |
7 | <label><%= l(:label_tracker) %></label> |
|
7 | <label><%= l(:label_tracker) %></label> | |
8 | <%= select_tag('source_tracker_id', |
|
8 | <%= select_tag('source_tracker_id', | |
9 | content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') + |
|
9 | content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') + | |
10 | content_tag('option', "--- #{ l(:label_copy_same_as_target) } ---", :value => 'any') + |
|
10 | content_tag('option', "--- #{ l(:label_copy_same_as_target) } ---", :value => 'any') + | |
11 | options_from_collection_for_select(@trackers, 'id', 'name', @source_tracker && @source_tracker.id)) %> |
|
11 | options_from_collection_for_select(@trackers, 'id', 'name', @source_tracker && @source_tracker.id)) %> | |
12 | </p> |
|
12 | </p> | |
13 | <p> |
|
13 | <p> | |
14 | <label><%= l(:label_role) %></label> |
|
14 | <label><%= l(:label_role) %></label> | |
15 | <%= select_tag('source_role_id', |
|
15 | <%= select_tag('source_role_id', | |
16 | content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') + |
|
16 | content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') + | |
17 | content_tag('option', "--- #{ l(:label_copy_same_as_target) } ---", :value => 'any') + |
|
17 | content_tag('option', "--- #{ l(:label_copy_same_as_target) } ---", :value => 'any') + | |
18 | options_from_collection_for_select(@roles, 'id', 'name', @source_role && @source_role.id)) %> |
|
18 | options_from_collection_for_select(@roles, 'id', 'name', @source_role && @source_role.id)) %> | |
19 | </p> |
|
19 | </p> | |
20 | </fieldset> |
|
20 | </fieldset> | |
21 |
|
21 | |||
22 | <fieldset class="tabular box"> |
|
22 | <fieldset class="tabular box"> | |
23 | <legend><%= l(:label_copy_target) %></legend> |
|
23 | <legend><%= l(:label_copy_target) %></legend> | |
24 | <p> |
|
24 | <p> | |
25 | <label><%= l(:label_tracker) %></label> |
|
25 | <label><%= l(:label_tracker) %></label> | |
26 | <%= select_tag 'target_tracker_ids', |
|
26 | <%= select_tag 'target_tracker_ids', | |
27 | content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '', :disabled => true) + |
|
27 | content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '', :disabled => true) + | |
28 | options_from_collection_for_select(@trackers, 'id', 'name', @target_trackers && @target_trackers.map(&:id)), :multiple => true %> |
|
28 | options_from_collection_for_select(@trackers, 'id', 'name', @target_trackers && @target_trackers.map(&:id)), :multiple => true %> | |
29 | </p> |
|
29 | </p> | |
30 | <p> |
|
30 | <p> | |
31 | <label><%= l(:label_role) %></label> |
|
31 | <label><%= l(:label_role) %></label> | |
32 | <%= select_tag 'target_role_ids', |
|
32 | <%= select_tag 'target_role_ids', | |
33 | content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '', :disabled => true) + |
|
33 | content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '', :disabled => true) + | |
34 | options_from_collection_for_select(@roles, 'id', 'name', @target_roles && @target_roles.map(&:id)), :multiple => true %> |
|
34 | options_from_collection_for_select(@roles, 'id', 'name', @target_roles && @target_roles.map(&:id)), :multiple => true %> | |
35 | </p> |
|
35 | </p> | |
36 | </fieldset> |
|
36 | </fieldset> | |
37 | <%= submit_tag l(:button_copy) %> |
|
37 | <%= submit_tag l(:button_copy) %> | |
38 | <% end %> |
|
38 | <% end %> |
@@ -1,58 +1,56 | |||||
1 | <%= render :partial => 'action_menu' %> |
|
1 | <%= render :partial => 'action_menu' %> | |
2 |
|
2 | |||
3 |
|
|
3 | <%= title l(:label_workflow) %> | |
4 |
|
4 | |||
5 | <div class="tabs"> |
|
5 | <div class="tabs"> | |
6 | <ul> |
|
6 | <ul> | |
7 | <li><%= link_to l(:label_status_transitions), {:action => 'edit', :role_id => @role, :tracker_id => @tracker}, :class => 'selected' %></li> |
|
7 | <li><%= link_to l(:label_status_transitions), {:action => 'edit', :role_id => @role, :tracker_id => @tracker}, :class => 'selected' %></li> | |
8 | <li><%= link_to l(:label_fields_permissions), {:action => 'permissions', :role_id => @role, :tracker_id => @tracker} %></li> |
|
8 | <li><%= link_to l(:label_fields_permissions), {:action => 'permissions', :role_id => @role, :tracker_id => @tracker} %></li> | |
9 | </ul> |
|
9 | </ul> | |
10 | </div> |
|
10 | </div> | |
11 |
|
11 | |||
12 | <p><%=l(:text_workflow_edit)%>:</p> |
|
12 | <p><%=l(:text_workflow_edit)%>:</p> | |
13 |
|
13 | |||
14 | <%= form_tag({}, :method => 'get') do %> |
|
14 | <%= form_tag({}, :method => 'get') do %> | |
15 | <p> |
|
15 | <p> | |
16 | <label><%=l(:label_role)%>: |
|
16 | <label><%=l(:label_role)%>: | |
17 | <%= select_tag 'role_id', options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %></label> |
|
17 | <%= select_tag 'role_id', options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %></label> | |
18 |
|
18 | |||
19 | <label><%=l(:label_tracker)%>: |
|
19 | <label><%=l(:label_tracker)%>: | |
20 | <%= select_tag 'tracker_id', options_from_collection_for_select(@trackers, "id", "name", @tracker && @tracker.id) %></label> |
|
20 | <%= select_tag 'tracker_id', options_from_collection_for_select(@trackers, "id", "name", @tracker && @tracker.id) %></label> | |
21 |
|
21 | |||
22 | <%= submit_tag l(:button_edit), :name => nil %> |
|
22 | <%= submit_tag l(:button_edit), :name => nil %> | |
23 |
|
23 | |||
24 | <%= hidden_field_tag 'used_statuses_only', '0' %> |
|
24 | <%= hidden_field_tag 'used_statuses_only', '0' %> | |
25 | <label><%= check_box_tag 'used_statuses_only', '1', @used_statuses_only %> <%= l(:label_display_used_statuses_only) %></label> |
|
25 | <label><%= check_box_tag 'used_statuses_only', '1', @used_statuses_only %> <%= l(:label_display_used_statuses_only) %></label> | |
26 |
|
26 | |||
27 | </p> |
|
27 | </p> | |
28 | <% end %> |
|
28 | <% end %> | |
29 |
|
29 | |||
30 | <% if @tracker && @role && @statuses.any? %> |
|
30 | <% if @tracker && @role && @statuses.any? %> | |
31 | <%= form_tag({}, :id => 'workflow_form' ) do %> |
|
31 | <%= form_tag({}, :id => 'workflow_form' ) do %> | |
32 | <%= hidden_field_tag 'tracker_id', @tracker.id %> |
|
32 | <%= hidden_field_tag 'tracker_id', @tracker.id %> | |
33 | <%= hidden_field_tag 'role_id', @role.id %> |
|
33 | <%= hidden_field_tag 'role_id', @role.id %> | |
34 | <%= hidden_field_tag 'used_statuses_only', params[:used_statuses_only] %> |
|
34 | <%= hidden_field_tag 'used_statuses_only', params[:used_statuses_only] %> | |
35 | <div class="autoscroll"> |
|
35 | <div class="autoscroll"> | |
36 | <%= render :partial => 'form', :locals => {:name => 'always', :workflows => @workflows['always']} %> |
|
36 | <%= render :partial => 'form', :locals => {:name => 'always', :workflows => @workflows['always']} %> | |
37 |
|
37 | |||
38 | <fieldset class="collapsible" style="padding: 0; margin-top: 0.5em;"> |
|
38 | <fieldset class="collapsible" style="padding: 0; margin-top: 0.5em;"> | |
39 | <legend onclick="toggleFieldset(this);"><%= l(:label_additional_workflow_transitions_for_author) %></legend> |
|
39 | <legend onclick="toggleFieldset(this);"><%= l(:label_additional_workflow_transitions_for_author) %></legend> | |
40 | <div id="author_workflows" style="margin: 0.5em 0 0.5em 0;"> |
|
40 | <div id="author_workflows" style="margin: 0.5em 0 0.5em 0;"> | |
41 | <%= render :partial => 'form', :locals => {:name => 'author', :workflows => @workflows['author']} %> |
|
41 | <%= render :partial => 'form', :locals => {:name => 'author', :workflows => @workflows['author']} %> | |
42 | </div> |
|
42 | </div> | |
43 | </fieldset> |
|
43 | </fieldset> | |
44 | <%= javascript_tag "hideFieldset($('#author_workflows'))" unless @workflows['author'].present? %> |
|
44 | <%= javascript_tag "hideFieldset($('#author_workflows'))" unless @workflows['author'].present? %> | |
45 |
|
45 | |||
46 | <fieldset class="collapsible" style="padding: 0;"> |
|
46 | <fieldset class="collapsible" style="padding: 0;"> | |
47 | <legend onclick="toggleFieldset(this);"><%= l(:label_additional_workflow_transitions_for_assignee) %></legend> |
|
47 | <legend onclick="toggleFieldset(this);"><%= l(:label_additional_workflow_transitions_for_assignee) %></legend> | |
48 | <div id="assignee_workflows" style="margin: 0.5em 0 0.5em 0;"> |
|
48 | <div id="assignee_workflows" style="margin: 0.5em 0 0.5em 0;"> | |
49 | <%= render :partial => 'form', :locals => {:name => 'assignee', :workflows => @workflows['assignee']} %> |
|
49 | <%= render :partial => 'form', :locals => {:name => 'assignee', :workflows => @workflows['assignee']} %> | |
50 | </div> |
|
50 | </div> | |
51 | </fieldset> |
|
51 | </fieldset> | |
52 | <%= javascript_tag "hideFieldset($('#assignee_workflows'))" unless @workflows['assignee'].present? %> |
|
52 | <%= javascript_tag "hideFieldset($('#assignee_workflows'))" unless @workflows['assignee'].present? %> | |
53 | </div> |
|
53 | </div> | |
54 | <%= submit_tag l(:button_save) %> |
|
54 | <%= submit_tag l(:button_save) %> | |
55 | <% end %> |
|
55 | <% end %> | |
56 | <% end %> |
|
56 | <% end %> | |
57 |
|
||||
58 | <% html_title(l(:label_workflow)) -%> |
|
@@ -1,33 +1,33 | |||||
1 |
< |
|
1 | <%= title [l(:label_workflow), workflows_edit_path], l(:field_summary) %> | |
2 |
|
2 | |||
3 | <% if @workflow_counts.empty? %> |
|
3 | <% if @workflow_counts.empty? %> | |
4 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
4 | <p class="nodata"><%= l(:label_no_data) %></p> | |
5 | <% else %> |
|
5 | <% else %> | |
6 | <div class="autoscroll"> |
|
6 | <div class="autoscroll"> | |
7 | <table class="list"> |
|
7 | <table class="list"> | |
8 | <thead> |
|
8 | <thead> | |
9 | <tr> |
|
9 | <tr> | |
10 | <th></th> |
|
10 | <th></th> | |
11 | <% @workflow_counts.first.last.each do |role, count| %> |
|
11 | <% @workflow_counts.first.last.each do |role, count| %> | |
12 | <th> |
|
12 | <th> | |
13 | <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> |
|
13 | <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> | |
14 | </th> |
|
14 | </th> | |
15 |
|
15 | |||
16 | <% end %> |
|
16 | <% end %> | |
17 | </tr> |
|
17 | </tr> | |
18 | </thead> |
|
18 | </thead> | |
19 | <tbody> |
|
19 | <tbody> | |
20 | <% @workflow_counts.each do |tracker, roles| -%> |
|
20 | <% @workflow_counts.each do |tracker, roles| -%> | |
21 | <tr class="<%= cycle('odd', 'even') %>"> |
|
21 | <tr class="<%= cycle('odd', 'even') %>"> | |
22 | <td><%= h tracker %></td> |
|
22 | <td><%= h tracker %></td> | |
23 | <% roles.each do |role, count| -%> |
|
23 | <% roles.each do |role, count| -%> | |
24 | <td align="center"> |
|
24 | <td align="center"> | |
25 | <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> |
|
25 | <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> | |
26 | </td> |
|
26 | </td> | |
27 | <% end -%> |
|
27 | <% end -%> | |
28 | </tr> |
|
28 | </tr> | |
29 | <% end -%> |
|
29 | <% end -%> | |
30 | </tbody> |
|
30 | </tbody> | |
31 | </table> |
|
31 | </table> | |
32 | </div> |
|
32 | </div> | |
33 | <% end %> |
|
33 | <% end %> |
@@ -1,106 +1,106 | |||||
1 | <%= render :partial => 'action_menu' %> |
|
1 | <%= render :partial => 'action_menu' %> | |
2 |
|
2 | |||
3 |
|
|
3 | <%= title l(:label_workflow) %> | |
4 |
|
4 | |||
5 | <div class="tabs"> |
|
5 | <div class="tabs"> | |
6 | <ul> |
|
6 | <ul> | |
7 | <li><%= link_to l(:label_status_transitions), {:action => 'edit', :role_id => @role, :tracker_id => @tracker} %></li> |
|
7 | <li><%= link_to l(:label_status_transitions), {:action => 'edit', :role_id => @role, :tracker_id => @tracker} %></li> | |
8 | <li><%= link_to l(:label_fields_permissions), {:action => 'permissions', :role_id => @role, :tracker_id => @tracker}, :class => 'selected' %></li> |
|
8 | <li><%= link_to l(:label_fields_permissions), {:action => 'permissions', :role_id => @role, :tracker_id => @tracker}, :class => 'selected' %></li> | |
9 | </ul> |
|
9 | </ul> | |
10 | </div> |
|
10 | </div> | |
11 |
|
11 | |||
12 | <p><%=l(:text_workflow_edit)%>:</p> |
|
12 | <p><%=l(:text_workflow_edit)%>:</p> | |
13 |
|
13 | |||
14 | <%= form_tag({}, :method => 'get') do %> |
|
14 | <%= form_tag({}, :method => 'get') do %> | |
15 | <p> |
|
15 | <p> | |
16 | <label><%=l(:label_role)%>: |
|
16 | <label><%=l(:label_role)%>: | |
17 | <%= select_tag 'role_id', options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %></label> |
|
17 | <%= select_tag 'role_id', options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %></label> | |
18 |
|
18 | |||
19 | <label><%=l(:label_tracker)%>: |
|
19 | <label><%=l(:label_tracker)%>: | |
20 | <%= select_tag 'tracker_id', options_from_collection_for_select(@trackers, "id", "name", @tracker && @tracker.id) %></label> |
|
20 | <%= select_tag 'tracker_id', options_from_collection_for_select(@trackers, "id", "name", @tracker && @tracker.id) %></label> | |
21 |
|
21 | |||
22 | <%= submit_tag l(:button_edit), :name => nil %> |
|
22 | <%= submit_tag l(:button_edit), :name => nil %> | |
23 |
|
23 | |||
24 | <%= hidden_field_tag 'used_statuses_only', '0' %> |
|
24 | <%= hidden_field_tag 'used_statuses_only', '0' %> | |
25 | <label><%= check_box_tag 'used_statuses_only', '1', @used_statuses_only %> <%= l(:label_display_used_statuses_only) %></label> |
|
25 | <label><%= check_box_tag 'used_statuses_only', '1', @used_statuses_only %> <%= l(:label_display_used_statuses_only) %></label> | |
26 | </p> |
|
26 | </p> | |
27 | <% end %> |
|
27 | <% end %> | |
28 |
|
28 | |||
29 | <% if @tracker && @role && @statuses.any? %> |
|
29 | <% if @tracker && @role && @statuses.any? %> | |
30 | <%= form_tag({}, :id => 'workflow_form' ) do %> |
|
30 | <%= form_tag({}, :id => 'workflow_form' ) do %> | |
31 | <%= hidden_field_tag 'tracker_id', @tracker.id %> |
|
31 | <%= hidden_field_tag 'tracker_id', @tracker.id %> | |
32 | <%= hidden_field_tag 'role_id', @role.id %> |
|
32 | <%= hidden_field_tag 'role_id', @role.id %> | |
33 | <%= hidden_field_tag 'used_statuses_only', params[:used_statuses_only] %> |
|
33 | <%= hidden_field_tag 'used_statuses_only', params[:used_statuses_only] %> | |
34 | <div class="autoscroll"> |
|
34 | <div class="autoscroll"> | |
35 | <table class="list fields_permissions"> |
|
35 | <table class="list fields_permissions"> | |
36 | <thead> |
|
36 | <thead> | |
37 | <tr> |
|
37 | <tr> | |
38 | <th align="left"> |
|
38 | <th align="left"> | |
39 | </th> |
|
39 | </th> | |
40 | <th align="center" colspan="<%= @statuses.length %>"><%=l(:label_issue_status)%></th> |
|
40 | <th align="center" colspan="<%= @statuses.length %>"><%=l(:label_issue_status)%></th> | |
41 | </tr> |
|
41 | </tr> | |
42 | <tr> |
|
42 | <tr> | |
43 | <td></td> |
|
43 | <td></td> | |
44 | <% for status in @statuses %> |
|
44 | <% for status in @statuses %> | |
45 | <td width="<%= 75 / @statuses.size %>%" align="center"> |
|
45 | <td width="<%= 75 / @statuses.size %>%" align="center"> | |
46 | <%=h status.name %> |
|
46 | <%=h status.name %> | |
47 | </td> |
|
47 | </td> | |
48 | <% end %> |
|
48 | <% end %> | |
49 | </tr> |
|
49 | </tr> | |
50 | </thead> |
|
50 | </thead> | |
51 | <tbody> |
|
51 | <tbody> | |
52 | <tr class="group open"> |
|
52 | <tr class="group open"> | |
53 | <td colspan="<%= @statuses.size + 1 %>"> |
|
53 | <td colspan="<%= @statuses.size + 1 %>"> | |
54 | <span class="expander" onclick="toggleRowGroup(this);"> </span> |
|
54 | <span class="expander" onclick="toggleRowGroup(this);"> </span> | |
55 | <%= l(:field_core_fields) %> |
|
55 | <%= l(:field_core_fields) %> | |
56 | </td> |
|
56 | </td> | |
57 | </tr> |
|
57 | </tr> | |
58 | <% @fields.each do |field, name| %> |
|
58 | <% @fields.each do |field, name| %> | |
59 | <tr class="<%= cycle("odd", "even") %>"> |
|
59 | <tr class="<%= cycle("odd", "even") %>"> | |
60 | <td> |
|
60 | <td> | |
61 | <%=h name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %> |
|
61 | <%=h name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %> | |
62 | </td> |
|
62 | </td> | |
63 | <% for status in @statuses -%> |
|
63 | <% for status in @statuses -%> | |
64 | <td align="center" class="<%= @permissions[status.id][field] %>"> |
|
64 | <td align="center" class="<%= @permissions[status.id][field] %>"> | |
65 | <%= field_permission_tag(@permissions, status, field, @role) %> |
|
65 | <%= field_permission_tag(@permissions, status, field, @role) %> | |
66 | <% unless status == @statuses.last %><a href="#" class="repeat-value">»</a><% end %> |
|
66 | <% unless status == @statuses.last %><a href="#" class="repeat-value">»</a><% end %> | |
67 | </td> |
|
67 | </td> | |
68 | <% end -%> |
|
68 | <% end -%> | |
69 | </tr> |
|
69 | </tr> | |
70 | <% end %> |
|
70 | <% end %> | |
71 | <% if @custom_fields.any? %> |
|
71 | <% if @custom_fields.any? %> | |
72 | <tr class="group open"> |
|
72 | <tr class="group open"> | |
73 | <td colspan="<%= @statuses.size + 1 %>"> |
|
73 | <td colspan="<%= @statuses.size + 1 %>"> | |
74 | <span class="expander" onclick="toggleRowGroup(this);"> </span> |
|
74 | <span class="expander" onclick="toggleRowGroup(this);"> </span> | |
75 | <%= l(:label_custom_field_plural) %> |
|
75 | <%= l(:label_custom_field_plural) %> | |
76 | </td> |
|
76 | </td> | |
77 | </tr> |
|
77 | </tr> | |
78 | <% @custom_fields.each do |field| %> |
|
78 | <% @custom_fields.each do |field| %> | |
79 | <tr class="<%= cycle("odd", "even") %>"> |
|
79 | <tr class="<%= cycle("odd", "even") %>"> | |
80 | <td> |
|
80 | <td> | |
81 | <%=h field.name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %> |
|
81 | <%=h field.name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %> | |
82 | </td> |
|
82 | </td> | |
83 | <% for status in @statuses -%> |
|
83 | <% for status in @statuses -%> | |
84 | <td align="center" class="<%= @permissions[status.id][field.id.to_s] %>"> |
|
84 | <td align="center" class="<%= @permissions[status.id][field.id.to_s] %>"> | |
85 | <%= field_permission_tag(@permissions, status, field, @role) %> |
|
85 | <%= field_permission_tag(@permissions, status, field, @role) %> | |
86 | <% unless status == @statuses.last %><a href="#" class="repeat-value">»</a><% end %> |
|
86 | <% unless status == @statuses.last %><a href="#" class="repeat-value">»</a><% end %> | |
87 | </td> |
|
87 | </td> | |
88 | <% end -%> |
|
88 | <% end -%> | |
89 | </tr> |
|
89 | </tr> | |
90 | <% end %> |
|
90 | <% end %> | |
91 | <% end %> |
|
91 | <% end %> | |
92 | </tbody> |
|
92 | </tbody> | |
93 | </table> |
|
93 | </table> | |
94 | </div> |
|
94 | </div> | |
95 | <%= submit_tag l(:button_save) %> |
|
95 | <%= submit_tag l(:button_save) %> | |
96 | <% end %> |
|
96 | <% end %> | |
97 | <% end %> |
|
97 | <% end %> | |
98 |
|
98 | |||
99 | <%= javascript_tag do %> |
|
99 | <%= javascript_tag do %> | |
100 | $("a.repeat-value").click(function(e){ |
|
100 | $("a.repeat-value").click(function(e){ | |
101 | e.preventDefault(); |
|
101 | e.preventDefault(); | |
102 | var td = $(this).closest('td'); |
|
102 | var td = $(this).closest('td'); | |
103 | var selected = td.find("select").find(":selected").val(); |
|
103 | var selected = td.find("select").find(":selected").val(); | |
104 | td.nextAll('td').find("select").val(selected); |
|
104 | td.nextAll('td').find("select").val(selected); | |
105 | }); |
|
105 | }); | |
106 | <% end %> |
|
106 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now