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