Sha256: 5454e7c54f7d9ea06cbf1c42b430a6d9a92b93a39407f39f6b72b94e1d1d43de
Contents?: true
Size: 885 Bytes
Versions: 5
Compression:
Stored size: 885 Bytes
Contents
<% ## # Template per il rendering campo # - form -> FormBuilder # - form_field -> Array[String] %> <%# locals: (form:, form_field:) -%> <%= form.label(form_field, class: ["form-label", "form-#{form_field}-label"]) %> <% button_group_classes = ["mb-2"] content = form_print_field(form, form_field) unless content.match "checkbox" button_group_classes << "input-group" end button_group_classes << (form.object.validated? ? "has-validation" : "") button_group_classes << "form-#{form_field}-input-group" %> <%= content_tag :div, class: button_group_classes.join(" ") do %> <%= render partial: "editing_form_measure_unit", locals: {object: form.object, field: form_field} %> <%= content %> <%= error_messages_for(form.object, form_field) %> <% end %> <%= render partial: "editing_form_help_text", locals: {object: form.object, field: form_field} %>
Version data entries
5 entries across 5 versions & 1 rubygems