@@ -23,9 +23,9 module CustomFieldsHelper | |||||
23 | {:name => 'ProjectCustomField', :partial => 'custom_fields/index', :label => :label_project_plural}, |
|
23 | {:name => 'ProjectCustomField', :partial => 'custom_fields/index', :label => :label_project_plural}, | |
24 | {:name => 'UserCustomField', :partial => 'custom_fields/index', :label => :label_user_plural}, |
|
24 | {:name => 'UserCustomField', :partial => 'custom_fields/index', :label => :label_user_plural}, | |
25 | {:name => 'GroupCustomField', :partial => 'custom_fields/index', :label => :label_group_plural}, |
|
25 | {:name => 'GroupCustomField', :partial => 'custom_fields/index', :label => :label_group_plural}, | |
26 | {:name => 'TimeEntryActivityCustomField', :label => TimeEntryActivity::OptionName}, |
|
26 | {:name => 'TimeEntryActivityCustomField', :partial => 'custom_fields/index', :label => TimeEntryActivity::OptionName}, | |
27 | {:name => 'IssuePriorityCustomField', :label => IssuePriority::OptionName}, |
|
27 | {:name => 'IssuePriorityCustomField', :partial => 'custom_fields/index', :label => IssuePriority::OptionName}, | |
28 | {:name => 'DocumentCategoryCustomField', :label => DocumentCategory::OptionName} |
|
28 | {:name => 'DocumentCategoryCustomField', :partial => 'custom_fields/index', :label => DocumentCategory::OptionName} | |
29 | ] |
|
29 | ] | |
30 | end |
|
30 | end | |
31 |
|
31 |
@@ -17,7 +17,7 | |||||
17 |
|
17 | |||
18 | class TimeEntryActivityCustomField < CustomField |
|
18 | class TimeEntryActivityCustomField < CustomField | |
19 | def type_name |
|
19 | def type_name | |
20 |
:enumeration_ |
|
20 | :enumeration_activities | |
21 | end |
|
21 | end | |
22 | end |
|
22 | end | |
23 |
|
23 |
@@ -16,8 +16,8 | |||||
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> | |
19 | <td style="width:15%;"><%= image_tag('true.png') if enumeration.is_default? %></td> |
|
19 | <td class="center" style="width:15%;"><%= image_tag('true.png') if enumeration.is_default? %></td> | |
20 | <td style="width:15%;"><%= image_tag('true.png') if enumeration.active? %></td> |
|
20 | <td class="center" style="width:15%;"><%= image_tag('true.png') if enumeration.active? %></td> | |
21 | <td style="width:15%;"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}) %></td> |
|
21 | <td style="width:15%;"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}) %></td> | |
22 | <td class="buttons"> |
|
22 | <td class="buttons"> | |
23 | <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, |
|
23 | <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, |
@@ -159,6 +159,8 table.attributes { width: 100% } | |||||
159 | table.attributes th { vertical-align: top; text-align: left; } |
|
159 | table.attributes th { vertical-align: top; text-align: left; } | |
160 | table.attributes td { vertical-align: top; } |
|
160 | table.attributes td { vertical-align: top; } | |
161 |
|
161 | |||
|
162 | td.center {text-align:center;} | |||
|
163 | ||||
162 | .highlight { background-color: #FCFD8D;} |
|
164 | .highlight { background-color: #FCFD8D;} | |
163 | .highlight.token-1 { background-color: #faa;} |
|
165 | .highlight.token-1 { background-color: #faa;} | |
164 | .highlight.token-2 { background-color: #afa;} |
|
166 | .highlight.token-2 { background-color: #afa;} |
@@ -84,7 +84,7 custom_values_014: | |||||
84 | id: 14 |
|
84 | id: 14 | |
85 | value: "-7.6" |
|
85 | value: "-7.6" | |
86 | custom_values_015: |
|
86 | custom_values_015: | |
87 |
customized_type: |
|
87 | customized_type: Enumeration | |
88 | custom_field_id: 7 |
|
88 | custom_field_id: 7 | |
89 | customized_id: 10 |
|
89 | customized_id: 10 | |
90 | id: 15 |
|
90 | id: 15 | |
@@ -94,4 +94,4 custom_values_016: | |||||
94 | custom_field_id: 7 |
|
94 | custom_field_id: 7 | |
95 | customized_id: 11 |
|
95 | customized_id: 11 | |
96 | id: 16 |
|
96 | id: 16 | |
97 |
value: |
|
97 | value: '1' |
General Comments 0
You need to be logged in to leave comments.
Login now