10c0910bfSGreg Roach<?php 2dd6b2bfcSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 50c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 66fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees; 722e73debSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogData; 822e73debSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDelete; 922e73debSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDownload; 1057bfa969SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogPage; 110c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N; 127c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree; 137c2c99faSGreg Roach 147c2c99faSGreg Roach/** 157c2c99faSGreg Roach * @var string $earliest 167c2c99faSGreg Roach * @var string $from 177c2c99faSGreg Roach * @var string $latest 187c2c99faSGreg Roach * @var array<string,string> $statuses 197c2c99faSGreg Roach * @var string $newged 207c2c99faSGreg Roach * @var string $oldged 217c2c99faSGreg Roach * @var string $title 227c2c99faSGreg Roach * @var string $to 237c2c99faSGreg Roach * @var Tree $tree 247c2c99faSGreg Roach * @var array<string,string> $trees 257c2c99faSGreg Roach * @var string $type 267c2c99faSGreg Roach * @var string $username 277c2c99faSGreg Roach * @var array<string,string> $users 287c2c99faSGreg Roach * @var string $xref 297c2c99faSGreg Roach */ 300c0910bfSGreg Roach 310c0910bfSGreg Roach?> 320c0910bfSGreg Roach 336fd01894SGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?> 34dd6b2bfcSGreg Roach 35dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 36dd6b2bfcSGreg Roach 3722e73debSGreg Roach<form method="post" class="form" name="logs"> 38dd6b2bfcSGreg Roach <div class="row"> 399e3c2cf9SGreg Roach <div class="col-sm-6 col-md-3"> 40dd6b2bfcSGreg Roach <label for="from"> 41f80607a6SGreg Roach <?= I18N::translateContext('Start of date range', 'From') ?> 42dd6b2bfcSGreg Roach </label> 437dca5265SGreg Roach <input type="date" class="form-control" id="from" max="<?= e($latest) ?>" min="<?= e($earliest) ?>" name="from" value="<?= e($from) ?>" required="required"> 44dd6b2bfcSGreg Roach </div> 45dd6b2bfcSGreg Roach 469e3c2cf9SGreg Roach <div class="col-sm-6 col-md-3"> 47dd6b2bfcSGreg Roach <label for="to"> 48f80607a6SGreg Roach <?= I18N::translateContext('End of date range', 'To') ?> 49dd6b2bfcSGreg Roach </label> 507dca5265SGreg Roach <input type="date" class="form-control" id="to" max="<?= e($latest) ?>" min="<?= e($earliest) ?>" name="to" value="<?= e($to) ?>" required="required"> 51dd6b2bfcSGreg Roach </div> 52dd6b2bfcSGreg Roach 539e3c2cf9SGreg Roach <div class="col-sm-6 col-md-3"> 54dd6b2bfcSGreg Roach <label for="type"> 55dd6b2bfcSGreg Roach <?= I18N::translate('Status') ?> 56dd6b2bfcSGreg Roach </label> 57c9e11c2aSGreg Roach <?= view('components/select', ['name' => 'type', 'selected' => $type, 'options' => $statuses]) ?> 58dd6b2bfcSGreg Roach </div> 59dd6b2bfcSGreg Roach 609e3c2cf9SGreg Roach <div class="col-sm-6 col-md-3"> 61dd6b2bfcSGreg Roach <label for="xref"> 62dd6b2bfcSGreg Roach <?= I18N::translate('Record') ?> 63dd6b2bfcSGreg Roach </label> 64dd6b2bfcSGreg Roach <input class="form-control" type="text" id="xref" name="xref" value="<?= e($xref) ?>"> 65dd6b2bfcSGreg Roach </div> 66dd6b2bfcSGreg Roach </div> 67dd6b2bfcSGreg Roach 68dd6b2bfcSGreg Roach <div class="row"> 699e3c2cf9SGreg Roach <div class="col-sm-6 col-md-3"> 70dd6b2bfcSGreg Roach <label for="oldged"> 71dd6b2bfcSGreg Roach <?= I18N::translate('Old data') ?> 72dd6b2bfcSGreg Roach </label> 73dd6b2bfcSGreg Roach <input class="form-control" type="text" id="oldged" name="oldged" value="<?= e($oldged) ?>"> 74dd6b2bfcSGreg Roach </div> 75dd6b2bfcSGreg Roach 769e3c2cf9SGreg Roach <div class="col-sm-6 col-md-3"> 77dd6b2bfcSGreg Roach <label for="newged"> 78dd6b2bfcSGreg Roach <?= I18N::translate('New data') ?> 79dd6b2bfcSGreg Roach </label> 80dd6b2bfcSGreg Roach <input class="form-control" type="text" id="newged" name="newged" value="<?= e($newged) ?>"> 81dd6b2bfcSGreg Roach </div> 82dd6b2bfcSGreg Roach 839e3c2cf9SGreg Roach <div class="col-sm-6 col-md-3"> 84dd6b2bfcSGreg Roach <label for="username"> 85dd6b2bfcSGreg Roach <?= I18N::translate('User') ?> 86dd6b2bfcSGreg Roach </label> 8722e73debSGreg Roach <?= view('components/select', ['name' => 'username', 'selected' => $username, 'options' => $users]) ?> 88dd6b2bfcSGreg Roach </div> 89dd6b2bfcSGreg Roach 909e3c2cf9SGreg Roach <div class="col-sm-6 col-md-3"> 919022ab66SGreg Roach <label for="tree"> 92dd6b2bfcSGreg Roach <?= I18N::translate('Family tree') ?> 93dd6b2bfcSGreg Roach </label> 9422e73debSGreg Roach <?= view('components/select', ['name' => 'tree', 'selected' => $tree->name(), 'options' => $trees]) ?> 95dd6b2bfcSGreg Roach </div> 96dd6b2bfcSGreg Roach </div> 97dd6b2bfcSGreg Roach 98dd6b2bfcSGreg Roach <div class="text-center"> 99dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 100dd6b2bfcSGreg Roach <?= view('icons/search') ?> 101dd6b2bfcSGreg Roach <?= I18N::translate('search') ?> 102dd6b2bfcSGreg Roach </button> 103dd6b2bfcSGreg Roach 10457bfa969SGreg Roach <a href="<?= e(route(PendingChangesLogPage::class, ['tree' => $tree->name()])) ?>" type="submit" class="btn btn-secondary"> 10557bfa969SGreg Roach <?= view('icons/cancel') ?> 10657bfa969SGreg Roach <?= /* I18N: A button label. */ I18N::translate('reset') ?> 10757bfa969SGreg Roach </a> 108dd71ff6bSGreg Roach <a class="btn btn-secondary" href="<?= route(PendingChangesLogDownload::class, ['from' => $from, 'to' => $to, 'type' => $type, 'xref' => $xref, 'oldged' => $oldged, 'newged' => $newged, 'tree' => $tree->name(), 'username' => $username]) ?>"> 109dd6b2bfcSGreg Roach <?= view('icons/download') ?> 110dd6b2bfcSGreg Roach <?= /* I18N: A button label. */ I18N::translate('download') ?> 11122e73debSGreg Roach </a> 112dd6b2bfcSGreg Roach 113dd71ff6bSGreg Roach <a href="#" class="btn btn-danger" data-wt-confirm="<?= I18N::translate('Permanently delete these records?') ?>" data-wt-post-url="<?= route(PendingChangesLogDelete::class, ['from' => $from, 'to' => $to, 'type' => $type, 'xref' => $xref, 'oldged' => $oldged, 'newged' => $newged, 'tree' => $tree->name(), 'username' => $username]) ?>"> 114dd6b2bfcSGreg Roach <?= view('icons/delete') ?> 115dd6b2bfcSGreg Roach <?= I18N::translate('delete') ?> 11622e73debSGreg Roach </a> 117dd6b2bfcSGreg Roach </div> 11881443e3cSGreg Roach 11981443e3cSGreg Roach <?= csrf_field() ?> 120dd6b2bfcSGreg Roach</form> 121dd6b2bfcSGreg Roach 122dd6b2bfcSGreg Roach<table 123b4139381SGreg Roach class="table table-bordered table-sm table-hover table-site-changes datatables d-none" 124b4139381SGreg Roach <?= view('lists/datatables-attributes') ?> 12522e73debSGreg Roach data-ajax="<?= route(PendingChangesLogData::class, ['from' => $from, 'to' => $to, 'type' => $type, 'xref' => $xref, 'oldged' => $oldged, 'newged' => $newged, 'tree' => $tree->name(), 'username' => $username]) ?>" 126dd6b2bfcSGreg Roach data-server-side="true" 127dd6b2bfcSGreg Roach data-sorting="<?= e('[[ 0, "desc" ]]') ?>" 128dd6b2bfcSGreg Roach> 129315eb316SGreg Roach <caption class="visually-hidden"> 130dd6b2bfcSGreg Roach <?= $title ?> 131dd6b2bfcSGreg Roach </caption> 13222e73debSGreg Roach 133dd6b2bfcSGreg Roach <thead> 134dd6b2bfcSGreg Roach <tr> 135dd6b2bfcSGreg Roach <th data-visible="false"></th> 136dd6b2bfcSGreg Roach <th><?= I18N::translate('Timestamp') ?></th> 137dd6b2bfcSGreg Roach <th><?= I18N::translate('Status') ?></th> 138dd6b2bfcSGreg Roach <th><?= I18N::translate('Record') ?></th> 139dd6b2bfcSGreg Roach <th data-sortable="false"><?= I18N::translate('Data') ?></th> 140dd6b2bfcSGreg Roach <th><?= I18N::translate('User') ?></th> 141dd6b2bfcSGreg Roach <th><?= I18N::translate('Family tree') ?></th> 142dd6b2bfcSGreg Roach </tr> 143dd6b2bfcSGreg Roach </thead> 144dd6b2bfcSGreg Roach</table> 145