1<?php 2 3use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 4use Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomClient; 5use Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomServer; 6use Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees; 7use Fisharebest\Webtrees\I18N; 8use Fisharebest\Webtrees\Tree; 9 10/** 11 * @var array<string> $download_filenames 12 * @var string $filename 13 * @var string $title 14 * @var Tree $tree 15 * @var bool $zip_available 16 */ 17 18?> 19 20<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?> 21 22<h1><?= $title ?></h1> 23 24<div class="row"> 25 <div class="col-sm-6"> 26 <div class="card"> 27 <div class="card-header"> 28 <?= I18N::translate('A file on the server') ?> 29 </div> 30 <div class="card-body"> 31 <form method="post" action="<?= e(route(ExportGedcomServer::class, ['tree' => $tree->name()])) ?>" class="form form-horizontal"> 32 <?= csrf_field() ?> 33 34 35 <div class="form-group mb-3"> 36 <label for="filename"><?= I18N::translate('Filename') ?></label> 37 <input type="text" class="form-control" id="filename" name="filename" value="<?= e($filename) ?>"> 38 </div> 39 40 <button type="submit" class="btn btn-primary"> 41 <?= view('icons/save') ?> 42 <?= /* I18N: A button label. */ 43 I18N::translate('save') ?> 44 </button> 45 </form> 46 </div> 47 </div> 48 </div> 49 50 <div class="col-sm-6"> 51 <div class="card"> 52 <div class="card-header"> 53 <?= I18N::translate('A file on your computer') ?> 54 </div> 55 56 <div class="card-body"> 57 <form method="post" action="<?= e(route(ExportGedcomClient::class, ['tree' => $tree->name()])) ?>" class="form form-horizontal"> 58 <?= csrf_field() ?> 59 60 <p class="card-title"> 61 <?= I18N::translate('Export preferences') ?> 62 </p> 63 64 <?= view('admin/gedcom-export-options', ['download_filenames' =>$download_filenames, 'tree' => $tree, 'zip_available' => $zip_available]) ?> 65 66 <button type="submit" class="btn btn-primary"> 67 <?= view('icons/download') ?> 68 <?= /* I18N: A button label. */ 69 I18N::translate('download') ?> 70 </button> 71 </form> 72 </div> 73 </div> 74 </div> 75</div> 76 77<?= view('modals/ajax') ?> 78