fix homepage content cols

This commit is contained in:
Mathieu Jaumotte 2021-03-21 00:01:48 +01:00
parent 2916babe1c
commit b327a3fbfa
2 changed files with 9 additions and 13 deletions

View File

@ -138,22 +138,18 @@
{% endfor %} {% endfor %}
{% block content %} {% block content %}
<div class="row justify-content-center"> <div class="col-8 mt-5 flash_message">
<div class="col-8 mt-5 flash_message"> <h2>{{ 'Search'|trans }}</h2>
<h2>{{ 'Search'|trans }}</h2>
<form action="{{ path('chill_main_search') }}" method="get"> <form action="{{ path('chill_main_search') }}" method="get">
<input class="form-control form-control-lg" name="q" type="search" placeholder="{{ 'Search persons, ...'|trans }}" /> <input class="form-control form-control-lg" name="q" type="search" placeholder="{{ 'Search persons, ...'|trans }}" />
<center> <center>
<button type="submit" class="btn btn-lg btn-warning mt-2"><i class="fa fa-fw fa-search"></i> {{ 'Search'|trans }}</button> <button type="submit" class="btn btn-lg btn-warning mt-2"><i class="fa fa-fw fa-search"></i> {{ 'Search'|trans }}</button>
</center> </center>
</form> </form>
</div>
</div> </div>
<div class="homepage_widget">
{{ chill_widget('homepage', {} ) }} {{ chill_widget('homepage', {} ) }}
</div>
{% endblock %} {% endblock %}
</div> </div>
</div> </div>

View File

@ -1,5 +1,5 @@
{% if is_granted('CHILL_PERSON_CREATE') %} {% if is_granted('CHILL_PERSON_CREATE') %}
<div class="grid-8 mb-5 text-center"> <div class="col-8 mb-5 text-center homepage_widget">
<a href="{{ path('chill_person_new') }}"> <a href="{{ path('chill_person_new') }}">
<div class="btn btn-lg btn-primary mt-4" style="float: inherit;"> <div class="btn btn-lg btn-primary mt-4" style="float: inherit;">
{{ 'Add a person'|trans }} {{ 'Add a person'|trans }}