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