Initial commit
This commit is contained in:
28
templates/_dashboard/grid/_form.html.twig
Normal file
28
templates/_dashboard/grid/_form.html.twig
Normal file
@ -0,0 +1,28 @@
|
||||
{% for _log in logs %}
|
||||
<div>{{ _log }}</div>
|
||||
{% endfor %}
|
||||
|
||||
{{ form_start(form) }}
|
||||
<div class="sp_form-row__radio sp_radio__layout-grid-b sp_radio__style-text">
|
||||
{{ form_label(form.positions, null, {'label_attr': {'class': 'sp_radio__main-label'}}) }}
|
||||
<div class="sp_radio__container">
|
||||
{% for key, choice in form.positions %}
|
||||
<label class="sp_radio__input-wrapper" title="{{ choice.vars.label }}">
|
||||
<span class="sp_radio__input-mark"></span>
|
||||
<span class="sp_radio__input-label">{{ choice.vars.label }}</span>
|
||||
<input name="{{ choice.vars.full_name }}" type="{{ choice.parent.vars.multiple ? 'checkbox' : 'radio' }}" value="{{ choice.vars.value }}" {% if key == 0 and choice.vars.required %}required{% endif%} {% if choice.vars.checked %}checked{% endif %}>
|
||||
</label>
|
||||
{% endfor %}
|
||||
{% do form.positions.setRendered %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sp_form-row__button">
|
||||
<a class="sp_button" href="{{ path('bo_region_index') }}" data-type="cancel">
|
||||
<span>Cancel</span>
|
||||
</a>
|
||||
<button class="sp_button" data-type="validate" type="submit">
|
||||
<span>Save</span>
|
||||
</button>
|
||||
</div>
|
||||
{{ form_end(form) }}
|
||||
Reference in New Issue
Block a user