mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
Show tabs for existing custom field types only and adds a view for choosing the type when adding a new custom field.
git-svn-id: http://svn.redmine.org/redmine/trunk@12849 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -40,8 +40,13 @@ module CustomFieldsHelper
|
||||
:label => DocumentCategory::OptionName}
|
||||
]
|
||||
|
||||
def custom_fields_tabs
|
||||
CUSTOM_FIELDS_TABS
|
||||
def render_custom_fields_tabs(types)
|
||||
tabs = CUSTOM_FIELDS_TABS.select {|h| types.include?(h[:name]) }
|
||||
render_tabs tabs
|
||||
end
|
||||
|
||||
def custom_field_type_options
|
||||
CUSTOM_FIELDS_TABS.map {|h| [l(h[:label]), h[:name]]}
|
||||
end
|
||||
|
||||
def render_custom_field_format_partial(form, custom_field)
|
||||
|
||||
Reference in New Issue
Block a user