@@ -1,6 +1,7 | |||
|
1 | <h2><%=l(:label_custom_field)%> (<%=l(@custom_field.type_name)%>)</h2> | |
|
1 | <h2><%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.type %> | |
|
2 | » <%=h @custom_field.name %> (<%=l(@custom_field.type_name)%>)</h2> | |
|
2 | 3 | |
|
3 | 4 | <% labelled_tabular_form_for :custom_field, @custom_field, :url => { :action => "edit", :id => @custom_field } do |f| %> |
|
4 | 5 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | 6 | <%= submit_tag l(:button_save) %> |
|
6 | 7 | <% end %> |
@@ -1,7 +1,8 | |||
|
1 | <h2><%=l(:label_custom_field_new)%> (<%=l(@custom_field.type_name)%>)</h2> | |
|
1 | <h2><%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.type %> | |
|
2 | » <%=l(:label_custom_field_new)%> (<%=l(@custom_field.type_name)%>)</h2> | |
|
2 | 3 | |
|
3 | 4 | <% labelled_tabular_form_for :custom_field, @custom_field, :url => { :action => "new" } do |f| %> |
|
4 | 5 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | 6 | <%= hidden_field_tag 'type', @custom_field.type %> |
|
6 | 7 | <%= submit_tag l(:button_save) %> |
|
7 | 8 | <% end %> |
@@ -1,10 +1,10 | |||
|
1 | <h2><%=l(:label_enumerations)%></h2> | |
|
1 | <h2><%= link_to l(@enumeration.option_name), :controller => 'enumerations', :action => 'index' %> » <%=h @enumeration %></h2> | |
|
2 | 2 | |
|
3 | 3 | <% form_tag({:action => 'update', :id => @enumeration}, :class => "tabular") do %> |
|
4 | 4 | <%= render :partial => 'form' %> |
|
5 | 5 | <%= submit_tag l(:button_save) %> |
|
6 | 6 | <% end %> |
|
7 | 7 | |
|
8 | 8 | <% form_tag({:action => 'destroy', :id => @enumeration}) do %> |
|
9 | 9 | <%= submit_tag l(:button_delete) %> |
|
10 | 10 | <% end %> No newline at end of file |
@@ -1,6 +1,6 | |||
|
1 |
<h2><%= l(@enumeration.option_name) %> |
|
|
1 | <h2><%= link_to l(@enumeration.option_name), :controller => 'enumerations', :action => 'index' %> » <%=l(:label_enumeration_new)%></h2> | |
|
2 | 2 | |
|
3 | 3 | <% form_tag({:action => 'create'}, :class => "tabular") do %> |
|
4 | 4 | <%= render :partial => 'form' %> |
|
5 | 5 | <%= submit_tag l(:button_create) %> |
|
6 | 6 | <% end %> |
@@ -1,6 +1,6 | |||
|
1 | <h2><%=l(:label_issue_status)%></h2> | |
|
1 | <h2><%= link_to l(:label_issue_status_plural), :controller => 'issue_statuses', :action => 'index' %> » <%=h @issue_status %></h2> | |
|
2 | 2 | |
|
3 | 3 | <% form_tag({:action => 'update', :id => @issue_status}, :class => "tabular") do %> |
|
4 | 4 | <%= render :partial => 'form' %> |
|
5 | 5 | <%= submit_tag l(:button_save) %> |
|
6 | 6 | <% end %> |
@@ -1,6 +1,6 | |||
|
1 | <h2><%=l(:label_issue_status_new)%></h2> | |
|
1 | <h2><%= link_to l(:label_issue_status_plural), :controller => 'issue_statuses', :action => 'index' %> » <%=l(:label_issue_status_new)%></h2> | |
|
2 | 2 | |
|
3 | 3 | <% form_tag({:action => 'create'}, :class => "tabular") do %> |
|
4 | 4 | <%= render :partial => 'form' %> |
|
5 | 5 | <%= submit_tag l(:button_create) %> |
|
6 | 6 | <% end %> |
@@ -1,6 +1,6 | |||
|
1 | <h2><%=l(:label_role)%>: <%= @role.name %></h2> | |
|
1 | <h2><%= link_to l(:label_role_plural), :controller => 'roles', :action => 'index' %> » <%= @role.name %></h2> | |
|
2 | 2 | |
|
3 | 3 | <% labelled_tabular_form_for :role, @role, :url => { :action => 'edit' }, :html => {:id => 'role_form'} 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 | <h2><%=l(:label_role_new)%></h2> | |
|
1 | <h2><%= link_to l(:label_role_plural), :controller => 'roles', :action => 'index' %> » <%=l(:label_role_new)%></h2> | |
|
2 | 2 | |
|
3 | 3 | <% labelled_tabular_form_for :role, @role, :url => { :action => 'new' }, :html => {:id => 'role_form'} do |f| %> |
|
4 | 4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | 5 | <%= submit_tag l(:button_create) %> |
|
6 | 6 | <% end %> No newline at end of file |
@@ -1,50 +1,50 | |||
|
1 | <h2><%=l(:label_permissions_report)%></h2> | |
|
1 | <h2><%= link_to l(:label_role_plural), :controller => 'roles', :action => 'index' %> » <%=l(:label_permissions_report)%></h2> | |
|
2 | 2 | |
|
3 | 3 | <% form_tag({:action => 'report'}, :id => 'permissions_form') do %> |
|
4 | 4 | <%= hidden_field_tag 'permissions[0]', '', :id => nil %> |
|
5 | 5 | <table class="list"> |
|
6 | 6 | <thead> |
|
7 | 7 | <tr> |
|
8 | 8 | <th><%=l(:label_permissions)%></th> |
|
9 | 9 | <% @roles.each do |role| %> |
|
10 | 10 | <th> |
|
11 | 11 | <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> |
|
12 | 12 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.role-#{role.id}')", |
|
13 | 13 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> |
|
14 | 14 | </th> |
|
15 | 15 | <% end %> |
|
16 | 16 | </tr> |
|
17 | 17 | </thead> |
|
18 | 18 | <tbody> |
|
19 | 19 | <% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %> |
|
20 | 20 | <% perms_by_module.keys.sort.each do |mod| %> |
|
21 | 21 | <% unless mod.blank? %> |
|
22 | 22 | <tr class="group open"> |
|
23 | 23 | <td colspan="<%= @roles.size + 1 %>"> |
|
24 | 24 | <span class="expander" onclick="toggleRowGroup(this); return false;"> </span> |
|
25 | 25 | <%= l_or_humanize(mod, :prefix => 'project_module_') %> |
|
26 | 26 | </td> |
|
27 | 27 | </tr> |
|
28 | 28 | <% end %> |
|
29 | 29 | <% perms_by_module[mod].each do |permission| %> |
|
30 | 30 | <tr class="<%= cycle('odd', 'even') %> permission-<%= permission.name %>"> |
|
31 | 31 | <td> |
|
32 | 32 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('.permission-#{permission.name} input')", |
|
33 | 33 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> |
|
34 | 34 | <%= l_or_humanize(permission.name, :prefix => 'permission_') %> |
|
35 | 35 | </td> |
|
36 | 36 | <% @roles.each do |role| %> |
|
37 | 37 | <td align="center"> |
|
38 | 38 | <% if role.setable_permissions.include? permission %> |
|
39 | 39 | <%= check_box_tag "permissions[#{role.id}][]", permission.name, (role.permissions.include? permission.name), :id => nil, :class => "role-#{role.id}" %> |
|
40 | 40 | <% end %> |
|
41 | 41 | </td> |
|
42 | 42 | <% end %> |
|
43 | 43 | </tr> |
|
44 | 44 | <% end %> |
|
45 | 45 | <% end %> |
|
46 | 46 | </tbody> |
|
47 | 47 | </table> |
|
48 | 48 | <p><%= check_all_links 'permissions_form' %></p> |
|
49 | 49 | <p><%= submit_tag l(:button_save) %></p> |
|
50 | 50 | <% end %> |
@@ -1,6 +1,6 | |||
|
1 | <h2><%=l(:label_tracker)%></h2> | |
|
1 | <h2><%= link_to l(:label_tracker_plural), :controller => 'trackers', :action => 'index' %> » <%=h @tracker %></h2> | |
|
2 | 2 | |
|
3 | 3 | <% form_for :tracker, @tracker, :url => { :action => 'edit' }, :builder => TabularFormBuilder 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 | <h2><%=l(:label_tracker_new)%></h2> | |
|
1 | <h2><%= link_to l(:label_tracker_plural), :controller => 'trackers', :action => 'index' %> » <%=l(:label_tracker_new)%></h2> | |
|
2 | 2 | |
|
3 | 3 | <% form_for :tracker, @tracker, :url => { :action => 'new' }, :builder => TabularFormBuilder do |f| %> |
|
4 | 4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | 5 | <%= submit_tag l(:button_create) %> |
|
6 | 6 | <% end %> |
@@ -1,7 +1,7 | |||
|
1 | <h2><%=l(:label_user_new)%></h2> | |
|
1 | <h2><%= link_to l(:label_user_plural), :controller => 'users', :action => 'index' %> » <%=l(:label_user_new)%></h2> | |
|
2 | 2 | |
|
3 | 3 | <% labelled_tabular_form_for :user, @user, :url => { :action => "add" } do |f| %> |
|
4 | 4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | 5 | <%= submit_tag l(:button_create) %> |
|
6 | 6 | <%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %> |
|
7 | 7 | <% end %> |
@@ -1,27 +1,27 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= change_status_link(@user) %> |
|
3 | 3 | </div> |
|
4 | 4 | |
|
5 | <h2><%=l(:label_user)%>: <%=h @user.login %></h2> | |
|
5 | <h2><%= link_to l(:label_user_plural), :controller => 'users', :action => 'index' %> » <%=h @user.login %></h2> | |
|
6 | 6 | |
|
7 | 7 | <% selected_tab = params[:tab] ? params[:tab].to_s : user_settings_tabs.first[:name] %> |
|
8 | 8 | |
|
9 | 9 | <div class="tabs"> |
|
10 | 10 | <ul> |
|
11 | 11 | <% user_settings_tabs.each do |tab| -%> |
|
12 | 12 | <li><%= link_to l(tab[:label]), { :tab => tab[:name] }, |
|
13 | 13 | :id => "tab-#{tab[:name]}", |
|
14 | 14 | :class => (tab[:name] != selected_tab ? nil : 'selected'), |
|
15 | 15 | :onclick => "showTab('#{tab[:name]}'); this.blur(); return false;" %></li> |
|
16 | 16 | <% end -%> |
|
17 | 17 | </ul> |
|
18 | 18 | </div> |
|
19 | 19 | |
|
20 | 20 | <% user_settings_tabs.each do |tab| -%> |
|
21 | 21 | <%= content_tag('div', render(:partial => tab[:partial]), |
|
22 | 22 | :id => "tab-content-#{tab[:name]}", |
|
23 | 23 | :style => (tab[:name] != selected_tab ? 'display:none' : nil), |
|
24 | 24 | :class => 'tab-content') %> |
|
25 | 25 | <% end -%> |
|
26 | 26 | |
|
27 | 27 | <% html_title(l(:label_user), @user.login, l(:label_administration)) -%> |
General Comments 0
You need to be logged in to leave comments.
Login now