1c2ed51d1SGreg Roach<?php 2c2ed51d1SGreg Roach 3c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmissionAction; 4c2ed51d1SGreg Roachuse Fisharebest\Webtrees\I18N; 5c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Tree; 6c2ed51d1SGreg Roach 7c2ed51d1SGreg Roach/** 8c2ed51d1SGreg Roach * @var Tree $tree 9c2ed51d1SGreg Roach */ 10c2ed51d1SGreg Roach 11c2ed51d1SGreg Roach?> 12c2ed51d1SGreg Roach 13c2ed51d1SGreg Roach<form method="post" action="<?= e(route(CreateSubmissionAction::class, ['tree' => $tree->name()])) ?>" id="wt-modal-form"> 14c2ed51d1SGreg Roach <?= view('modals/header', ['title' => I18N::translate('Create a submission')]) ?> 15c2ed51d1SGreg Roach 16c2ed51d1SGreg Roach <div class="modal-body"> 17c2ed51d1SGreg Roach <?= view('modals/submission-fields', ['tree' => $tree]) ?> 18c2ed51d1SGreg Roach </div> 19c2ed51d1SGreg Roach 20c2ed51d1SGreg Roach <?= view('modals/footer-save-cancel') ?> 21*81443e3cSGreg Roach 22*81443e3cSGreg Roach <?= csrf_field() ?> 23c2ed51d1SGreg Roach</form> 24c2ed51d1SGreg Roach 25c2ed51d1SGreg Roach<script> 2645ed5d1dSGreg Roach document.getElementById('wt-modal-form').addEventListener('submit', webtrees.createRecordModalSubmit); 27c2ed51d1SGreg Roach</script> 28