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