Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/Alchemy/Phrasea/Controller/Prod/DownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ public function listDownloadAsync(Request $request)
$this->app->abort(403);
}

if (!empty($request->request->get('type'))) {
$this->app['session']->set('download_name_type', $request->request->get('type'));
}

$lst = $request->request->get('lst');
$ssttid = $request->request->get('ssttid', '');
$subdefs = $request->request->get('obj', []);
Expand Down
9 changes: 5 additions & 4 deletions templates/web/common/dialog_export.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,17 @@
<div class="buttons_line" style="display:{% if choose_export_title %}{% else %}none{% endif %}; text-align: left;">
<p>{{ 'Nom des fichiers a l\'export' | trans }}</p>
<div class="well-small">
<label for="type_{{id}}_original" class="radio">
<input type="radio" name="type" id="type_{{id}}_original"
<label for="type_{{id}}_title" class="radio">
<input type="radio" name="type" id="type_{{id}}_title"
{% if (app['session'].has('download_name_type') and app['session'].get('download_name_type') == "title") or (not app['session'].has('download_name_type') and default_export_title == "title" ) %}
checked
{% endif %}
value="title" />
{{ 'export::titre: titre du documument' | trans }}
</label>
<label for="type_{{id}}_title" class="radio">
<input type="radio" name="type" id="type_{{id}}_title"

<label for="type_{{id}}_original" class="radio">
<input type="radio" name="type" id="type_{{id}}_original"
{% if (app['session'].has('download_name_type') and app['session'].get('download_name_type') == "originalname") or (not app['session'].has('download_name_type') and default_export_title == "original" ) %}
checked
{% endif %}
Expand Down
Loading