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