mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
Show a custom field description as a placeholder (#14275).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21460 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -81,6 +81,8 @@ module CustomFieldsHelper
|
||||
def custom_field_tag(prefix, custom_value)
|
||||
cf = custom_value.custom_field
|
||||
css = cf.css_classes
|
||||
placeholder = cf.description
|
||||
placeholder&.tr!("\n", ' ') if cf.field_format != 'text'
|
||||
data = nil
|
||||
if cf.full_text_formatting?
|
||||
css += ' wiki-edit'
|
||||
@@ -94,6 +96,7 @@ module CustomFieldsHelper
|
||||
custom_field_tag_name(prefix, cf),
|
||||
custom_value,
|
||||
:class => css,
|
||||
:placeholder => placeholder,
|
||||
:data => data)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user