1<?php 2 3use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 4use Fisharebest\Webtrees\I18N; 5 6?> 7 8<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route('manage-trees') => I18N::translate('Manage family trees'), $title]]) ?> 9 10<h1><?= $title ?></h1> 11 12<form method="post" action="<?= e(route('admin-trees-export-action')) ?>" class="form form-horizontal"> 13 <?= csrf_field() ?> 14 15 <div class="row form-group"> 16 <div for="submit-export" class="col-sm-3 col-form-label"> 17 <?= I18N::translate('A file on the server') ?> 18 </div> 19 <div class="col-sm-9"> 20 <button type="submit" class="btn btn-primary"> 21 <?= /* I18N: A button label. */ I18N::translate('continue') ?> 22 </button> 23 </div> 24 </div> 25</form> 26 27<hr> 28 29<form method="get" action="<?= e(route('admin-trees-download')) ?>" class="form form-horizontal"> 30 <input type="hidden" name="route" value="admin-trees-download"> 31 <input type="hidden" name="tree" value="<?= e($tree->name()) ?>"> 32 33 <!-- DOWNLOAD OPTIONS --> 34 <fieldset class="form-group"> 35 <div class="row"> 36 <legend class="col-form-label col-sm-3"> 37 <?= I18N::translate('Export preferences') ?> 38 </legend> 39 <div class="col-sm-9"> 40 <div class="form-check"> 41 <label class="form-check-label"> 42 <input class="form-check-input" type="checkbox" name="zip"> 43 <?= I18N::translate('Compress the GEDCOM file') ?> 44 </label> 45 </div> 46 <p class="small muted"> 47 <?= I18N::translate('To reduce the size of the download, you can compress the data into a .ZIP file. You will need to uncompress the .ZIP file before you can use it.') ?> 48 </p> 49 50 <div class="form-check"> 51 <label class="form-check-label"> 52 <input class="form-check-input" type="checkbox" name="media"> 53 <?= I18N::translate('Include media (automatically zips files)') ?> 54 </label> 55 </div> 56 57 <?php if ($tree->getPreference('GEDCOM_MEDIA_PATH')) : ?> 58 <label> 59 <input type="checkbox" name="media-path" value="<?= e($tree->getPreference('GEDCOM_MEDIA_PATH')) ?>"> 60 <?= /* I18N: A media path (e.g. C:\aaa\bbb\ccc\) in a GEDCOM file */ I18N::translate('Add the GEDCOM media path to filenames') ?> 61 </label> 62 <p> 63 <?= /* I18N: %s is the name of a folder. */ I18N::translate('Media filenames will be prefixed by %s.', '<code dir="ltr">' . e($tree->getPreference('GEDCOM_MEDIA_PATH')) . '</code>') ?> 64 </p> 65 <?php endif ?> 66 67 <div class="form-check"> 68 <label class="form-check-label"> 69 <input class="form-check-input" type="checkbox" name="convert"> 70 <?= I18N::translate('Convert from UTF-8 to ISO-8859-1') ?> 71 </label> 72 </div> 73 <p class="small muted"> 74 <?= I18N::translate('webtrees uses UTF-8 encoding for accented letters, special characters and non-Latin scripts. If you want to use this GEDCOM file with genealogy software that does not support UTF-8, then you can create it using ISO-8859-1 encoding.') ?> 75 </p> 76 </div> 77 </div> 78 </fieldset> 79 80 <!-- PRIVACY OPTIONS --> 81 <fieldset class="form-group"> 82 <div class="row"> 83 <legend class="col-form-label col-sm-3"> 84 <?= I18N::translate('Apply privacy settings') ?> 85 </legend> 86 <div class="col-sm-9"> 87 <div class="form-check form-check-inline"> 88 <label> 89 <input type="radio" name="privatize_export" value="none" checked> 90 <?= I18N::translate('None') ?> 91 </label> 92 </div> 93 <div class="form-check form-check-inline"> 94 <label> 95 <input type="radio" name="privatize_export" value="gedadmin"> 96 <?= I18N::translate('Manager') ?> 97 </label> 98 </div> 99 <div class="form-check form-check-inline"> 100 <label> 101 <input type="radio" name="privatize_export" value="user"> 102 <?= I18N::translate('Member') ?> 103 </label> 104 </div> 105 <div class="form-check form-check-inline"> 106 <label> 107 <input type="radio" name="privatize_export" value="visitor"> 108 <?= I18N::translate('Visitor') ?> 109 </label> 110 </div> 111 </div> 112 </div> 113 </fieldset> 114 115 <div class="row form-group"> 116 <div class="col-sm-3 col-form-label"> 117 <?= I18N::translate('A file on your computer') ?> 118 </div> 119 <div class="col-sm-9"> 120 <button type="submit" class="btn btn-primary"> 121 <?= /* I18N: A button label. */ I18N::translate('continue') ?> 122 </button> 123 </div> 124 </div> 125</form> 126