xref: /webtrees/resources/views/modules/clippings/download.phtml (revision b108908174bafa493667672cfb8e9510f0750f22)
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    <div class="row">
20        <div class="col-sm-3 col-form-label wt-page-options-label">
21            <?= I18N::translate('Export preferences') ?>
22        </div>
23        <div class="col-sm-9 wt-page-options-value">
24            <?= view('admin/gedcom-export-options', ['download_filenames' => $download_filenames, 'tree' => $tree, 'zip_available' => $zip_available]) ?>
25        </div>
26    </div>
27
28    <div class="row">
29        <div class="col-sm-3 col-form-label wt-page-options-label">
30        </div>
31        <div class="col-sm-9 wt-page-options-value">
32            <button type="submit" class="btn btn-primary">
33                <?= view('icons/download') ?>
34                <?= I18N::translate('download') ?>
35            </button>
36            <a href="<?= e(route('module', ['module' => $module, 'action' => 'Show', 'tree' => $tree->name()])) ?>" class="btn btn-secondary">
37                <?= view('icons/cancel') ?>
38                <?= I18N::translate('cancel') ?>
39            </a>
40        </div>
41    </div>
42
43    <?= csrf_field() ?>
44</form>
45