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