search page, content position

This commit is contained in:
Mathieu Jaumotte 2021-07-20 16:22:16 +02:00
parent ea734e2a9e
commit afd4ac27ea
7 changed files with 62 additions and 46 deletions

View File

@ -20,8 +20,9 @@
{% block title title|trans %}
{% block content %}
<div style="margin-right: 2em; margin-left: 2em;">
<div class="search-list my-5">
<div class="row justify-content-center">
<div class="col-md-10 col-xxl">
<h1>{{ title|trans }}</h1>
@ -42,5 +43,6 @@
{{ form_end(form) }}
</div>
</div>
</div>
{% endblock %}

View File

@ -19,7 +19,13 @@
{% set _search_pattern = pattern %}
{% block content %}
<div class="search-list my-5">
<div class="row justify-content-center">
<div class="col-md-10 col-xxl">
<p class="col-8 centered error">{{ message }}</p>
<p class="error">{{ message }}</p>
</div>
</div>
</div>
{% endblock %}

View File

@ -21,13 +21,15 @@
{% block title %}{{ 'Search %pattern%'|trans({ '%pattern%' : pattern }) }}{% endblock title %}
{% block content %}
<div class="search-list my-5">
<div class="row justify-content-center">
<div class="col-md-10 col-xxl">
<div class="col-12 parent" >
<div class="col-10 push-1 parent">
{% for result in results %}
{{ result|raw }}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -3,7 +3,7 @@
<sticky-nav></sticky-nav>
<div class="row justify-content-end">
<div class="col-md-11">
<div class="col-md-11 col-xxl">
<h1 v-if="accompanyingCourse.step === 'DRAFT'">{{ $t('course.title.draft') }}</h1>
<h1 v-else>{{ $t('course.title.active') }}</h1>

View File

@ -7,6 +7,9 @@
{% endblock %}
{% block content %}
<div class="accompanyingcourse-index">
<div class="row justify-content-center">
<div class="col-md-10 col-xxl">
{% if 'DRAFT' == accompanyingCourse.step %}
<div class="col-8 centered error flash_message">
@ -62,6 +65,7 @@
{% endif %}
<h2>{{ 'Associated peoples'|trans }}</h2>
<div class="flex-table">
{% for p in accompanyingCourse.participations %}
{% if p.enddate is null %}
@ -346,7 +350,6 @@
{% endfor %}
</div>
{% block contentActivity %}
{% set person = null %}
{% include 'ChillActivityBundle:Activity:list.html.twig' with {'context': 'accompanyingCourse', 'context': 'accompanyingCourse'} %}
@ -354,6 +357,10 @@
{# ==> insert accompanyingCourse vue component #}
<div id="accompanying-course"></div>
</div>
</div>
</div>
{% endblock %}

View File

@ -79,9 +79,8 @@
</ul>
<ul class="record_actions">
<li>
<a href="{{ path('chill_person_view', { 'person_id' : person.id }) }}" class="btn btn-chill-blue" />
<i class="fa fa-folder-open-o"></i> {{ 'Open person file'|trans }}
</a>
<a href="{{ path('chill_person_view', { 'person_id' : person.id }) }}" class="btn btn-show"
title="{{ 'Open person file'|trans }}" /></a>
</li>
<li>
<a href="{{ path('chill_person_accompanying_period_list', { 'person_id' : person.id }) }}" class="btn btn-chill-green" title="{{ 'See accompanying periods'|trans }}"/>

View File

@ -135,7 +135,7 @@ Reset: 'Remise à zéro'
'Person search results': 'Recherche de personnes'
Person search results by phonenumber: Recherche de personnes par numéro de téléphone
'Search within persons': 'Recherche parmi les personnes'
Open person file: Ouvrir
Open person file: Ouvrir le dossier de la personne
and %number% other: '{0} et aucun autre| {1} et une autre |]1, Inf] et %number% autres'
'%total% persons matching the search pattern:': '{0} Aucune personne ne correspond aux termes de recherche : | {1} Une personne a été trouvée par la recherche : | ]1,Inf] %total% personnes correspondent aux termes de recherche :'
'Last opening since %last_opening%': 'Dernière ouverture le %last_opening%.'