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