summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-08-04 10:26:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-08-04 10:26:54 +0000
commitb19b90234529206205abfa21c4a92ba7cebb7d98 (patch)
tree94418ed45d17e704087a01b32101034067637bb1 /app/helpers
parentb900ea8e2f188cdf07951bc37c466408c738eda7 (diff)
downloadredmine-b19b90234529206205abfa21c4a92ba7cebb7d98.tar.gz
redmine-b19b90234529206205abfa21c4a92ba7cebb7d98.zip
Moved CUSTOM_FIELDS_TABS out of the model.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12077 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/custom_fields_helper.rb23
1 files changed, 22 insertions, 1 deletions
diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb
index ab516d00a..242bfefef 100644
--- a/app/helpers/custom_fields_helper.rb
+++ b/app/helpers/custom_fields_helper.rb
@@ -19,8 +19,29 @@
module CustomFieldsHelper
+ CUSTOM_FIELDS_TABS = [
+ {:name => 'IssueCustomField', :partial => 'custom_fields/index',
+ :label => :label_issue_plural},
+ {:name => 'TimeEntryCustomField', :partial => 'custom_fields/index',
+ :label => :label_spent_time},
+ {:name => 'ProjectCustomField', :partial => 'custom_fields/index',
+ :label => :label_project_plural},
+ {:name => 'VersionCustomField', :partial => 'custom_fields/index',
+ :label => :label_version_plural},
+ {:name => 'UserCustomField', :partial => 'custom_fields/index',
+ :label => :label_user_plural},
+ {:name => 'GroupCustomField', :partial => 'custom_fields/index',
+ :label => :label_group_plural},
+ {:name => 'TimeEntryActivityCustomField', :partial => 'custom_fields/index',
+ :label => TimeEntryActivity::OptionName},
+ {:name => 'IssuePriorityCustomField', :partial => 'custom_fields/index',
+ :label => IssuePriority::OptionName},
+ {:name => 'DocumentCategoryCustomField', :partial => 'custom_fields/index',
+ :label => DocumentCategory::OptionName}
+ ]
+
def custom_fields_tabs
- CustomField::CUSTOM_FIELDS_TABS
+ CUSTOM_FIELDS_TABS
end
# Return custom field html tag corresponding to its format