xref: /webtrees/resources/views/edit/shared-note.phtml (revision ad7270802ba57a28d195fc58fcc55f26458a779a)
1<?php use Fisharebest\Webtrees\FontAwesome; ?>
2<?php use Fisharebest\Webtrees\I18N; ?>
3
4<h2 class="wt-page-title"><?= $title ?></h2>
5
6<form class="wt-page-options" method="post">
7    <?= csrf_field() ?>
8
9    <div class="row form-group">
10        <label class="col-sm-3 col-form-label wt-page-options-label" for="NOTE">
11            <?= I18N::translate('Shared note') ?>
12        </label>
13        <div class="col-sm-9 wt-page-options-value">
14            <textarea class="form-control" name="NOTE" id="NOTE" rows="15"><?= e($note->getNote()) ?></textarea>
15            <?= FontAwesome::linkIcon('keyboard', I18N::translate('Find a special character'), ['class' => 'wt-osk-trigger', 'href' => '#', 'data-id' => 'NOTE']) ?>
16        </div>
17    </div>
18
19    <div class="row form-group">
20        <div class="col-sm-9 offset-sm-3">
21            <button class="btn btn-primary" type="submit">
22                <?= view('icons/save') ?>
23                <?= /* I18N: A button label. */
24                I18N::translate('save') ?>
25            </button>
26            <a class="btn btn-secondary" href="<?= e($note->url()) ?>">
27                <?= view('icons/cancel') ?>
28                <?= /* I18N: A button label. */
29                I18N::translate('cancel') ?>
30            </a>
31        </div>
32    </div>
33</form>
34<?= view('modals/on-screen-keyboard'); ?>
35