mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
bootstrap styles in export section
This commit is contained in:
parent
7b64269bb5
commit
340310be62
@ -1,20 +0,0 @@
|
|||||||
.container-export {
|
|
||||||
margin-left: 1rem;
|
|
||||||
margin-right: 1rem;
|
|
||||||
|
|
||||||
.export-list {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
.export-list__element {
|
|
||||||
min-width: 18rem;
|
|
||||||
max-width: 20rem;
|
|
||||||
padding: 1rem;
|
|
||||||
margin: 1rem;
|
|
||||||
flex-grow: 1;
|
|
||||||
|
|
||||||
border: 1px solid var(--chill-gray);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
require('./export-list.scss');
|
|
@ -22,19 +22,18 @@
|
|||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container-export">
|
<div class="col-md-10">
|
||||||
<h1>{{ 'Exports list'|trans }}</h1>
|
<h1>{{ 'Exports list'|trans }}</h1>
|
||||||
|
|
||||||
<div>
|
<div class="container mt-4">
|
||||||
{% for group, exports in grouped_exports %}{% if group != '_' %}
|
{% for group, exports in grouped_exports %}{% if group != '_' %}
|
||||||
<h2>{{ group }}</h2>
|
<h2>{{ group }}</h2>
|
||||||
|
|
||||||
<div class="export-list">
|
<div class="row">
|
||||||
{% for export_alias, export in exports %}
|
{% for export_alias, export in exports %}
|
||||||
<div class="export-list__element">
|
<div class="col-6 col-md-4 mb-3">
|
||||||
<h2>{{ export.title|trans }}</h2>
|
<h2>{{ export.title|trans }}</h2>
|
||||||
<p>{{ export.description|trans }}</p>
|
<p>{{ export.description|trans }}</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a class="btn btn-action" href="{{ path('chill_main_export_new', { 'alias': export_alias } ) }}">
|
<a class="btn btn-action" href="{{ path('chill_main_export_new', { 'alias': export_alias } ) }}">
|
||||||
{{ 'Create an export'|trans }}
|
{{ 'Create an export'|trans }}
|
||||||
@ -49,20 +48,24 @@
|
|||||||
<h2>{{ 'Ungrouped exports'|trans }}</h2>
|
<h2>{{ 'Ungrouped exports'|trans }}</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="export-list">
|
</div>
|
||||||
{% for export_alias,export in grouped_exports['_'] %}
|
<div class="container">
|
||||||
<div class="export-list__element">
|
|
||||||
|
<div class="row">
|
||||||
|
{% for export_alias,export in grouped_exports['_'] %}
|
||||||
|
|
||||||
|
<div class="col-6 col-md-4 mb-3">
|
||||||
<h2>{{ export.title|trans }}</h2>
|
<h2>{{ export.title|trans }}</h2>
|
||||||
<p>{{ export.description|trans }}</p>
|
<p>{{ export.description|trans }}</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a class="btn btn-action" href="{{ path('chill_main_export_new', { 'alias': export_alias } ) }}">
|
<a class="btn btn-action" href="{{ path('chill_main_export_new', { 'alias': export_alias } ) }}">
|
||||||
{{ 'Create an export'|trans }}
|
{{ 'Create an export'|trans }}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
|
||||||
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -103,6 +103,9 @@
|
|||||||
|
|
||||||
{% if form.children.export.children.export.children|length > 0 %}
|
{% if form.children.export.children.export.children|length > 0 %}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
div#export_export_fields { column-count: 2; }
|
||||||
|
</style>
|
||||||
<section class="parameter">
|
<section class="parameter">
|
||||||
<h2>
|
<h2>
|
||||||
{{ 'Export parameters'|trans }}
|
{{ 'Export parameters'|trans }}
|
||||||
|
@ -16,35 +16,43 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#}
|
#}
|
||||||
|
|
||||||
{% extends "@ChillMain/layoutWithVerticalMenu.html.twig" %}
|
{% extends "@ChillMain/layout.html.twig" %}
|
||||||
|
|
||||||
{% block title %}{{ export.title|trans }}{% endblock %}
|
{% block title %}{{ export.title|trans }}{% endblock %}
|
||||||
|
|
||||||
{% block layout_wvm_content %}
|
{% block content %}
|
||||||
|
<div class="col-md-10">
|
||||||
<h1>{{ export.title|trans }}</h1>
|
|
||||||
|
|
||||||
<p>{{ export.description|trans }}</p>
|
|
||||||
|
|
||||||
{{ form_start(form) }}
|
|
||||||
|
|
||||||
<h2>{{ 'Pick centers'|trans }}</h2>
|
|
||||||
|
|
||||||
<p>{{ 'The export will contains only data from the picked centers.'|trans }}
|
|
||||||
{{ 'This will eventually restrict your possibilities in filtering the data.'|trans }}</p>
|
|
||||||
|
|
||||||
{{ form_widget(form.centers.c) }}
|
|
||||||
|
|
||||||
{% if form.centers.children.g is defined %}
|
|
||||||
|
|
||||||
<h3>{{ 'Pick aggregated centers'|trans }}</h3>
|
<h1>{{ export.title|trans }}</h1>
|
||||||
|
|
||||||
{% for f in form.centers.children.g.children %}
|
<p>{{ export.description|trans }}</p>
|
||||||
{{ form_row(f) }}
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'btn btn-action btn-create' }, 'label' : 'Go to export options' } ) }}</p>
|
{{ form_start(form) }}
|
||||||
{{ form_end(form) }}
|
|
||||||
|
<section class="center mb-4">
|
||||||
|
|
||||||
|
<h2>{{ 'Pick centers'|trans }}</h2>
|
||||||
|
|
||||||
|
<p>{{ 'The export will contains only data from the picked centers.'|trans }}
|
||||||
|
{{ 'This will eventually restrict your possibilities in filtering the data.'|trans }}</p>
|
||||||
|
|
||||||
|
{{ form_widget(form.centers.c) }}
|
||||||
|
|
||||||
|
{% if form.centers.children.g is defined %}
|
||||||
|
|
||||||
|
<h3>{{ 'Pick aggregated centers'|trans }}</h3>
|
||||||
|
|
||||||
|
{% for f in form.centers.children.g.children %}
|
||||||
|
{{ form_row(f) }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'btn btn-action btn-create' }, 'label' : 'Go to export options' } ) }}</p>
|
||||||
|
|
||||||
|
{{ form_end(form) }}
|
||||||
|
|
||||||
{% endblock layout_wvm_content %}
|
</div>
|
||||||
|
{% endblock content %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user