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('admin-media') => I18N::translate('Manage media'), $title]]) ?> 9 10<h1><?= $title ?></h1> 11 12<p> 13 <?= I18N::translate('Upload one or more media files from your local computer. Media files can be pictures, video, audio, or other formats.') ?> 14 <?= I18N::translate('Maximum upload size: ') ?><?= e($filesize) ?> 15</p> 16 17<form method="post" action="<?= e(route('admin-media-upload-action')) ?>" name="uploadmedia" enctype="multipart/form-data"> 18 <?= csrf_field() ?> 19 20 <?php for ($i = 1; $i <= $max_upload_files; $i++) : ?> 21 <h2><?= I18N::translate('Media file') ?> <?= I18N::number($i) ?></h2> 22 23 <div class="form-group row"> 24 <label class="form-control-label col-sm-3" for="mediafile<?= e($i) ?>"> 25 <?= I18N::translate('Media file to upload') ?> 26 <span class="sr-only"><?= e($i) ?></span> 27 </label> 28 <div class="col-sm-9"> 29 <input class="form-control-file" id="mediafile<?= e($i) ?>" name="mediafile<?= e($i) ?>" type="file"> 30 </div> 31 </div> 32 33 <div class="form-group row"> 34 <label class="form-control-label col-sm-3" for="filename<?= e($i) ?>"> 35 <?= I18N::translate('Filename on server') ?> 36 <span class="sr-only"><?= e($i) ?></span> 37 </label> 38 <div class="col-sm-9"> 39 <input class="form-control" id="filename<?= e($i) ?>" name="filename<?= e($i) ?>" type="text"> 40 <p class="small text-muted"> 41 <?= I18N::translate('Leave this entry blank to keep the original filename') ?> 42 </p> 43 </div> 44 </div> 45 46 <div class="form-group row"> 47 <label class="form-control-label col-sm-3" for="folder_list<?= e($i) ?>"> 48 <?= I18N::translate('Folder name on server') ?> 49 <span class="sr-only"><?= e($i) ?></span> 50 </label> 51 <div class="col-sm-9"> 52 <select class="form-control" id="folder_list<?= e($i) ?>"name="folder<?= e($i) ?>"> 53 <?php foreach ($media_folders as $media_folder) : ?> 54 <option value="<?= e($media_folder) ?>"> 55 <?= e($media_folder) ?> 56 </option> 57 <?php endforeach ?> 58 </select> 59 </div> 60 </div> 61 <?php endfor ?> 62 63 <button class="btn btn-primary" type="submit"> 64 <?= /* I18N: A button label. */ I18N::translate('upload') ?> 65 </button> 66</form> 67