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