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