1<?php use Fisharebest\Webtrees\Bootstrap4; ?> 2<?php use Fisharebest\Webtrees\GedcomTag; ?> 3<?php use Fisharebest\Webtrees\I18N; ?> 4 5<div class="modal" id="modal-create-media-from-file"> 6 <form action="<?= e(route('create-media-from-file')) ?>" method="POST"> 7 <?= csrf_field() ?> 8 <input type="hidden" name="action" value="create-media-object-from-file"> 9 <input type="hidden" name="ged" id="ged" value=""> 10 <div class="modal-dialog modal-lg" role="document"> 11 <div class="modal-content"> 12 <div class="modal-header"> 13 <h3 class="modal-title"><?= I18N::translate('Create a media object') ?></h3> 14 <button type="button" class="close" data-dismiss="modal" aria-label="<?= I18N::translate('close') ?>"> 15 <span aria-hidden="true">×</span> 16 </button> 17 </div> 18 <div class="modal-body"> 19 <div class="form-group row"> 20 <label class="col-form-label col-sm-2" for="file"> 21 <?= I18N::translate('Media file') ?> 22 </label> 23 <div class="col-sm-10"> 24 <input type="text" class="form-control" id="file" name="file" value="" readonly> 25 </div> 26 </div> 27 <div class="form-group row"> 28 <label class="col-form-label col-sm-2" for="title"> 29 <?= I18N::translate('Title') ?> 30 </label> 31 <div class="col-sm-10"> 32 <input type="text" class="form-control" name="title" id="title"> 33 </div> 34 </div> 35 <div class="form-group row"> 36 <label class="col-form-label col-sm-2" for="type"> 37 <?= I18N::translate('Media type') ?> 38 </label> 39 <div class="col-sm-10"> 40 <?= Bootstrap4::select(['' => ''] + GedcomTag::getFileFormTypes(), '') ?> 41 </div> 42 </div> 43 <div class="form-group row"> 44 <label class="col-form-label col-sm-2" for="note"> 45 <?= I18N::translate('Note') ?> 46 </label> 47 <div class="col-sm-10"> 48 <textarea class="form-control" id="note" name="note"></textarea> 49 </div> 50 </div> 51 </div> 52 <div class="modal-footer"> 53 <button type="submit" class="btn btn-primary"> 54 <?= view('icons/save') ?> 55 <?= I18N::translate('save') ?> 56 </button> 57 <button type="button" class="btn btn-text" data-dismiss="modal"> 58 <?= view('icons/cancel') ?> 59 <?= I18N::translate('cancel') ?> 60 </button> 61 </div> 62 </div> 63 </div> 64 </form> 65</div> 66