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