1<?php 2 3use Fisharebest\Webtrees\GedcomRecord; 4use Fisharebest\Webtrees\I18N; 5 6/** 7 * @var string $default 8 * @var array<string,string> $options 9 * @var GedcomRecord $record 10 * @var string $title 11 */ 12 13?> 14 15<h2 class="wt-page-title"><?= $title ?></h2> 16 17<form method="post" class="wt-page-options wt-page-options-clippings d-print-none"> 18 <?= csrf_field() ?> 19 <input type="hidden" name="xref" value="<?= e($record->xref()) ?>"> 20 21 <div class="row form-group"> 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' => $default]) ?> 27 </div> 28 </div> 29 30 <div class="row form-group"> 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</form> 45