xref: /webtrees/resources/views/modals/create-note-object.phtml (revision 701f5d180b85b9d3e0747b6ddc9e9d64dd73d0d6)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteAction;
4use Fisharebest\Webtrees\I18N;
5use Fisharebest\Webtrees\Tree;
6
7/**
8 * @var Tree $tree
9 */
10
11?>
12
13<form method="post" action="<?= e(route(CreateNoteAction::class, ['tree' => $tree->name()])) ?>" id="wt-modal-form">
14    <?= view('modals/header', ['title' => I18N::translate('Create a shared note')]) ?>
15
16    <div class="modal-body">
17        <?= view('modals/note-object-fields') ?>
18    </div>
19
20    <?= view('modals/footer-save-cancel') ?>
21
22    <?= csrf_field() ?>
23</form>
24
25<script>
26  document.getElementById('wt-modal-form').addEventListener('submit', webtrees.createRecordModalSubmit);
27</script>
28