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