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