10c0910bfSGreg Roach<?php 2dd6b2bfcSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 50c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 66d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomClient; 76d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomServer; 86fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees; 90c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N; 107c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree; 117c2c99faSGreg Roach 127c2c99faSGreg Roach/** 1316ecfcafSGreg Roach * @var array<string> $download_filenames 14eb2f4c2aSGreg Roach * @var string $filename 157c2c99faSGreg Roach * @var string $title 167c2c99faSGreg Roach * @var Tree $tree 1716ecfcafSGreg Roach * @var bool $zip_available 187c2c99faSGreg Roach */ 190c0910bfSGreg Roach 200c0910bfSGreg Roach?> 210c0910bfSGreg Roach 226fd01894SGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?> 23dd6b2bfcSGreg Roach 24dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 25dd6b2bfcSGreg Roach 266d576906SGreg Roach<div class="row"> 271c6adce8SGreg Roach <div class="col-sm-6"> 286d576906SGreg Roach <div class="card"> 296d576906SGreg Roach <div class="card-header"> 30dd6b2bfcSGreg Roach <?= I18N::translate('A file on the server') ?> 31dd6b2bfcSGreg Roach </div> 326d576906SGreg Roach <div class="card-body"> 336d576906SGreg Roach <form method="post" action="<?= e(route(ExportGedcomServer::class, ['tree' => $tree->name()])) ?>" class="form form-horizontal"> 349e3c2cf9SGreg Roach <div class="mb-3"> 35eb2f4c2aSGreg Roach <label for="filename"><?= I18N::translate('Filename') ?></label> 36eb2f4c2aSGreg Roach <input type="text" class="form-control" id="filename" name="filename" value="<?= e($filename) ?>"> 37eb2f4c2aSGreg Roach </div> 38eb2f4c2aSGreg Roach 39dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 406d576906SGreg Roach <?= view('icons/save') ?> 416d576906SGreg Roach <?= /* I18N: A button label. */ 4216ecfcafSGreg Roach I18N::translate('save') ?> 43dd6b2bfcSGreg Roach </button> 4481443e3cSGreg Roach 4581443e3cSGreg Roach <?= csrf_field() ?> 46dd6b2bfcSGreg Roach </form> 476d576906SGreg Roach </div> 486d576906SGreg Roach </div> 496d576906SGreg Roach </div> 50dd6b2bfcSGreg Roach 511c6adce8SGreg Roach <div class="col-sm-6"> 526d576906SGreg Roach <div class="card"> 536d576906SGreg Roach <div class="card-header"> 546d576906SGreg Roach <?= I18N::translate('A file on your computer') ?> 556d576906SGreg Roach </div> 561c6adce8SGreg Roach 576d576906SGreg Roach <div class="card-body"> 586d576906SGreg Roach <form method="post" action="<?= e(route(ExportGedcomClient::class, ['tree' => $tree->name()])) ?>" class="form form-horizontal"> 596d576906SGreg Roach <p class="card-title"> 60dd6b2bfcSGreg Roach <?= I18N::translate('Export preferences') ?> 616d576906SGreg Roach </p> 626d576906SGreg Roach 6316ecfcafSGreg Roach <?= view('admin/gedcom-export-options', ['download_filenames' => $download_filenames, 'tree' => $tree, 'zip_available' => $zip_available]) ?> 646d576906SGreg Roach 65dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 666d576906SGreg Roach <?= view('icons/download') ?> 676d576906SGreg Roach <?= /* I18N: A button label. */ 6816ecfcafSGreg Roach I18N::translate('download') ?> 69dd6b2bfcSGreg Roach </button> 7081443e3cSGreg Roach 7181443e3cSGreg Roach <?= csrf_field() ?> 72dd6b2bfcSGreg Roach </form> 736d576906SGreg Roach </div> 746d576906SGreg Roach </div> 756d576906SGreg Roach </div> 766d576906SGreg Roach</div> 776d576906SGreg Roach 786d576906SGreg Roach<?= view('modals/ajax') ?> 79