{% macro row(field, widgetClass = 'form-control', width = 'col-6') %}
{{ form_label(field, null, { label_attr: { class: 'col-2 col-form-label font-weight-bold' } }) }}
{{ form_widget(field, { attr: { class: widgetClass } }) }} {{ form_errors(field) }}
{% endmacro %} {% import _self as self %} {{ self.row(form.name) }} {{ self.row(form.description) }} {{ self.row(form.targetGroup) }} {{ self.row(form.frequency, 'form-select', 'col-3') }} {{ self.row(form.labTests, 'form-select kt-select2') }} {{ self.row(form.radiologyTests, 'form-select kt-select2') }} {{ self.row(form.otherAssessments) }}
{{ form_errors(form.isActive) }}