Feature: [saved export] First list of saved exports

This commit is contained in:
2022-11-08 16:57:49 +01:00
parent ccb2cd0295
commit aec4c52567
5 changed files with 262 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
{% extends "@ChillMain/layout.html.twig" %}
{% block title %}{{ 'saved_export.My saved exports'|trans }}{% endblock %}
{% block content %}
<div class="col-md-10">
<h1>{{ block('title') }}</h1>
<div class="container mt-4">
{% for group, saveds in grouped_exports %}
{% if group != '_' %}
<h2 class="display-6">{{ group }}</h2>
<div class="row grouped">
{% for s in saveds %}
<div class="col-6 col-md-4 mb-3">
<h2>{{ s.saved.title }}</h2>
<p>{{ s.export.title|trans }}</p>
<div>
{{ s.saved.description|chill_markdown_to_html }}
</div>
</div>
{% endfor %}
</div>
{% endif %}
{% endfor %}
{% if grouped_exports|keys|length > 1 and grouped_exports['_']|length > 0 %}
<h2 class="display-6">{{ 'Ungrouped exports'|trans }}</h2>
{% endif %}
<div class="row ungrouped">
{% for saveds in grouped_exports['_']|default([]) %}
{% for s in saveds %}
<div class="col-6 col-md-4 mb-3">
<div class="col-6 col-md-4 mb-3">
<h2>{{ s.saved.title }}</h2>
<p>{{ s.export.title|trans }}</p>
<div>
{{ s.saved.description|chill_markdown_to_html }}
</div>
</div>
</div>
{% endfor %}
{% endfor %}
</div>
</div>
</div>
{% endblock %}