xref: /webtrees/resources/views/modules/clippings/download.phtml (revision df46d43da3a4c72efd0428881e933e94412cd945)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4use Fisharebest\Webtrees\Tree;
5
6/**
7 * @var array<string> $download_filenames
8 * @var string        $module
9 * @var string        $title
10 * @var Tree          $tree
11 * @var bool          $zip_available
12 */
13
14?>
15
16<h2 class="wt-page-title"><?= $title ?></h2>
17
18<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">
19    <?= csrf_field() ?>
20
21    <div class="row form-group">
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 form-group">
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</form>
45