summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-11-13 20:51:28 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-11-13 20:51:28 +0000
commit7ae6c6d2ec8baf973f2b08cfcfe759154f2a379e (patch)
tree548f9dfb7203ab46aa694badabda5ba875716625
parent6ddab597f679060f73c189b092529f59d59f8eb0 (diff)
downloadwebtrees-7ae6c6d2ec8baf973f2b08cfcfe759154f2a379e.tar.gz
webtrees-7ae6c6d2ec8baf973f2b08cfcfe759154f2a379e.tar.bz2
webtrees-7ae6c6d2ec8baf973f2b08cfcfe759154f2a379e.zip
Fix: #2772 - select2 controls need a flex container to set width
-rw-r--r--app/Functions/FunctionsEdit.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Functions/FunctionsEdit.php b/app/Functions/FunctionsEdit.php
index c326c26231..a5d50cf47f 100644
--- a/app/Functions/FunctionsEdit.php
+++ b/app/Functions/FunctionsEdit.php
@@ -437,9 +437,13 @@ class FunctionsEdit
} elseif ($fact === 'ADOP') {
$html .= view('components/select', ['id' => $id, 'name' => $name, 'selected' => $value, 'options' => GedcomCodeAdop::getValues()]);
} elseif ($fact === 'ALIA') {
+ $html .= '<div class="input-group">';
$html .= view('components/select-individual', ['id' => $id, 'name' => $name, 'individual' => Individual::getInstance($value, $tree), 'tree' => $tree]);
+ $html .= '</div>';
} elseif ($fact === 'ASSO' || $fact === '_ASSO') {
+ $html .= '<div class="input-group">';
$html .= view('components/select-individual', ['id' => $id, 'name' => $name, 'individual' => Individual::getInstance($value, $tree), 'tree' => $tree]);
+ $html .= '</div>';
if ($level === '1') {
$html .= '<p class="small text-muted">' . I18N::translate('An associate is another individual who was involved with this individual, such as a friend or an employer.') . '</p>';
} else {