xref: /webtrees/resources/views/message-page.phtml (revision b51c2707afdd2e1cc53cf05d30e9736391c2ea9f)
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) ?>">
8aa6f03bbSGreg 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">
156ce1f9b2SGreg Roach            <input class="form-control" id="from" type="text" value="<?= e($from->realName()) ?>" dir="auto" 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">
24c65e00b4SGreg Roach            <input type="hidden" name="to" value="<?= e($to->userName()) ?>">
256ce1f9b2SGreg Roach            <input class="form-control" id="to" type="text" value="<?= e($to->realName()) ?>" dir="auto" 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">
43*b51c2707SGreg Roach            <textarea class="form-control" id="body" type="text" name="body" dir="auto" rows="5" 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