search page, content position

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

View File

@@ -18,29 +18,31 @@
{% block title title|trans %}
{% block content %}
<div style="margin-right: 2em; margin-left: 2em;">
<h1>{{ title|trans }}</h1>
{{ form_start(form) }}
{% for f in form %}
{% if f.vars.name != 'submit' %}
{{ form_row(f) }}
{% endif %}
{% endfor %}
<ul class="record_actions">
<li>
{{ form_widget(form.submit, { 'attr' : { 'class': 'btn btn-create change-icon' } } ) }}
</li>
</ul>
{{ form_end(form) }}
{% block content %}
<div class="search-list my-5">
<div class="row justify-content-center">
<div class="col-md-10 col-xxl">
<h1>{{ title|trans }}</h1>
{{ form_start(form) }}
{% for f in form %}
{% if f.vars.name != 'submit' %}
{{ form_row(f) }}
{% endif %}
{% endfor %}
<ul class="record_actions">
<li>
{{ form_widget(form.submit, { 'attr' : { 'class': 'btn btn-create change-icon' } } ) }}
</li>
</ul>
{{ 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>
{% endblock %}
</div>
{% endblock %}