xref: /webtrees/resources/views/modules/clippings/add-options.phtml (revision 0f5fd22fb1857ad87285e5357592434d47b1f3bf)
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    <?= csrf_field() ?>
18    <input type="hidden" name="xref" value="<?= e($record->xref()) ?>">
19
20    <div class="row form-group">
21        <div class="col-sm-3 col-form-label wt-page-options-label">
22            <?= I18N::translate('Add to the clippings cart') ?>
23        </div>
24        <div class="col-sm-9 wt-page-options-value">
25            <?= view('components/radios', ['name' => 'option', 'options' => $options, 'selected' => key($options)]) ?>
26        </div>
27    </div>
28
29    <div class="row form-group">
30        <div class="col-sm-3 wt-page-options-label"></div>
31        <div class="col-sm-9 wt-page-options-value">
32            <button type="submit" class="btn btn-primary">
33                <?= view('icons/save') ?>
34                <?= /* I18N: A button label. */ I18N::translate('continue') ?>
35            </button>
36
37            <a class="btn btn-secondary" href="<?= e($record->url()) ?>">
38                <?= view('icons/cancel') ?>
39                <?= /* I18N: A button label. */ I18N::translate('cancel') ?>
40            </a>
41        </div>
42    </div>
43</form>
44