1b4144a6dSGreg Roach<?php 2b4144a6dSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 57c2c99faSGreg Roachuse Fisharebest\Webtrees\Contracts\UserInterface; 6b4144a6dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 7b4144a6dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesAction; 84c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListPage; 9b4144a6dSGreg Roachuse Fisharebest\Webtrees\I18N; 10b4144a6dSGreg Roach 117c2c99faSGreg Roach/** 127c2c99faSGreg Roach * @var string $body 137c2c99faSGreg Roach * @var UserInterface $from 147c2c99faSGreg Roach * @var string $subject 157c2c99faSGreg Roach * @var string $title 167c2c99faSGreg Roach * @var UserInterface $to 177c2c99faSGreg Roach */ 187c2c99faSGreg Roach 19b4144a6dSGreg Roach?> 20b4144a6dSGreg Roach 214c3563c0SGreg Roach<?= view('components/breadcrumbs', ['links' => [ 224c3563c0SGreg Roach route(ControlPanel::class) => I18N::translate('Control panel'), 234c3563c0SGreg Roach route(UserListPage::class) => I18N::translate('User administration'), 244c3563c0SGreg Roach $title, 254c3563c0SGreg Roach]]) ?> 26b4144a6dSGreg Roach 27b4144a6dSGreg Roach<h1><?= $title ?></h1> 28b4144a6dSGreg Roach 29b4144a6dSGreg Roach<form method="post" action="<?= e(route(EmailPreferencesAction::class, ['to' => $to->userName()])) ?>"> 309e3c2cf9SGreg Roach <div class="row mb-3"> 31b4144a6dSGreg Roach <label class="col-sm-3 col-form-label" for="from"> 32f80607a6SGreg Roach <?= I18N::translateContext('Email sender', 'From') ?> 33b4144a6dSGreg Roach </label> 34b4144a6dSGreg Roach <div class="col-sm-9"> 35b4144a6dSGreg Roach <input class="form-control" id="from" type="text" value="<?= e('"' . $from->realName() . '" <' . $from->email() . '>') ?>" dir="auto" disabled> 36b4144a6dSGreg Roach </div> 37b4144a6dSGreg Roach </div> 38b4144a6dSGreg Roach 399e3c2cf9SGreg Roach <div class="row mb-3"> 40b4144a6dSGreg Roach <label class="col-sm-3 col-form-label" for="to"> 41f80607a6SGreg Roach <?= I18N::translateContext('Email recipient', 'To') ?> 42b4144a6dSGreg Roach </label> 43b4144a6dSGreg Roach <div class="col-sm-9"> 44b4144a6dSGreg Roach <input class="form-control" id="to" type="text" value="<?= e('"' . $to->realName() . '" <' . $to->email() . '>') ?>" dir="auto" disabled> 45b4144a6dSGreg Roach </div> 46b4144a6dSGreg Roach </div> 47b4144a6dSGreg Roach 489e3c2cf9SGreg Roach <div class="row mb-3"> 49b4144a6dSGreg Roach <label class="col-sm-3 col-form-label" for="subject"> 50b4144a6dSGreg Roach <?= I18N::translate('Subject') ?> 51b4144a6dSGreg Roach </label> 52b4144a6dSGreg Roach <div class="col-sm-9"> 537dca5265SGreg Roach <input class="form-control" id="subject" type="text" name="subject" value="<?= e($subject) ?>" required="required"> 54b4144a6dSGreg Roach </div> 55b4144a6dSGreg Roach </div> 56b4144a6dSGreg Roach 579e3c2cf9SGreg Roach <div class="row mb-3"> 58b4144a6dSGreg Roach <label class="col-sm-3 col-form-label" for="body"> 59b4144a6dSGreg Roach <?= I18N::translate('Message') ?> 60b4144a6dSGreg Roach </label> 61b4144a6dSGreg Roach <div class="col-sm-9"> 627dca5265SGreg Roach <textarea class="form-control" id="body" type="text" name="body" dir="auto" rows="5" required="required"><?= e($body) ?></textarea> 63b4144a6dSGreg Roach </div> 64b4144a6dSGreg Roach </div> 65b4144a6dSGreg Roach 669e3c2cf9SGreg Roach <div class="row mb-3"> 67b4144a6dSGreg Roach <div class="col-sm-3 col-form-label"></div> 68b4144a6dSGreg Roach <div class="col-sm-9"> 69b4144a6dSGreg Roach <button type="submit" class="btn btn-primary"> 70b4144a6dSGreg Roach <?= I18N::translate('Send') ?> 71b4144a6dSGreg Roach </button> 724c3563c0SGreg Roach <a class="btn btn-link" href="<?= e(route(UserListPage::class)) ?>"> 73b4144a6dSGreg Roach <?= I18N::translate('cancel') ?> 74b4144a6dSGreg Roach </a> 75b4144a6dSGreg Roach </div> 76b4144a6dSGreg Roach </div> 7781443e3cSGreg Roach 7881443e3cSGreg Roach <?= csrf_field() ?> 79b4144a6dSGreg Roach</form> 80