mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
layout content position for fullwidth pages
This commit is contained in:
parent
c9562ebdf7
commit
7ac61002b0
@ -20,25 +20,25 @@
|
|||||||
{% block title title|trans %}
|
{% block title title|trans %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="search-list my-5">
|
<div class="col-md-10 col-xxl search-list">
|
||||||
|
|
||||||
<h1>{{ title|trans }}</h1>
|
<h1>{{ title|trans }}</h1>
|
||||||
|
|
||||||
{{ form_start(form) }}
|
{{ form_start(form) }}
|
||||||
|
|
||||||
{% for f in form %}
|
{% for f in form %}
|
||||||
{% if f.vars.name != 'submit' %}
|
{% if f.vars.name != 'submit' %}
|
||||||
{{ form_row(f) }}
|
{{ form_row(f) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
<li>
|
<li>
|
||||||
{{ form_widget(form.submit, { 'attr' : { 'class': 'btn btn-create change-icon' } } ) }}
|
{{ form_widget(form.submit, { 'attr' : { 'class': 'btn btn-create change-icon' } } ) }}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{{ form_end(form) }}
|
{{ form_end(form) }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
{% set _search_pattern = pattern %}
|
{% set _search_pattern = pattern %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="search-list my-5">
|
<div class="col-md-10 col-xxl search-list">
|
||||||
|
|
||||||
<p class="error">{{ message }}</p>
|
<p class="error">{{ message }}</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -21,11 +21,11 @@
|
|||||||
{% block title %}{{ 'Search %pattern%'|trans({ '%pattern%' : pattern }) }}{% endblock title %}
|
{% block title %}{{ 'Search %pattern%'|trans({ '%pattern%' : pattern }) }}{% endblock title %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="search-list my-5">
|
<div class="col-md-10 col-xxl search-list">
|
||||||
|
|
||||||
{% for result in results %}
|
{% for result in results %}
|
||||||
{{ result|raw }}
|
{{ result|raw }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
{% extends "@ChillMain/layout.html.twig" %}
|
{% extends "@ChillMain/layout.html.twig" %}
|
||||||
|
|
||||||
{% block title %}{{ 'Add a person'|trans }}{% endblock title %}
|
{% block title %}{{ 'Add a person'|trans }}{% endblock title %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-10 col-xxl person-new">
|
<div class="col-md-10 col-xxl person-new">
|
||||||
|
|
||||||
@ -47,6 +47,5 @@
|
|||||||
|
|
||||||
{{ form_end(form) }}
|
{{ form_end(form) }}
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
@ -17,80 +17,75 @@
|
|||||||
{% extends "@ChillMain/layout.html.twig" %}
|
{% extends "@ChillMain/layout.html.twig" %}
|
||||||
|
|
||||||
{% block title %}{{ 'Alreay existing person'|trans }}{% endblock title %}
|
{% block title %}{{ 'Alreay existing 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">
|
|
||||||
|
|
||||||
<div class="alert alert-warning flash_message">
|
|
||||||
<span>
|
|
||||||
{% transchoice alternatePersons|length with { '%nb%': alternatePersons|length } %}
|
|
||||||
%nb% person with similar name. Please verify that this is a new person
|
|
||||||
{% endtranschoice %}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if alternatePersons is not empty %}
|
|
||||||
<table class="table table-bordered border-dark">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="chill-red">{{ 'Name'|trans }}</th>
|
|
||||||
<th class="chill-green">{{ 'Date of birth'|trans }}</th>
|
|
||||||
<th class="chill-orange">{{ 'Nationality'|trans }}</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{% for person in alternatePersons %}
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<a href="{{ path('chill_person_view', {'person_id': person.id } ) }}">
|
|
||||||
{{ person|chill_entity_render_string }}{% apply spaceless %}
|
|
||||||
{% if person.isOpen == false %}
|
|
||||||
<i class="icon-lock"></i>
|
|
||||||
{% endif %}
|
|
||||||
{% endapply %}
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
<td>{% if person.birthdate is not null %}{{ person.birthdate|format_date('long') }}{% else %} {% endif %}</td>
|
|
||||||
<td>
|
|
||||||
{% if person.nationality is not null %}{{ person.nationality.name|localize_translatable_string }}{% else %}{{ 'Without nationality'|trans }}{% endif %}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div id="person_details" class="my-5">
|
|
||||||
{{ form_start(form) }}
|
|
||||||
<h2>{{ 'You will create this person'|trans }}</h2>
|
|
||||||
<dl>
|
|
||||||
<dt>{{ 'Name'|trans }}</dt>
|
|
||||||
<dd>{{ person|chill_entity_render_string }}</dd>
|
|
||||||
|
|
||||||
<dt>{{ 'Date of birth'|trans }}</dt>
|
|
||||||
<dd>{{ birthdate|format_date('long')|default( 'Unknown date of birth'|trans ) }}</dd>
|
|
||||||
|
|
||||||
<dt>{{ 'Gender'|trans }}</dt>
|
|
||||||
<dd>{{ gender|trans }}</dd>
|
|
||||||
|
|
||||||
<dt>{{ 'Creation date'|trans }}</dt>
|
|
||||||
<dd>{{ creation_date|format_date('long') }}</dd>
|
|
||||||
|
|
||||||
{% if form.altNames is defined %}
|
|
||||||
{# mark as rendered #}
|
|
||||||
{{ form_widget(form.altNames) }}
|
|
||||||
{% endif %}
|
|
||||||
</dl>
|
|
||||||
|
|
||||||
{{ form_rest(form) }}
|
|
||||||
<button class="btn btn-submit" type="submit"><i class="fa fa-check"></i> {{ 'Confirm the creation'|trans }}</button>
|
|
||||||
{{ form_end(form) }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
{% block content %}
|
||||||
|
<div class="col-md-10 col-xxl person-new">
|
||||||
|
|
||||||
|
<div class="alert alert-warning flash_message">
|
||||||
|
<span>
|
||||||
|
{% transchoice alternatePersons|length with { '%nb%': alternatePersons|length } %}
|
||||||
|
%nb% person with similar name. Please verify that this is a new person
|
||||||
|
{% endtranschoice %}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
{% if alternatePersons is not empty %}
|
||||||
|
<table class="table table-bordered border-dark">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="chill-red">{{ 'Name'|trans }}</th>
|
||||||
|
<th class="chill-green">{{ 'Date of birth'|trans }}</th>
|
||||||
|
<th class="chill-orange">{{ 'Nationality'|trans }}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for person in alternatePersons %}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a href="{{ path('chill_person_view', {'person_id': person.id } ) }}">
|
||||||
|
{{ person|chill_entity_render_string }}{% apply spaceless %}
|
||||||
|
{% if person.isOpen == false %}
|
||||||
|
<i class="icon-lock"></i>
|
||||||
|
{% endif %}
|
||||||
|
{% endapply %}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td>{% if person.birthdate is not null %}{{ person.birthdate|format_date('long') }}{% else %} {% endif %}</td>
|
||||||
|
<td>
|
||||||
|
{% if person.nationality is not null %}{{ person.nationality.name|localize_translatable_string }}{% else %}{{ 'Without nationality'|trans }}{% endif %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<div id="person_details" class="my-5">
|
||||||
|
{{ form_start(form) }}
|
||||||
|
<h2>{{ 'You will create this person'|trans }}</h2>
|
||||||
|
<dl>
|
||||||
|
<dt>{{ 'Name'|trans }}</dt>
|
||||||
|
<dd>{{ person|chill_entity_render_string }}</dd>
|
||||||
|
|
||||||
|
<dt>{{ 'Date of birth'|trans }}</dt>
|
||||||
|
<dd>{{ birthdate|format_date('long')|default( 'Unknown date of birth'|trans ) }}</dd>
|
||||||
|
|
||||||
|
<dt>{{ 'Gender'|trans }}</dt>
|
||||||
|
<dd>{{ gender|trans }}</dd>
|
||||||
|
|
||||||
|
<dt>{{ 'Creation date'|trans }}</dt>
|
||||||
|
<dd>{{ creation_date|format_date('long') }}</dd>
|
||||||
|
|
||||||
|
{% if form.altNames is defined %}
|
||||||
|
{# mark as rendered #}
|
||||||
|
{{ form_widget(form.altNames) }}
|
||||||
|
{% endif %}
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
{{ form_rest(form) }}
|
||||||
|
<button class="btn btn-submit" type="submit"><i class="fa fa-check"></i> {{ 'Confirm the creation'|trans }}</button>
|
||||||
|
{{ form_end(form) }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
@ -31,15 +31,13 @@
|
|||||||
{% if person is not null %}
|
{% if person is not null %}
|
||||||
{% block personcontent %}
|
{% block personcontent %}
|
||||||
<div class="tasks">
|
<div class="tasks">
|
||||||
{% include 'ChillTaskBundle:SingleTask:_list.html.twig' %}
|
{% include 'ChillTaskBundle:SingleTask:_list.html.twig' %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-10 col-xxl">
|
<div class="col-md-10 col-xxl tasks">
|
||||||
<div class="tasks my-5">
|
{% include 'ChillTaskBundle:SingleTask:_list.html.twig' %}
|
||||||
{% include 'ChillTaskBundle:SingleTask:_list.html.twig' %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user