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