1*dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\Bootstrap4; ?> 2*dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 3*dd6b2bfcSGreg Roach 4*dd6b2bfcSGreg Roach<?= view('components/breadcrumbs', ['links' => [route('admin-control-panel') => I18N::translate('Control panel'), route('admin-trees') => I18N::translate('Manage family trees'), $title]]) ?> 5*dd6b2bfcSGreg Roach 6*dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 7*dd6b2bfcSGreg Roach 8*dd6b2bfcSGreg Roach<form class="form" name="logs"> 9*dd6b2bfcSGreg Roach <input type="hidden" name="action" value="show"> 10*dd6b2bfcSGreg Roach <input type="hidden" name="route" value="admin-changes-log"> 11*dd6b2bfcSGreg Roach <input type="hidden" name="ged" value="<?= e($ged) ?>"> 12*dd6b2bfcSGreg Roach 13*dd6b2bfcSGreg Roach <div class="row"> 14*dd6b2bfcSGreg Roach <div class="form-group col-xs-6 col-md-3"> 15*dd6b2bfcSGreg Roach <label for="from"> 16*dd6b2bfcSGreg Roach <?= /* I18N: From date1 (To date2) */ I18N::translate('From') ?> 17*dd6b2bfcSGreg Roach </label> 18*dd6b2bfcSGreg Roach <input type="date" class="form-control" id="from" max="<?= e($latest) ?>" min="<?= e($earliest) ?>" name="from" value="<?= e($from) ?>" required> 19*dd6b2bfcSGreg Roach </div> 20*dd6b2bfcSGreg Roach 21*dd6b2bfcSGreg Roach <div class="form-group col-xs-6 col-md-3"> 22*dd6b2bfcSGreg Roach <label for="to"> 23*dd6b2bfcSGreg Roach <?= /* I18N: (From date1) To date2 */ I18N::translate('To') ?> 24*dd6b2bfcSGreg Roach </label> 25*dd6b2bfcSGreg Roach <input type="date" class="form-control" id="to" max="<?= e($latest) ?>" min="<?= e($earliest) ?>" name="to" value="<?= e($to) ?>" required> 26*dd6b2bfcSGreg Roach </div> 27*dd6b2bfcSGreg Roach 28*dd6b2bfcSGreg Roach <div class="form-group col-xs-6 col-md-3"> 29*dd6b2bfcSGreg Roach <label for="type"> 30*dd6b2bfcSGreg Roach <?= I18N::translate('Status') ?> 31*dd6b2bfcSGreg Roach </label> 32*dd6b2bfcSGreg Roach <?= Bootstrap4::select($statuses, $type, ['id' => 'type', 'name' => 'type']) ?> 33*dd6b2bfcSGreg Roach </div> 34*dd6b2bfcSGreg Roach 35*dd6b2bfcSGreg Roach <div class="form-group col-xs-6 col-md-3"> 36*dd6b2bfcSGreg Roach <label for="xref"> 37*dd6b2bfcSGreg Roach <?= I18N::translate('Record') ?> 38*dd6b2bfcSGreg Roach </label> 39*dd6b2bfcSGreg Roach <input class="form-control" type="text" id="xref" name="xref" value="<?= e($xref) ?>"> 40*dd6b2bfcSGreg Roach </div> 41*dd6b2bfcSGreg Roach </div> 42*dd6b2bfcSGreg Roach 43*dd6b2bfcSGreg Roach <div class="row"> 44*dd6b2bfcSGreg Roach <div class="form-group col-xs-6 col-md-3"> 45*dd6b2bfcSGreg Roach <label for="oldged"> 46*dd6b2bfcSGreg Roach <?= I18N::translate('Old data') ?> 47*dd6b2bfcSGreg Roach </label> 48*dd6b2bfcSGreg Roach <input class="form-control" type="text" id="oldged" name="oldged" value="<?= e($oldged) ?>"> 49*dd6b2bfcSGreg Roach </div> 50*dd6b2bfcSGreg Roach 51*dd6b2bfcSGreg Roach <div class="form-group col-xs-6 col-md-3"> 52*dd6b2bfcSGreg Roach <label for="newged"> 53*dd6b2bfcSGreg Roach <?= I18N::translate('New data') ?> 54*dd6b2bfcSGreg Roach </label> 55*dd6b2bfcSGreg Roach <input class="form-control" type="text" id="newged" name="newged" value="<?= e($newged) ?>"> 56*dd6b2bfcSGreg Roach </div> 57*dd6b2bfcSGreg Roach 58*dd6b2bfcSGreg Roach <div class="form-group col-xs-6 col-md-3"> 59*dd6b2bfcSGreg Roach <label for="username"> 60*dd6b2bfcSGreg Roach <?= I18N::translate('User') ?> 61*dd6b2bfcSGreg Roach </label> 62*dd6b2bfcSGreg Roach <?= Bootstrap4::select($user_list, $username, ['id' => 'username', 'name' => 'username']) ?> 63*dd6b2bfcSGreg Roach </div> 64*dd6b2bfcSGreg Roach 65*dd6b2bfcSGreg Roach <div class="form-group col-xs-6 col-md-3"> 66*dd6b2bfcSGreg Roach <label for="ged"> 67*dd6b2bfcSGreg Roach <?= I18N::translate('Family tree') ?> 68*dd6b2bfcSGreg Roach </label> 69*dd6b2bfcSGreg Roach <?= Bootstrap4::select($tree_list, $ged, ['id' => 'ged', 'name' => 'ged']) ?> 70*dd6b2bfcSGreg Roach </div> 71*dd6b2bfcSGreg Roach </div> 72*dd6b2bfcSGreg Roach 73*dd6b2bfcSGreg Roach <div class="text-center"> 74*dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 75*dd6b2bfcSGreg Roach <?= view('icons/search') ?> 76*dd6b2bfcSGreg Roach <?= I18N::translate('search') ?> 77*dd6b2bfcSGreg Roach </button> 78*dd6b2bfcSGreg Roach 79*dd6b2bfcSGreg Roach <button type="submit" class="btn btn-secondary" onclick="document.logs.action.value='export';return true;" <?= $action === 'show' ? '' : 'disabled' ?>> 80*dd6b2bfcSGreg Roach <?= view('icons/download') ?> 81*dd6b2bfcSGreg Roach <?= /* I18N: A button label. */ I18N::translate('download') ?> 82*dd6b2bfcSGreg Roach </button> 83*dd6b2bfcSGreg Roach 84*dd6b2bfcSGreg Roach <button type="submit" class="btn btn-danger" data-confirm="<?= I18N::translate('Permanently delete these records?') ?>" onclick="if (confirm(this.dataset.confirm)) {document.logs.action.value='delete'; return true;} else {return false;}" <?= $action === 'show' ? '' : 'disabled' ?>> 85*dd6b2bfcSGreg Roach <?= view('icons/delete') ?> 86*dd6b2bfcSGreg Roach <?= I18N::translate('delete') ?> 87*dd6b2bfcSGreg Roach </button> 88*dd6b2bfcSGreg Roach </div> 89*dd6b2bfcSGreg Roach</form> 90*dd6b2bfcSGreg Roach 91*dd6b2bfcSGreg Roach<?php if ($action === 'show') : ?> 92*dd6b2bfcSGreg Roach <table 93*dd6b2bfcSGreg Roach class="table table-bordered table-sm table-hover table-site-changes datatables" 94*dd6b2bfcSGreg Roach data-ajax="<?= route('admin-changes-log-data', ['from' => $from, 'to' => $to, 'type' => $type, 'xref' => $xref, 'oldged' => $oldged, 'newged' => $newged, 'ged' => $ged, 'username' => $username]) ?>" 95*dd6b2bfcSGreg Roach data-server-side="true" 96*dd6b2bfcSGreg Roach data-sorting="<?= e('[[ 0, "desc" ]]') ?>" 97*dd6b2bfcSGreg Roach > 98*dd6b2bfcSGreg Roach <caption class="sr-only"> 99*dd6b2bfcSGreg Roach <?= $title ?> 100*dd6b2bfcSGreg Roach </caption> 101*dd6b2bfcSGreg Roach <thead> 102*dd6b2bfcSGreg Roach <tr> 103*dd6b2bfcSGreg Roach <th data-visible="false"></th> 104*dd6b2bfcSGreg Roach <th><?= I18N::translate('Timestamp') ?></th> 105*dd6b2bfcSGreg Roach <th><?= I18N::translate('Status') ?></th> 106*dd6b2bfcSGreg Roach <th><?= I18N::translate('Record') ?></th> 107*dd6b2bfcSGreg Roach <th data-sortable="false"><?= I18N::translate('Data') ?></th> 108*dd6b2bfcSGreg Roach <th><?= I18N::translate('User') ?></th> 109*dd6b2bfcSGreg Roach <th><?= I18N::translate('Family tree') ?></th> 110*dd6b2bfcSGreg Roach </tr> 111*dd6b2bfcSGreg Roach </thead> 112*dd6b2bfcSGreg Roach </table> 113*dd6b2bfcSGreg Roach<?php endif ?> 114