blob: d6412e2ce6ef1e7963a4c7d7283d8a35778daed2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<?php use Fisharebest\Webtrees\FontAwesome; ?>
<?php use Fisharebest\Webtrees\I18N; ?>
<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?>
<div class="modal wt-modal-create-record" id="modal-create-family">
<form action="<?= e(route('create-family')) ?>" id="form-create-family">
<?= csrf_field() ?>
<input type="hidden" name="ged" value="<?= e($tree->getName()) ?>">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title"><?= I18N::translate('Create a family from existing individuals') ?></h3>
<button type="button" class="close" data-dismiss="modal" aria-label="<?= I18N::translate('close') ?>">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label class="col-form-label" for="husband">
<?= I18N::translate('Husband') ?>
</label>
<?= FunctionsEdit::formControlIndividual($tree, null, ['id' => 'husband', 'name' => 'husband']) ?>
</div>
<div class="form-group">
<label class="col-form-label" for="wife">
<?= I18N::translate('Wife') ?>
</label>
<?= FunctionsEdit::formControlIndividual($tree, null, ['id' => 'wife', 'name' => 'wife']) ?>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">
<?= FontAwesome::decorativeIcon('save') ?>
<?= I18N::translate('save') ?>
</button>
<button type="button" class="btn btn-text" data-dismiss="modal">
<?= FontAwesome::decorativeIcon('cancel') ?>
<?= I18N::translate('cancel') ?>
</button>
</div>
</div>
</div>
</form>
</div>
|