@@ -1,32 +1,35 | |||
|
1 | 1 | <table class="list"> |
|
2 | 2 | <thead><tr> |
|
3 | 3 | <th width="30%"><%=l(:field_name)%></th> |
|
4 | 4 | <th><%=l(:field_field_format)%></th> |
|
5 | 5 | <th><%=l(:field_is_required)%></th> |
|
6 | 6 | <% if tab[:name] == 'IssueCustomField' %> |
|
7 | 7 | <th><%=l(:field_is_for_all)%></th> |
|
8 | 8 | <th><%=l(:label_used_by)%></th> |
|
9 | 9 | <% end %> |
|
10 | 10 | <th><%=l(:button_sort)%></th> |
|
11 | 11 | <th width="10%"></th> |
|
12 | 12 | </tr></thead> |
|
13 | 13 | <tbody> |
|
14 | 14 | <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%> |
|
15 | 15 | <tr class="<%= cycle("odd", "even") %>"> |
|
16 | 16 | <td><%= link_to custom_field.name, :action => 'edit', :id => custom_field %></td> |
|
17 | 17 | <td align="center"><%= l(CustomField::FIELD_FORMATS[custom_field.field_format][:name]) %></td> |
|
18 | 18 | <td align="center"><%= image_tag 'true.png' if custom_field.is_required? %></td> |
|
19 | 19 | <% if tab[:name] == 'IssueCustomField' %> |
|
20 | 20 | <td align="center"><%= image_tag 'true.png' if custom_field.is_for_all? %></td> |
|
21 | 21 | <td align="center"><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td> |
|
22 | 22 | <% end %> |
|
23 | 23 | <td align="center" style="width:15%;"><%= reorder_links('custom_field', {:action => 'edit', :id => custom_field}) %></td> |
|
24 | <td align="center"> | |
|
25 |
<%= |
|
|
24 | <td class="buttons"> | |
|
25 | <%= link_to(l(:button_delete), { :action => 'destroy', :id => custom_field }, | |
|
26 | :method => :post, | |
|
27 | :confirm => l(:text_are_you_sure), | |
|
28 | :class => 'icon icon-del') %> | |
|
26 | 29 | </td> |
|
27 | 30 | </tr> |
|
28 | 31 | <% end; reset_cycle %> |
|
29 | 32 | </tbody> |
|
30 | 33 | </table> |
|
31 | 34 | |
|
32 | 35 | <p><%= link_to l(:label_custom_field_new), {:action => 'new', :type => tab[:name]}, :class => 'icon icon-add' %></p> |
@@ -1,26 +1,29 | |||
|
1 | 1 | <h2><%=l(:label_enumerations)%></h2> |
|
2 | 2 | |
|
3 | 3 | <% Enumeration.get_subclasses.each do |klass| %> |
|
4 | 4 | <h3><%= l(klass::OptionName) %></h3> |
|
5 | 5 | |
|
6 | 6 | <% enumerations = klass.all %> |
|
7 | 7 | <% if enumerations.any? %> |
|
8 | 8 | <table class="list"> |
|
9 | 9 | <% enumerations.each do |enumeration| %> |
|
10 | 10 | <tr class="<%= cycle('odd', 'even') %>"> |
|
11 | 11 | <td><%= link_to h(enumeration), :action => 'edit', :id => enumeration %></td> |
|
12 | 12 | <td style="width:15%;"><%= image_tag('true.png') if enumeration.is_default? %></td> |
|
13 | 13 | <td style="width:15%;"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}) %></td> |
|
14 | <td align="center" style="width:10%;"> | |
|
15 |
<%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, |
|
|
14 | <td class="buttons"> | |
|
15 | <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, | |
|
16 | :method => :post, | |
|
17 | :confirm => l(:text_are_you_sure), | |
|
18 | :class => 'icon icon-del' %> | |
|
16 | 19 | </td> |
|
17 | 20 | </tr> |
|
18 | 21 | <% end %> |
|
19 | 22 | </table> |
|
20 | 23 | <% reset_cycle %> |
|
21 | 24 | <% end %> |
|
22 | 25 | |
|
23 | 26 | <p><%= link_to l(:label_enumeration_new), { :action => 'new', :type => klass.name } %></p> |
|
24 | 27 | <% end %> |
|
25 | 28 | |
|
26 | 29 | <% html_title(l(:label_enumerations)) -%> |
@@ -1,32 +1,35 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to l(:label_issue_status_new), {:action => 'new'}, :class => 'icon icon-add' %> |
|
3 | 3 | </div> |
|
4 | 4 | |
|
5 | 5 | <h2><%=l(:label_issue_status_plural)%></h2> |
|
6 | 6 | |
|
7 | 7 | <table class="list"> |
|
8 | 8 | <thead><tr> |
|
9 | 9 | <th><%=l(:field_status)%></th> |
|
10 | 10 | <th><%=l(:field_is_default)%></th> |
|
11 | 11 | <th><%=l(:field_is_closed)%></th> |
|
12 | 12 | <th><%=l(:button_sort)%></th> |
|
13 | 13 | <th></th> |
|
14 | 14 | </tr></thead> |
|
15 | 15 | <tbody> |
|
16 | 16 | <% for status in @issue_statuses %> |
|
17 | 17 | <tr class="<%= cycle("odd", "even") %>"> |
|
18 | 18 | <td><%= link_to status.name, :action => 'edit', :id => status %></td> |
|
19 | 19 | <td align="center"><%= image_tag 'true.png' if status.is_default? %></td> |
|
20 | 20 | <td align="center"><%= image_tag 'true.png' if status.is_closed? %></td> |
|
21 | 21 | <td align="center" style="width:15%;"><%= reorder_links('issue_status', {:action => 'update', :id => status}) %></td> |
|
22 | <td align="center" style="width:10%;"> | |
|
23 |
<%= |
|
|
22 | <td class="buttons"> | |
|
23 | <%= link_to(l(:button_delete), { :action => 'destroy', :id => status }, | |
|
24 | :method => :post, | |
|
25 | :confirm => l(:text_are_you_sure), | |
|
26 | :class => 'icon icon-del') %> | |
|
24 | 27 | </td> |
|
25 | 28 | </tr> |
|
26 | 29 | <% end %> |
|
27 | 30 | </tbody> |
|
28 | 31 | </table> |
|
29 | 32 | |
|
30 | 33 | <p class="pagination"><%= pagination_links_full @issue_status_pages %></p> |
|
31 | 34 | |
|
32 | 35 | <% html_title(l(:label_issue_status_plural)) -%> |
@@ -1,34 +1,37 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to l(:label_role_new), {:action => 'new'}, :class => 'icon icon-add' %> |
|
3 | 3 | </div> |
|
4 | 4 | |
|
5 | 5 | <h2><%=l(:label_role_plural)%></h2> |
|
6 | 6 | |
|
7 | 7 | <table class="list"> |
|
8 | 8 | <thead><tr> |
|
9 | 9 | <th><%=l(:label_role)%></th> |
|
10 | 10 | <th><%=l(:button_sort)%></th> |
|
11 | 11 | <th></th> |
|
12 | 12 | </tr></thead> |
|
13 | 13 | <tbody> |
|
14 | 14 | <% for role in @roles %> |
|
15 | 15 | <tr class="<%= cycle("odd", "even") %>"> |
|
16 | 16 | <td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, :action => 'edit', :id => role)) %></td> |
|
17 | 17 | <td align="center" style="width:15%;"> |
|
18 | 18 | <% unless role.builtin? %> |
|
19 | 19 | <%= reorder_links('role', {:action => 'edit', :id => role}) %> |
|
20 | 20 | <% end %> |
|
21 | 21 | </td> |
|
22 | <td align="center" style="width:10%;"> | |
|
23 | <%= button_to(l(:button_delete), { :action => 'destroy', :id => role }, :confirm => l(:text_are_you_sure), :class => "button-small", :disabled => role.builtin? ) %> | |
|
22 | <td class="buttons"> | |
|
23 | <%= link_to(l(:button_delete), { :action => 'destroy', :id => role }, | |
|
24 | :method => :post, | |
|
25 | :confirm => l(:text_are_you_sure), | |
|
26 | :class => 'icon icon-del') unless role.builtin? %> | |
|
24 | 27 | </td> |
|
25 | 28 | </tr> |
|
26 | 29 | <% end %> |
|
27 | 30 | </tbody> |
|
28 | 31 | </table> |
|
29 | 32 | |
|
30 | 33 | <p class="pagination"><%= pagination_links_full @role_pages %></p> |
|
31 | 34 | |
|
32 | 35 | <p><%= link_to l(:label_permissions_report), :action => 'report' %></p> |
|
33 | 36 | |
|
34 | 37 | <% html_title(l(:label_role_plural)) -%> |
@@ -1,30 +1,33 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to l(:label_tracker_new), {:action => 'new'}, :class => 'icon icon-add' %> |
|
3 | 3 | </div> |
|
4 | 4 | |
|
5 | 5 | <h2><%=l(:label_tracker_plural)%></h2> |
|
6 | 6 | |
|
7 | 7 | <table class="list"> |
|
8 | 8 | <thead><tr> |
|
9 | 9 | <th><%=l(:label_tracker)%></th> |
|
10 | 10 | <th></th> |
|
11 | 11 | <th><%=l(:button_sort)%></th> |
|
12 | 12 | <th></th> |
|
13 | 13 | </tr></thead> |
|
14 | 14 | <tbody> |
|
15 | 15 | <% for tracker in @trackers %> |
|
16 | 16 | <tr class="<%= cycle("odd", "even") %>"> |
|
17 | 17 | <td><%= link_to tracker.name, :action => 'edit', :id => tracker %></td> |
|
18 | 18 | <td align="center"><% unless tracker.workflows.count > 0 %><span class="icon icon-warning"><%= l(:text_tracker_no_workflow) %> (<%= link_to l(:button_edit), {:controller => 'workflows', :action => 'edit', :tracker_id => tracker} %>)</span><% end %></td> |
|
19 | 19 | <td align="center" style="width:15%;"><%= reorder_links('tracker', {:action => 'edit', :id => tracker}) %></td> |
|
20 | <td align="center" style="width:10%;"> | |
|
21 |
<%= |
|
|
20 | <td class="buttons"> | |
|
21 | <%= link_to(l(:button_delete), { :action => 'destroy', :id => tracker }, | |
|
22 | :method => :post, | |
|
23 | :confirm => l(:text_are_you_sure), | |
|
24 | :class => 'icon icon-del') %> | |
|
22 | 25 | </td> |
|
23 | 26 | </tr> |
|
24 | 27 | <% end %> |
|
25 | 28 | </tbody> |
|
26 | 29 | </table> |
|
27 | 30 | |
|
28 | 31 | <p class="pagination"><%= pagination_links_full @tracker_pages %></p> |
|
29 | 32 | |
|
30 | 33 | <% html_title(l(:label_tracker_plural)) -%> |
General Comments 0
You need to be logged in to leave comments.
Login now