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 string $filename 12 * @var string $title 13 * @var Tree $tree 14 */ 15 16?> 17 18<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?> 19 20<h1><?= $title ?></h1> 21 22<div class="row"> 23 <div class="col-sm-5"> 24 <div class="card"> 25 <div class="card-header"> 26 <?= I18N::translate('A file on the server') ?> 27 </div> 28 <div class="card-body"> 29 <form method="post" action="<?= e(route(ExportGedcomServer::class, ['tree' => $tree->name()])) ?>" class="form form-horizontal"> 30 <?= csrf_field() ?> 31 32 33 <div class="form-group"> 34 <label for="filename"><?= I18N::translate('Filename') ?></label> 35 <input type="text" class="form-control" id="filename" name="filename" value="<?= e($filename) ?>"> 36 </div> 37 38 <button type="submit" class="btn btn-primary"> 39 <?= view('icons/save') ?> 40 <?= /* I18N: A button label. */ 41 I18N::translate('continue') ?> 42 </button> 43 </form> 44 </div> 45 </div> 46 </div> 47 48 <div class="col-sm-5"> 49 <div class="card"> 50 <div class="card-header"> 51 <?= I18N::translate('A file on your computer') ?> 52 </div> 53 <div class="card-body"> 54 <form method="post" action="<?= e(route(ExportGedcomClient::class, ['tree' => $tree->name()])) ?>" class="form form-horizontal"> 55 <?= csrf_field() ?> 56 57 <p class="card-title"> 58 <?= I18N::translate('Export preferences') ?> 59 </p> 60 61 <div class="form-check"> 62 <label class="form-check-label"> 63 <input class="form-check-input" type="checkbox" name="zip"> 64 <?= I18N::translate('Compress the GEDCOM file') ?> 65 </label> 66 <?= view('help/link', ['topic' => 'zip-gedcom']) ?> 67 </div> 68 69 <div class="form-check"> 70 <label class="form-check-label"> 71 <input class="form-check-input" type="checkbox" name="media"> 72 <?= I18N::translate('Include media (automatically zips files)') ?> 73 </label> 74 </div> 75 76 <div class="form-check"> 77 <label class="form-check-label"> 78 <input class="form-check-input" type="checkbox" name="convert"> 79 <?= I18N::translate('Convert from UTF-8 to ISO-8859-1') ?> 80 </label> 81 <?= view('help/link', ['topic' => 'iso-8859-1']) ?> 82 </div> 83 84 <?php if ($tree->getPreference('GEDCOM_MEDIA_PATH')) : ?> 85 <hr> 86 87 <label> 88 <input type="checkbox" name="media-path" value="<?= e($tree->getPreference('GEDCOM_MEDIA_PATH')) ?>"> 89 <?= /* I18N: A media path (e.g. C:\aaa\bbb\ccc\) in a GEDCOM file */ 90 I18N::translate('Add the GEDCOM media path to filenames') ?> 91 </label> 92 <p> 93 <?= /* I18N: %s is the name of a folder. */ 94 I18N::translate('Media filenames will be prefixed by %s.', '<code dir="ltr">' . e($tree->getPreference('GEDCOM_MEDIA_PATH')) . '</code>') ?> 95 </p> 96 <?php endif ?> 97 98 <hr> 99 100 <fieldset class="form-group"> 101 <legend class="col-form-label"> 102 <?= I18N::translate('Apply privacy settings') ?> 103 </legend> 104 105 <div class="form-check form-check-inline"> 106 <label> 107 <input type="radio" name="privatize_export" value="none" checked> 108 <?= I18N::translate('None') ?> 109 </label> 110 </div> 111 <div class="form-check form-check-inline"> 112 <label> 113 <input type="radio" name="privatize_export" value="gedadmin"> 114 <?= I18N::translate('Manager') ?> 115 </label> 116 </div> 117 <div class="form-check form-check-inline"> 118 <label> 119 <input type="radio" name="privatize_export" value="user"> 120 <?= I18N::translate('Member') ?> 121 </label> 122 </div> 123 <div class="form-check form-check-inline"> 124 <label> 125 <input type="radio" name="privatize_export" value="visitor"> 126 <?= I18N::translate('Visitor') ?> 127 </label> 128 </div> 129 </fieldset> 130 131 <button type="submit" class="btn btn-primary"> 132 <?= view('icons/download') ?> 133 <?= /* I18N: A button label. */ 134 I18N::translate('continue') ?> 135 </button> 136 </form> 137 </div> 138 </div> 139 </div> 140</div> 141 142<?= view('modals/ajax') ?> 143