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