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