@@ -5,14 +5,14 | |||||
5 |
|
5 | |||
6 | <% enumerations = klass.shared %> |
|
6 | <% enumerations = klass.shared %> | |
7 | <% if enumerations.any? %> |
|
7 | <% if enumerations.any? %> | |
8 | <table class="list"> |
|
8 | <table class="list"><thead> | |
9 | <tr> |
|
9 | <tr> | |
10 | <th><%= l(:field_name) %></th> |
|
10 | <th><%= l(:field_name) %></th> | |
11 | <th style="width:15%;"><%= l(:field_is_default) %></th> |
|
11 | <th style="width:15%;"><%= l(:field_is_default) %></th> | |
12 | <th style="width:15%;"><%= l(:field_active) %></th> |
|
12 | <th style="width:15%;"><%= l(:field_active) %></th> | |
13 | <th style="width:15%;"></th> |
|
13 | <th style="width:15%;"></th> | |
14 | <th align="center" style="width:10%;"> </th> |
|
14 | <th align="center" style="width:10%;"> </th> | |
15 | </tr> |
|
15 | </tr></thead> | |
16 | <% enumerations.each do |enumeration| %> |
|
16 | <% enumerations.each do |enumeration| %> | |
17 | <tr class="<%= cycle('odd', 'even') %>"> |
|
17 | <tr class="<%= cycle('odd', 'even') %>"> | |
18 | <td><%= link_to h(enumeration), :action => 'edit', :id => enumeration %></td> |
|
18 | <td><%= link_to h(enumeration), :action => 'edit', :id => enumeration %></td> |
@@ -4,11 +4,11 | |||||
4 | <div class="splitcontentleft"> |
|
4 | <div class="splitcontentleft"> | |
5 | <% if @group.memberships.any? %> |
|
5 | <% if @group.memberships.any? %> | |
6 | <table class="list memberships"> |
|
6 | <table class="list memberships"> | |
7 | <thead> |
|
7 | <thead><tr> | |
8 | <th><%= l(:label_project) %></th> |
|
8 | <th><%= l(:label_project) %></th> | |
9 | <th><%= l(:label_role_plural) %></th> |
|
9 | <th><%= l(:label_role_plural) %></th> | |
10 | <th style="width:15%"></th> |
|
10 | <th style="width:15%"></th> | |
11 | </thead> |
|
11 | </tr></thead> | |
12 | <tbody> |
|
12 | <tbody> | |
13 | <% @group.memberships.each do |membership| %> |
|
13 | <% @group.memberships.each do |membership| %> | |
14 | <% next if membership.new_record? %> |
|
14 | <% next if membership.new_record? %> |
@@ -1,10 +1,10 | |||||
1 | <div class="splitcontentleft"> |
|
1 | <div class="splitcontentleft"> | |
2 | <% if @group.users.any? %> |
|
2 | <% if @group.users.any? %> | |
3 | <table class="list users"> |
|
3 | <table class="list users"> | |
4 | <thead> |
|
4 | <thead><tr> | |
5 | <th><%= l(:label_user) %></th> |
|
5 | <th><%= l(:label_user) %></th> | |
6 | <th style="width:15%"></th> |
|
6 | <th style="width:15%"></th> | |
7 | </thead> |
|
7 | </tr></thead> | |
8 | <tbody> |
|
8 | <tbody> | |
9 | <% @group.users.sort.each do |user| %> |
|
9 | <% @group.users.sort.each do |user| %> | |
10 | <tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>"> |
|
10 | <tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>"> |
@@ -13,13 +13,13 entries_by_day = entries.group_by(&:spent_on) | |||||
13 |
|
13 | |||
14 | <% if entries.any? %> |
|
14 | <% if entries.any? %> | |
15 | <table class="list time-entries"> |
|
15 | <table class="list time-entries"> | |
16 | <thead> |
|
16 | <thead><tr> | |
17 | <th><%= l(:label_activity) %></th> |
|
17 | <th><%= l(:label_activity) %></th> | |
18 | <th><%= l(:label_project) %></th> |
|
18 | <th><%= l(:label_project) %></th> | |
19 | <th><%= l(:field_comments) %></th> |
|
19 | <th><%= l(:field_comments) %></th> | |
20 | <th><%= l(:field_hours) %></th> |
|
20 | <th><%= l(:field_hours) %></th> | |
21 | <th></th> |
|
21 | <th></th> | |
22 | </thead> |
|
22 | </tr></thead> | |
23 | <tbody> |
|
23 | <tbody> | |
24 | <% entries_by_day.keys.sort.reverse.each do |day| %> |
|
24 | <% entries_by_day.keys.sort.reverse.each do |day| %> | |
25 | <tr class="odd"> |
|
25 | <tr class="odd"> |
@@ -1,42 +1,42 | |||||
1 | <% form_tag({:controller => 'projects', :action => 'save_activities', :id => @project}, :class => "tabular") do %> |
|
1 | <% form_tag({:controller => 'projects', :action => 'save_activities', :id => @project}, :class => "tabular") do %> | |
2 |
|
2 | |||
3 | <table class="list"> |
|
3 | <table class="list"> | |
4 | <tr> |
|
4 | <thead><tr> | |
5 | <th><%= l(:field_name) %></th> |
|
5 | <th><%= l(:field_name) %></th> | |
6 | <th><%= l(:enumeration_system_activity) %></th> |
|
6 | <th><%= l(:enumeration_system_activity) %></th> | |
7 | <% TimeEntryActivity.new.available_custom_fields.each do |value| %> |
|
7 | <% TimeEntryActivity.new.available_custom_fields.each do |value| %> | |
8 | <th><%= h value.name %></th> |
|
8 | <th><%= h value.name %></th> | |
9 | <% end %> |
|
9 | <% end %> | |
10 | <th style="width:15%;"><%= l(:field_active) %></th> |
|
10 | <th style="width:15%;"><%= l(:field_active) %></th> | |
11 | </tr> |
|
11 | </tr></thead> | |
12 |
|
12 | |||
13 | <% @project.activities(true).each do |enumeration| %> |
|
13 | <% @project.activities(true).each do |enumeration| %> | |
14 | <% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %> |
|
14 | <% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %> | |
15 | <tr class="<%= cycle('odd', 'even') %>"> |
|
15 | <tr class="<%= cycle('odd', 'even') %>"> | |
16 | <td> |
|
16 | <td> | |
17 | <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %> |
|
17 | <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %> | |
18 | <%= h(enumeration) %> |
|
18 | <%= h(enumeration) %> | |
19 | </td> |
|
19 | </td> | |
20 | <td align="center" style="width:15%;"><%= checked_image !enumeration.project %></td> |
|
20 | <td align="center" style="width:15%;"><%= checked_image !enumeration.project %></td> | |
21 | <% enumeration.custom_field_values.each do |value| %> |
|
21 | <% enumeration.custom_field_values.each do |value| %> | |
22 | <td align="center"> |
|
22 | <td align="center"> | |
23 | <%= custom_field_tag "enumerations[#{enumeration.id}]", value %> |
|
23 | <%= custom_field_tag "enumerations[#{enumeration.id}]", value %> | |
24 | </td> |
|
24 | </td> | |
25 | <% end %> |
|
25 | <% end %> | |
26 | <td align="center" style="width:15%;"> |
|
26 | <td align="center" style="width:15%;"> | |
27 | <%= ff.check_box :active %> |
|
27 | <%= ff.check_box :active %> | |
28 | </td> |
|
28 | </td> | |
29 | </tr> |
|
29 | </tr> | |
30 | <% end %> |
|
30 | <% end %> | |
31 | <% end %> |
|
31 | <% end %> | |
32 | </table> |
|
32 | </table> | |
33 |
|
33 | |||
34 | <div class="contextual"> |
|
34 | <div class="contextual"> | |
35 | <%= link_to(l(:button_reset), {:controller => 'projects', :action => 'reset_activities', :id => @project}, |
|
35 | <%= link_to(l(:button_reset), {:controller => 'projects', :action => 'reset_activities', :id => @project}, | |
36 | :method => :delete, |
|
36 | :method => :delete, | |
37 | :confirm => l(:text_are_you_sure), |
|
37 | :confirm => l(:text_are_you_sure), | |
38 | :class => 'icon icon-del') %> |
|
38 | :class => 'icon icon-del') %> | |
39 | </div> |
|
39 | </div> | |
40 |
|
40 | |||
41 | <%= submit_tag l(:button_save) %> |
|
41 | <%= submit_tag l(:button_save) %> | |
42 | <% end %> |
|
42 | <% end %> |
@@ -1,11 +1,11 | |||||
1 | <% if @project.boards.any? %> |
|
1 | <% if @project.boards.any? %> | |
2 | <table class="list"> |
|
2 | <table class="list"> | |
3 | <thead> |
|
3 | <thead><tr> | |
4 | <th><%= l(:label_board) %></th> |
|
4 | <th><%= l(:label_board) %></th> | |
5 | <th><%= l(:field_description) %></th> |
|
5 | <th><%= l(:field_description) %></th> | |
6 | <th></th> |
|
6 | <th></th> | |
7 | <th></th> |
|
7 | <th></th> | |
8 | </thead> |
|
8 | </tr></thead> | |
9 | <tbody> |
|
9 | <tbody> | |
10 | <% @project.boards.each do |board| |
|
10 | <% @project.boards.each do |board| | |
11 | next if board.new_record? %> |
|
11 | next if board.new_record? %> |
@@ -1,10 +1,10 | |||||
1 | <% if @project.issue_categories.any? %> |
|
1 | <% if @project.issue_categories.any? %> | |
2 | <table class="list"> |
|
2 | <table class="list"> | |
3 | <thead> |
|
3 | <thead><tr> | |
4 | <th><%= l(:label_issue_category) %></th> |
|
4 | <th><%= l(:label_issue_category) %></th> | |
5 | <th><%= l(:field_assigned_to) %></th> |
|
5 | <th><%= l(:field_assigned_to) %></th> | |
6 | <th></th> |
|
6 | <th></th> | |
7 | </thead> |
|
7 | </tr></thead> | |
8 | <tbody> |
|
8 | <tbody> | |
9 | <% for category in @project.issue_categories %> |
|
9 | <% for category in @project.issue_categories %> | |
10 | <% unless category.new_record? %> |
|
10 | <% unless category.new_record? %> |
@@ -5,12 +5,12 | |||||
5 | <div class="splitcontentleft"> |
|
5 | <div class="splitcontentleft"> | |
6 | <% if members.any? %> |
|
6 | <% if members.any? %> | |
7 | <table class="list members"> |
|
7 | <table class="list members"> | |
8 | <thead> |
|
8 | <thead><tr> | |
9 | <th><%= l(:label_user) %> / <%= l(:label_group) %></th> |
|
9 | <th><%= l(:label_user) %> / <%= l(:label_group) %></th> | |
10 | <th><%= l(:label_role_plural) %></th> |
|
10 | <th><%= l(:label_role_plural) %></th> | |
11 | <th style="width:15%"></th> |
|
11 | <th style="width:15%"></th> | |
12 | <%= call_hook(:view_projects_settings_members_table_header, :project => @project) %> |
|
12 | <%= call_hook(:view_projects_settings_members_table_header, :project => @project) %> | |
13 | </thead> |
|
13 | </tr></thead> | |
14 | <tbody> |
|
14 | <tbody> | |
15 | <% members.each do |member| %> |
|
15 | <% members.each do |member| %> | |
16 | <% next if member.new_record? %> |
|
16 | <% next if member.new_record? %> |
@@ -1,6 +1,6 | |||||
1 | <% if @project.shared_versions.any? %> |
|
1 | <% if @project.shared_versions.any? %> | |
2 | <table class="list versions"> |
|
2 | <table class="list versions"> | |
3 | <thead> |
|
3 | <thead><tr> | |
4 | <th><%= l(:label_version) %></th> |
|
4 | <th><%= l(:label_version) %></th> | |
5 | <th><%= l(:field_effective_date) %></th> |
|
5 | <th><%= l(:field_effective_date) %></th> | |
6 | <th><%= l(:field_description) %></th> |
|
6 | <th><%= l(:field_description) %></th> | |
@@ -8,7 +8,7 | |||||
8 | <th><%= l(:field_sharing) %></th> |
|
8 | <th><%= l(:field_sharing) %></th> | |
9 | <th><%= l(:label_wiki_page) unless @project.wiki.nil? %></th> |
|
9 | <th><%= l(:label_wiki_page) unless @project.wiki.nil? %></th> | |
10 | <th style="width:15%"></th> |
|
10 | <th style="width:15%"></th> | |
11 | </thead> |
|
11 | </tr></thead> | |
12 | <tbody> |
|
12 | <tbody> | |
13 | <% for version in @project.shared_versions.sort %> |
|
13 | <% for version in @project.shared_versions.sort %> | |
14 | <tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>"> |
|
14 | <tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>"> |
@@ -4,12 +4,12 | |||||
4 | <div class="splitcontentleft"> |
|
4 | <div class="splitcontentleft"> | |
5 | <% if @user.memberships.any? %> |
|
5 | <% if @user.memberships.any? %> | |
6 | <table class="list memberships"> |
|
6 | <table class="list memberships"> | |
7 | <thead> |
|
7 | <thead><tr> | |
8 | <th><%= l(:label_project) %></th> |
|
8 | <th><%= l(:label_project) %></th> | |
9 | <th><%= l(:label_role_plural) %></th> |
|
9 | <th><%= l(:label_role_plural) %></th> | |
10 | <th style="width:15%"></th> |
|
10 | <th style="width:15%"></th> | |
11 | <%= call_hook(:view_users_memberships_table_header, :user => @user )%> |
|
11 | <%= call_hook(:view_users_memberships_table_header, :user => @user )%> | |
12 | </thead> |
|
12 | </tr></thead> | |
13 | <tbody> |
|
13 | <tbody> | |
14 | <% @user.memberships.each do |membership| %> |
|
14 | <% @user.memberships.each do |membership| %> | |
15 | <% next if membership.new_record? %> |
|
15 | <% next if membership.new_record? %> |
General Comments 0
You need to be logged in to leave comments.
Login now