diff --git a/templates/Individuals/index.php b/templates/Individuals/index.php index 02908d3..91520e1 100644 --- a/templates/Individuals/index.php +++ b/templates/Individuals/index.php @@ -10,7 +10,6 @@ echo $this->element('genericElements/IndexTable/index_table', [ 'data' => [ 'type' => 'simple', 'text' => __('Add individual'), - 'class' => 'btn btn-primary', 'popover_url' => '/individuals/add' ] ] diff --git a/templates/element/genericElements/ListTopBar/element_simple.php b/templates/element/genericElements/ListTopBar/element_simple.php index 4e2f401..d0bd940 100644 --- a/templates/element/genericElements/ListTopBar/element_simple.php +++ b/templates/element/genericElements/ListTopBar/element_simple.php @@ -47,7 +47,7 @@ } $dataFields = implode(' ', $dataFields); echo sprintf( - '', + '', empty($data['class']) ? '' : h($data['class']), empty($data['isFilter']) ? 'btn-primary' : (empty($data['active']) ? 'btn-light' : 'btn-secondary'), // Change the default class for highlighted/active toggles here empty($data['id']) ? '' : 'id="' . h($data['id']) . '"', diff --git a/templates/element/genericElements/ListTopBar/group_context_filters.php b/templates/element/genericElements/ListTopBar/group_context_filters.php index e2b12c8..3966c57 100644 --- a/templates/element/genericElements/ListTopBar/group_context_filters.php +++ b/templates/element/genericElements/ListTopBar/group_context_filters.php @@ -37,7 +37,9 @@ if (isset($data['requirement'])) { $dataGroup['requirement'] = $data['requirement']; } + echo '
'; \ No newline at end of file diff --git a/templates/element/genericElements/ListTopBar/group_simple.php b/templates/element/genericElements/ListTopBar/group_simple.php index 0f286ab..2c79909 100644 --- a/templates/element/genericElements/ListTopBar/group_simple.php +++ b/templates/element/genericElements/ListTopBar/group_simple.php @@ -5,7 +5,7 @@ $elements .= $this->element('/genericElements/ListTopBar/element_' . (empty($element['type']) ? 'simple' : h($element['type'])), array('data' => $element, 'tableRandomValue' => $tableRandomValue)); } echo sprintf( - '