1<?php 2 3use Fisharebest\Webtrees\GedcomRecord; 4use Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordPage; 5use Fisharebest\Webtrees\Http\RequestHandlers\EditRecordAction; 6use Fisharebest\Webtrees\I18N; 7use Fisharebest\Webtrees\Tree; 8 9/** 10 * @var bool $can_edit_raw 11 * @var GedcomRecord $record 12 * @var string $title 13 * @var Tree $tree 14 */ 15 16?> 17 18<h2 class="wt-page-title"><?= $title ?></h2> 19 20<form method="post" action="<?= e(route(EditRecordAction::class, ['tree' => $tree->name(), 'xref' => $record->xref()])) ?>" class="wt-page-content"> 21 <?= csrf_field() ?> 22 23 <?= view('edit/edit-gedcom-fields', ['gedcom' => $record->insertMissingSubtags(), 'hierarchy' => [$record->tag()], 'tree' => $tree, 'prefix' => '']) ?> 24 25 <div class="form-group row"> 26 <label class="col-sm-3 col-form-label" for="keep_chan"> 27 <?= I18N::translate('Last change') ?> 28 </label> 29 <div class="col-sm-9"> 30 <?= view('components/checkbox-inline', ['label' => I18N::translate('Keep the existing “last change” information'), 'name' => 'keep_chan', 'checked' => (bool) $tree->getPreference('NO_UPDATE_CHAN')]) ?> 31 <div> 32 <?= I18N::translate('%1$s: %2$s', I18N::translate('Timestamp'), view('components/datetime', ['timestamp' => $record->lastChangeTimestamp()])) ?> 33 </div> 34 <div> 35 <?= I18N::translate('%1$s: %2$s', I18N::translate('Author of last change'), e($record->lastChangeUser())) ?> 36 </div> 37 </div> 38 </div> 39 40 <div class="form-group row"> 41 <div class="col-sm-3 wt-page-options-label"> 42 </div> 43 <div class="col-sm-9 wt-page-options-value"> 44 <button class="btn btn-primary" type="submit"> 45 <?= view('icons/save') ?> 46 <?= /* I18N: A button label. */ 47 I18N::translate('save') ?> 48 </button> 49 <a class="btn btn-secondary" href="<?= e($record->url()) ?>"> 50 <?= view('icons/cancel') ?> 51 <?= /* I18N: A button label. */ 52 I18N::translate('cancel') ?> 53 </a> 54 <?php if ($can_edit_raw) : ?> 55 <a class="btn btn-link" href="<?= e(route(EditRawRecordPage::class, ['xref' => $record->xref(), 'tree' => $tree->name()])) ?>"> 56 <?= I18N::translate('Edit the raw GEDCOM') ?> 57 </a> 58 <?php endif; ?> 59 </div> 60 </div> 61</form> 62 63<?= view('modals/on-screen-keyboard') ?> 64<?= view('modals/ajax') ?> 65<?= view('edit/initialize-calendar-popup') ?> 66