1 {% extends 'page.html.twig' %}
4 <div class="ui icon info visible message">
5 <i class="info circle blue icon" aria-hidden="true"></i>
7 {{ _T("Each selected export will be stored into a separate file in the exports directory.") }}
10 <form class="form" action="{{ url_for("doExport") }}" method="post" enctype="multipart/form-data">
12 {% set written_exports = flash.getMessage('written_exports') %}
14 {% if written is iterable and written|length > 0 %}
15 <div class="ui icon success visible message with-transition">
16 <i class="download icon" aria-hidden="true"></i>
18 <p>{{ _T('The following files have been written on disk:') }}</p>
20 {% for ex in written %}
28 {% if existing|length > 0 %}
29 <div class="ui basic fitted segment">
30 <div class="ui styled fluid accordion row">
31 <div class="active title">
32 <i class="jsonly displaynone icon dropdown" aria-hidden="true"></i>
33 {{ _T('Existing exports') }}
35 <div class="active content field">
36 <p>{{ _T('The following exports already seems to exist on the disk:') }}</p>
37 <table class="listing ui celled striped table">
40 <th class="id_row">#</th>
41 <th>{{ _T('Name') }}</th>
42 <th>{{ _T('Date') }}</th>
43 <th>{{ _T('Size') }}</th>
44 <th class="actions_row"></th>
48 {% for export in existing %}
54 <a href="{{ url_for("getCsv", {"type": "export", "file": export.name}) }}">{{ export.name }}</a>
56 <td data-title="{{ _T('Date') }}">
59 <td data-title="{{ _T('Size') }}">
62 <td class="actions_row">
64 href="{{ url_for("removeCsv", {"type": "export", "file": export.name}) }}"
67 <i class="ui trash red icon tooltip" aria-hidden="true"></i>
68 <span class="ui special popup">{{ _T('Remove \'%file\' from disk')|replace({'%file': export.name}) }}</span>
79 <div class="ui basic fitted segment">
80 <div class="ui styled fluid accordion row">
81 <div class="active title">
82 <i class="jsonly displaynone icon dropdown" aria-hidden="true"></i>
83 {{ _T('Parameted exports') }}
85 <div class="active content field">
86 {% if parameted|length > 0 %}
87 <p>{{ _T('Which parameted export(s) do you want to run?') }}</p>
88 <table class="listing ui celled striped table">
91 <th class="small_head"/>
92 <th>{{ _T('Name') }}</th>
93 <th>{{ _T('Description') }}</th>
97 {% for param in parameted %}
100 <input type="checkbox" name="export_parameted[]" id="{{ param.id }}" value="{{ param.id }}"/>
102 <td data-scope="row">
103 <label for="{{ param.id }}">{{ param.name }}</label>
105 <td data-title="{{ _T('Description') }}">
106 <label for="{{ param.id }}">{{ param.description }}</label>
113 <p>{{ _T('No parameted exports are available.') }}</p>
118 <div class="ui basic fitted segment">
119 <div class="ui styled fluid accordion row">
120 <div class="active title">
121 <i class="jsonly displaynone icon dropdown" aria-hidden="true"></i>
122 {{ _T('Galette tables exports') }}
124 <div class="active content field">
125 <p>{{ _T('Additionnaly, which table(s) do you want to export?') }}</p>
126 <table class="listing same ui celled striped table">
129 <th class="small_head"/>
130 <th>{{ _T('Table name') }}</th>
134 {% for table in tables_list %}
137 <input type="checkbox" name="export_tables[]" id="{{ table }}" value="{{ table }}"/>
140 <label for="{{ table }}">{{ table }}</label>
149 <div class="ui basic center aligned segment">
150 <button type="submit" name="valid" class="ui labeled icon primary button">
151 <i class="download icon" aria-hidden="true"></i>
154 {% include "components/forms/csrf.html.twig" %}
159 {% block javascripts %}
160 <script type="text/javascript">
162 {% include "elements/js/removal.js.twig" with {
163 single_action: "true"