xref: /webtrees/resources/views/modules/clippings/add-options.phtml (revision 00b1984e374faddab4698e73088f0c964e529b65)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5?>
6
7<h2 class="wt-page-title"><?= $title ?></h2>
8
9<form method="post" class="wt-page-options wt-page-options-clippings d-print-none">
10    <?= csrf_field() ?>
11    <input type="hidden" name="xref" value="<?= e($record->xref()) ?>">
12
13    <div class="row form-group">
14        <div class="col-sm-3 col-form-label wt-page-options-label">
15            <?= I18N::translate('Add to the clippings cart') ?>
16        </div>
17        <div class="col-sm-9 wt-page-options-value">
18            <?= view('components/radios', ['name' => 'option', 'options' => $options, 'selected' => $default]) ?>
19        </div>
20    </div>
21
22    <div class="row form-group">
23        <div class="col-sm-3 wt-page-options-label"></div>
24        <div class="col-sm-9 wt-page-options-value">
25            <button type="submit" class="btn btn-primary">
26                <?= view('icons/save') ?>
27                <?= /* I18N: A button label. */ I18N::translate('continue') ?>
28            </button>
29
30            <a class="btn btn-secondary" href="<?= e($record->url()) ?>">
31                <?= view('icons/cancel') ?>
32                <?= /* I18N: A button label. */ I18N::translate('cancel') ?>
33            </a>
34        </div>
35    </div>
36</form>
37