1<?php use Fisharebest\Webtrees\Http\RequestHandlers\MessageAction; 2use Fisharebest\Webtrees\I18N; ?> 3 4<h2><?= $title ?></h2> 5 6<form method="post" action="<?= e(route(MessageAction::class, ['tree' => $tree->name()])) ?>"> 7 <?= csrf_field() ?> 8 9 <input type="hidden" name="url" value="<?= e($url) ?>"> 10 11 <div class="form-group row"> 12 <label class="col-sm-3 col-form-label" for="from"> 13 <?= I18N::translate('From') ?> 14 </label> 15 <div class="col-sm-9"> 16 <input class="form-control" id="from" type="text" value="<?= e($from->realName()) ?>" dir="auto" disabled> 17 </div> 18 </div> 19 20 <div class="form-group row"> 21 <label class="col-sm-3 col-form-label" for="to"> 22 <?= I18N::translate('To') ?> 23 </label> 24 <div class="col-sm-9"> 25 <input type="hidden" name="to" value="<?= e($to->userName()) ?>"> 26 <input class="form-control" id="to" type="text" value="<?= e($to->realName()) ?>" dir="auto" disabled> 27 </div> 28 </div> 29 30 <div class="form-group row"> 31 <label class="col-sm-3 col-form-label" for="subject"> 32 <?= I18N::translate('Subject') ?> 33 </label> 34 <div class="col-sm-9"> 35 <input class="form-control" id="subject" type="text" name="subject" value="<?= e($subject) ?>" required> 36 </div> 37 </div> 38 39 <div class="form-group row"> 40 <label class="col-sm-3 col-form-label" for="body"> 41 <?= I18N::translate('Message') ?> 42 </label> 43 <div class="col-sm-9"> 44 <textarea class="form-control" id="body" type="text" name="body" dir="auto" rows="5" required><?= e($body) ?></textarea> 45 </div> 46 </div> 47 48 <div class="form-group row"> 49 <div class="col-sm-3 col-form-label"></div> 50 <div class="col-sm-9"> 51 <button type="submit" class="btn btn-primary"> 52 <?= I18N::translate('Send') ?> 53 </button> 54 <a class="btn btn-link" href="<?= e($url) ?>"> 55 <?= I18N::translate('cancel') ?> 56 </a> 57 </div> 58 </div> 59</form> 60