diff --git a/app/views/branded/shared/dynamic_form/_form.html.erb b/app/views/branded/shared/dynamic_form/_form.html.erb index ceffb6a..31b3d45 100644 --- a/app/views/branded/shared/dynamic_form/_form.html.erb +++ b/app/views/branded/shared/dynamic_form/_form.html.erb @@ -14,8 +14,7 @@ <% field_id = fragment.present? ? "fragment_#{key}_#{fragment.id}" : "new_fragment_#{key}_#{SecureRandom.uuid}"%> <% validation = validations.nil? ? "none" : validations[key] %> <% required = required_fields.include?(key)%> - <% asterisk = required ? "*" : ""%> - <% label = "#{asterisk} #{prop["label@#{template_locale}"]}" %> + <% label = prop["label@#{template_locale}"]%> <% ttip = prop["tooltip@#{template_locale}"] %> <% dropdownValues = prop["values@#{template_locale}"]%> <% example = prop["example@#{template_locale}"] ? "ex: #{prop["example@#{template_locale}"]}": nil %> diff --git a/app/views/branded/shared/dynamic_form/fields/_date_field.html.erb b/app/views/branded/shared/dynamic_form/fields/_date_field.html.erb index b5f5a42..6f9327e 100644 --- a/app/views/branded/shared/dynamic_form/fields/_date_field.html.erb +++ b/app/views/branded/shared/dynamic_form/fields/_date_field.html.erb @@ -1,6 +1,8 @@ <%# locals: { f, field_label, field_name, multiple, classname, field_name, field_id, required, readonly, validation } %> <% field_class = nil if local_assigns[:field_class].nil? %> <% field_label = field_label || 'No label defined' %> +<% field_label = required ? "* #{field_label}" : field_label%> + <% unless multiple %>