diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-09 06:54:19 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-09 06:54:19 +0000 |
commit | d40ed8bfa128cea1f1111193d3b75f1caf2c859f (patch) | |
tree | 22c8adf97b41e86b1a046b914db9ecde82918341 /app/helpers/custom_fields_helper.rb | |
parent | c7ee8d26afcc95d2b4da11fbe0cd51049a0c07fd (diff) | |
download | redmine-d40ed8bfa128cea1f1111193d3b75f1caf2c859f.tar.gz redmine-d40ed8bfa128cea1f1111193d3b75f1caf2c859f.zip |
cleanup: rubocop: fix Layout/AlignArguments in app/helpers/custom_fields_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18991 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/custom_fields_helper.rb')
-rw-r--r-- | app/helpers/custom_fields_helper.rb | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb index 00140396d..48fc6140a 100644 --- a/app/helpers/custom_fields_helper.rb +++ b/app/helpers/custom_fields_helper.rb @@ -88,13 +88,13 @@ module CustomFieldsHelper :issues_url => auto_complete_issues_path(:project_id => custom_value.customized.project, :q => '') } if custom_value.customized && custom_value.customized.project end - - custom_value.custom_field.format.edit_tag self, + custom_value.custom_field.format.edit_tag( + self, custom_field_tag_id(prefix, custom_value.custom_field), custom_field_tag_name(prefix, custom_value.custom_field), custom_value, :class => css, - :data => data + :data => data) end # Return custom field name tag @@ -109,10 +109,10 @@ module CustomFieldsHelper required = options[:required] || custom_value.custom_field.is_required? for_tag_id = options.fetch(:for_tag_id, "#{name}_custom_field_values_#{custom_value.custom_field.id}") content = custom_field_name_tag custom_value.custom_field - - content_tag "label", content + + content_tag( + "label", content + (required ? " <span class=\"required\">*</span>".html_safe : ""), - :for => for_tag_id + :for => for_tag_id) end # Return custom field tag with its label tag @@ -128,13 +128,14 @@ module CustomFieldsHelper # Returns the custom field tag for when bulk editing objects def custom_field_tag_for_bulk_edit(prefix, custom_field, objects=nil, value='') - custom_field.format.bulk_edit_tag self, + custom_field.format.bulk_edit_tag( + self, custom_field_tag_id(prefix, custom_field), custom_field_tag_name(prefix, custom_field), custom_field, objects, value, - :class => "#{custom_field.field_format}_cf" + :class => "#{custom_field.field_format}_cf") end # Returns custom field value tag |