xref: /webtrees/resources/views/modules/clippings/download.phtml (revision ac71572d8462e396ed5a307f05b29381e49f9e6e)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Tree;
7
8/**
9 * @var array<string> $download_filenames
10 * @var string        $module
11 * @var string        $title
12 * @var Tree          $tree
13 * @var bool          $zip_available
14 */
15
16?>
17
18<h2 class="wt-page-title"><?= $title ?></h2>
19
20<form method="post" action="<?= e(route('module', ['module' => $module, 'action' => 'Download', 'tree' => $tree->name()])) ?>" class="wt-page-options wt-page-options-clippings-download hidden-print">
21    <div class="row">
22        <div class="col-sm-3 col-form-label wt-page-options-label">
23            <?= I18N::translate('Export preferences') ?>
24        </div>
25        <div class="col-sm-9 wt-page-options-value">
26            <?= view('admin/gedcom-export-options', ['download_filenames' => $download_filenames, 'tree' => $tree, 'zip_available' => $zip_available]) ?>
27        </div>
28    </div>
29
30    <div class="row">
31        <div class="col-sm-3 col-form-label wt-page-options-label">
32        </div>
33        <div class="col-sm-9 wt-page-options-value">
34            <button type="submit" class="btn btn-primary">
35                <?= view('icons/download') ?>
36                <?= I18N::translate('download') ?>
37            </button>
38            <a href="<?= e(route('module', ['module' => $module, 'action' => 'Show', 'tree' => $tree->name()])) ?>" class="btn btn-secondary">
39                <?= view('icons/cancel') ?>
40                <?= I18N::translate('cancel') ?>
41            </a>
42        </div>
43    </div>
44
45    <?= csrf_field() ?>
46</form>
47