1e381f98dSGreg Roach<?php 2e381f98dSGreg Roach 3e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ContactAction; 4e381f98dSGreg Roachuse Fisharebest\Webtrees\I18N; 57c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree; 67c2c99faSGreg Roach 77c2c99faSGreg Roach/** 87c2c99faSGreg Roach * @var string $body 97c2c99faSGreg Roach * @var string $captcha 107c2c99faSGreg Roach * @var string $from_email 117c2c99faSGreg Roach * @var string $from_name 127c2c99faSGreg Roach * @var string $subject 137c2c99faSGreg Roach * @var string $title 147c2c99faSGreg Roach * @var string $to 157c2c99faSGreg Roach * @var string $to_name 167c2c99faSGreg Roach * @var string $url 177c2c99faSGreg Roach * @var Tree $tree 187c2c99faSGreg Roach */ 19e381f98dSGreg Roach 20e381f98dSGreg Roach?> 21dd6b2bfcSGreg Roach 22dd6b2bfcSGreg Roach<h2><?= $title ?></h2> 23dd6b2bfcSGreg Roach 24e381f98dSGreg Roach<form method="post" action="<?= e(route(ContactAction::class, ['tree' => $tree->name()])) ?>"> 25dd6b2bfcSGreg Roach <?= csrf_field() ?> 2670ca9c90SGreg Roach <?= $captcha ?> 27d72b284aSGreg Roach <input type="hidden" name="tree" value="<?= e($tree->name()) ?>"> 28dd6b2bfcSGreg Roach <input type="hidden" name="url" value="<?= e($url) ?>"> 29dd6b2bfcSGreg Roach 30*9e3c2cf9SGreg Roach <div class="row mb-3"> 31dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="to"> 32f80607a6SGreg Roach <?= I18N::translateContext('Email recipient', 'To') ?> 33dd6b2bfcSGreg Roach </label> 34dd6b2bfcSGreg Roach <div class="col-sm-9"> 35dd6b2bfcSGreg Roach <input type="hidden" name="to" value="<?= e($to) ?>"> 36dd6b2bfcSGreg Roach <input class="form-control" id="to" type="text" value="<?= e($to_name) ?>" disabled> 37dd6b2bfcSGreg Roach </div> 38dd6b2bfcSGreg Roach </div> 39dd6b2bfcSGreg Roach 40*9e3c2cf9SGreg Roach <div class="row mb-3"> 41dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="from-name"> 42dd6b2bfcSGreg Roach <?= I18N::translate('Your name') ?> 43dd6b2bfcSGreg Roach </label> 44dd6b2bfcSGreg Roach <div class="col-sm-9"> 457dca5265SGreg Roach <input class="form-control" id="from-name" type="text" name="from_name" value="<?= e($from_name) ?>" required="required"> 46dd6b2bfcSGreg Roach </div> 47dd6b2bfcSGreg Roach </div> 48*9e3c2cf9SGreg Roach <div class="row mb-3"> 49dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="from-email"> 50dd6b2bfcSGreg Roach <?= I18N::translate('Email address') ?> 51dd6b2bfcSGreg Roach </label> 52dd6b2bfcSGreg Roach <div class="col-sm-9"> 537dca5265SGreg Roach <input class="form-control" id="from-email" type="email" name="from_email" value="<?= e($from_email) ?>" required="required"> 54dd6b2bfcSGreg Roach </div> 55dd6b2bfcSGreg Roach </div> 56dd6b2bfcSGreg Roach 57*9e3c2cf9SGreg Roach <div class="row mb-3"> 58dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="subject"> 59dd6b2bfcSGreg Roach <?= I18N::translate('Subject') ?> 60dd6b2bfcSGreg Roach </label> 61dd6b2bfcSGreg Roach <div class="col-sm-9"> 627dca5265SGreg Roach <input class="form-control" id="subject" type="text" name="subject" value="<?= e($subject) ?>" required="required"> 63dd6b2bfcSGreg Roach </div> 64dd6b2bfcSGreg Roach </div> 65dd6b2bfcSGreg Roach 66*9e3c2cf9SGreg Roach <div class="row mb-3"> 67dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="body"> 68dd6b2bfcSGreg Roach <?= I18N::translate('Message') ?> 69dd6b2bfcSGreg Roach </label> 70dd6b2bfcSGreg Roach <div class="col-sm-9"> 717dca5265SGreg Roach <textarea class="form-control" id="body" type="text" name="body" rows="5" dir="auto" required="required"><?= e($body) ?></textarea> 72dd6b2bfcSGreg Roach </div> 73dd6b2bfcSGreg Roach </div> 74dd6b2bfcSGreg Roach 75*9e3c2cf9SGreg Roach <div class="row mb-3"> 76dd6b2bfcSGreg Roach <div class="col-sm-3 col-form-label"></div> 77dd6b2bfcSGreg Roach <div class="col-sm-9"> 78dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 79dd6b2bfcSGreg Roach <?= I18N::translate('Send') ?> 80dd6b2bfcSGreg Roach </button> 81dd6b2bfcSGreg Roach <a class="btn btn-link" href="<?= e($url) ?>"> 82dd6b2bfcSGreg Roach <?= I18N::translate('cancel') ?> 83dd6b2bfcSGreg Roach </a> 84dd6b2bfcSGreg Roach </div> 85dd6b2bfcSGreg Roach </div> 86dd6b2bfcSGreg Roach</form> 87