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