1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 5d70512abSGreg Roachuse Fisharebest\Webtrees\I18N; 6d70512abSGreg Roach 77f7be5ebSGreg Roach/** 87f7be5ebSGreg Roach * @var string $title 97f7be5ebSGreg Roach * @var string $description 107f7be5ebSGreg Roach * @var string $destination 117f7be5ebSGreg Roach * @var string $format 127f7be5ebSGreg Roach * @var array<array<string>> $inputs 137f7be5ebSGreg Roach */ 147f7be5ebSGreg Roach 15d70512abSGreg Roach?> 16dd6b2bfcSGreg Roach 17dd6b2bfcSGreg Roach<h2 class="wt-page-title"> 18dd6b2bfcSGreg Roach <?= $title ?> 19dd6b2bfcSGreg Roach</h2> 20dd6b2bfcSGreg Roach 211cfe16bdSGreg Roach<form method="post" class="wt-page-options wt-page-options-report-setup"> 229e3c2cf9SGreg Roach <div class="row"> 23dd6b2bfcSGreg Roach <div class="col-sm-3 col-form-label wt-page-options-label"> 24dd6b2bfcSGreg Roach <?= I18N::translate('Description') ?> 25dd6b2bfcSGreg Roach </div> 26dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 27dd6b2bfcSGreg Roach <?= $description ?> 28dd6b2bfcSGreg Roach </div> 29dd6b2bfcSGreg Roach </div> 30dd6b2bfcSGreg Roach 31dd6b2bfcSGreg Roach <?php foreach ($inputs as $n => $input) : ?> 32dd6b2bfcSGreg Roach <input type="hidden" name="varnames[]" value="<?= e($input['name']) ?>"> 339e3c2cf9SGreg Roach <div class="row"> 34dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="input-<?= $n ?>"> 35dd6b2bfcSGreg Roach <?= I18N::translate($input['value']) ?> 36dd6b2bfcSGreg Roach </label> 37dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 38f810ce3bSGreg Roach <?php if ($input['extra'] !== '') : ?> 39f810ce3bSGreg Roach <div class="input-group"> 40dd6b2bfcSGreg Roach <?= $input['control'] ?> 41dd6b2bfcSGreg Roach <?= $input['extra'] ?> 42dd6b2bfcSGreg Roach </div> 43f810ce3bSGreg Roach <div id="caldivinput-<?= e($n) ?>" style="position:absolute;visibility:hidden;background-color:white;z-index:1000"></div> 44f810ce3bSGreg Roach <?php else : ?> 45f810ce3bSGreg Roach <?= $input['control'] ?> 46f810ce3bSGreg Roach <?php endif ?> 47f810ce3bSGreg Roach </div> 48dd6b2bfcSGreg Roach </div> 49dd6b2bfcSGreg Roach <?php endforeach ?> 50dd6b2bfcSGreg Roach 519e3c2cf9SGreg Roach <div class="row"> 52dd6b2bfcSGreg Roach <div class="col-sm-3 col-form-label wt-page-options-label"> 531cfe16bdSGreg Roach <?= I18N::translate('Format') ?> 54dd6b2bfcSGreg Roach </div> 55dd6b2bfcSGreg Roach 56dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value d-flex justify-content-around"> 57dd6b2bfcSGreg Roach <div class="text-center"> 581cfe16bdSGreg Roach <label for="HTML" title="HTML"> 591cfe16bdSGreg Roach <?= view('icons/mime', ['type' => 'text/html']) ?> 60315eb316SGreg Roach <span class="visually-hidden">HTML</span> 611cfe16bdSGreg Roach </label> 62dd6b2bfcSGreg Roach <br> 637f7be5ebSGreg Roach <input type="radio" name="format" id="HTML" value="HTML" <?= $format === 'HTML' ? 'checked' : '' ?>> 64dd6b2bfcSGreg Roach </div> 65dd6b2bfcSGreg Roach <div class="text-center"> 661cfe16bdSGreg Roach <label for="PDF" title="PDF"> 671cfe16bdSGreg Roach <?= view('icons/mime', ['type' => 'application/pdf']) ?> 68315eb316SGreg Roach <span class="visually-hidden">PDF</span> 691cfe16bdSGreg Roach </label> 70dd6b2bfcSGreg Roach <br> 717f7be5ebSGreg Roach <input type="radio" name="format" value="PDF" id="PDF" <?= $format === 'PDF' ? 'checked' : '' ?>> 72dd6b2bfcSGreg Roach </div> 73dd6b2bfcSGreg Roach </div> 74dd6b2bfcSGreg Roach </div> 75dd6b2bfcSGreg Roach 769e3c2cf9SGreg Roach <div class="row"> 77dd6b2bfcSGreg Roach <div class="col-sm-3 col-form-label wt-page-options-label"></div> 78dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 797f7be5ebSGreg Roach <?php if ($destination === 'download') : ?> 807f7be5ebSGreg Roach <button type="submit" name="destination" value="download" class="btn btn-primary"> 817f7be5ebSGreg Roach <?= view('icons/download') ?> 827f7be5ebSGreg Roach <?= I18N::translate('download') ?> 837f7be5ebSGreg Roach </button> 847f7be5ebSGreg Roach <button type="submit" name="destination" value="view" class="btn btn-secondary"> 857f7be5ebSGreg Roach <?= view('icons/report') ?> 867f7be5ebSGreg Roach <?= I18N::translate('view') ?> 877f7be5ebSGreg Roach </button> 887f7be5ebSGreg Roach <?php else : ?> 891cfe16bdSGreg Roach <button type="submit" name="destination" value="view" class="btn btn-primary"> 901cfe16bdSGreg Roach <?= view('icons/report') ?> 911cfe16bdSGreg Roach <?= I18N::translate('view') ?> 921cfe16bdSGreg Roach </button> 931cfe16bdSGreg Roach <button type="submit" name="destination" value="download" class="btn btn-secondary"> 941cfe16bdSGreg Roach <?= view('icons/download') ?> 951cfe16bdSGreg Roach <?= I18N::translate('download') ?> 96dd6b2bfcSGreg Roach </button> 977f7be5ebSGreg Roach <?php endif ?> 98dd6b2bfcSGreg Roach </div> 99dd6b2bfcSGreg Roach </div> 10081443e3cSGreg Roach 10181443e3cSGreg Roach <?= csrf_field() ?> 102dd6b2bfcSGreg Roach</form> 103