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