person templates responsive breakpoints in content

This commit is contained in:
Mathieu Jaumotte 2021-07-13 12:38:02 +02:00
parent 15f439b43d
commit bdf0ec63d2
3 changed files with 14 additions and 8 deletions

View File

@ -19,8 +19,8 @@
{% block title %}{{ 'Add a person'|trans }}{% endblock title %}
{% block content %}
<div class="col-12 parent" >
<div class="col-md-10 offset-md-1 parent">
<div class="col-12 mt-3" >
<div class="col-md-10 offset-md-1">
{{ form_start(form) }}
<h1>{{ 'Add a person'|trans }}</h1>
@ -41,7 +41,9 @@
{{ form_rest(form) }}
<button class="btn btn-chill-green" type="submit" alt="add a person"><i class="fa fa-plus"></i> {{ 'Add the person'|trans }}</button>
<button class="btn btn-create" type="submit" alt="add a person">
{{ 'Add the person'|trans }}
</button>
{{ form_end(form) }}
</div>

View File

@ -22,6 +22,8 @@
{% block personcontent %}
<div class="person-edit">
<div class="row justify-content-center">
<div class="col-md-10">
<h1>{{ 'Update details for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName|capitalize } ) }}</h1>
@ -138,9 +140,11 @@
{{ form_end(form) }}
</div>
</div>
</div>
{% endblock personcontent %}
{% block js %}
<script type="text/javascript" src="{{ asset('build/person.js') }}"></script>
{{ encore_entry_link_tags('person') }}
{% endblock js %}

View File

@ -38,7 +38,7 @@ This view should receive those arguments:
{% block personcontent %}
<div class="person-view">
<div class="row justify-content-center">
<div class="col-10">
<div class="col-md-10">
<div class="row">
{% if person.memo is not empty and chill_person.fields.memo == 'visible' %}
@ -248,7 +248,7 @@ This view should receive those arguments:
</div>
{% if is_granted('CHILL_PERSON_UPDATE', person) %}
<ul class="col-10 sticky-form-buttons record_actions ">
<ul class="col-md-10 sticky-form-buttons record_actions ">
<li>
<a class="btn btn-update" href="{{ path('chill_person_general_edit', { 'person_id': person.id }) }}">
{{ 'Edit'|trans }}