xref: /webtrees/resources/views/modules/clippings/download.phtml (revision d97083fe315dad9b7d0a150d4fb5f563e57d1869)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4use Fisharebest\Webtrees\Tree;
5
6/**
7 * @var string $module
8 * @var string $title
9 * @var Tree   $tree
10 */
11
12?>
13
14<h2 class="wt-page-title"><?= $title ?></h2>
15
16<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">
17    <?= csrf_field() ?>
18
19    <div class="row form-group">
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', ['tree' => $tree]) ?>
25        </div>
26    </div>
27
28    <div class="row form-group">
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</form>
43