improve layout classes

This commit is contained in:
2021-07-22 22:09:31 +02:00
parent 0cd9dc6028
commit c9562ebdf7
7 changed files with 84 additions and 84 deletions

View File

@@ -19,37 +19,34 @@
{% block title %}{{ 'Add a person'|trans }}{% endblock title %}
{% block content %}
<div class="person-new col-12 my-5">
<div class="row justify-content-center">
<div class="col-md-10 col-xxl">
{{ form_start(form) }}
<h1>{{ 'Add a person'|trans }}</h1>
{{ form_row(form.firstName, { 'label' : 'First name'|trans }) }}
{{ form_row(form.lastName, { 'label' : 'Last name'|trans }) }}
{% if form.altNames is defined %}
{{ form_widget(form.altNames) }}
{% endif %}
{{ form_row(form.birthdate, { 'label' : 'Date of birth'|trans }) }}
{{ form_row(form.gender, { 'label' : 'Gender'|trans }) }}
{{ form_row(form.creation_date, { 'label' : 'Creation date'|trans }) }}
{{ form_rest(form) }}
<button class="btn btn-create" type="submit" alt="add a person">
{{ 'Add the person'|trans }}
</button>
{{ form_end(form) }}
</div>
</div>
<div class="col-md-10 col-xxl person-new">
{{ form_start(form) }}
<h1>{{ 'Add a person'|trans }}</h1>
{{ form_row(form.firstName, { 'label' : 'First name'|trans }) }}
{{ form_row(form.lastName, { 'label' : 'Last name'|trans }) }}
{% if form.altNames is defined %}
{{ form_widget(form.altNames) }}
{% endif %}
{{ form_row(form.birthdate, { 'label' : 'Date of birth'|trans }) }}
{{ form_row(form.gender, { 'label' : 'Gender'|trans }) }}
{{ form_row(form.creation_date, { 'label' : 'Creation date'|trans }) }}
{{ form_rest(form) }}
<button class="btn btn-create" type="submit" alt="add a person">
{{ 'Add the person'|trans }}
</button>
{{ form_end(form) }}
</div>
{% endblock content %}

View File

@@ -23,7 +23,7 @@
{% endblock %}
{% block layout_wvm_content %}
<div class="row justify-content-center my-5">
<div class="row justify-content-center">
<div class="col-md-10 col-xxl">
{% block personcontent %}{# block personcontent empty #}{% endblock %}
</div>