diff --git a/app/availableplugins/ApiConnector/src/Model/Table/ApiSourcesTable.php b/app/availableplugins/ApiConnector/src/Model/Table/ApiSourcesTable.php
index fd4b255e4..cf4fd5866 100644
--- a/app/availableplugins/ApiConnector/src/Model/Table/ApiSourcesTable.php
+++ b/app/availableplugins/ApiConnector/src/Model/Table/ApiSourcesTable.php
@@ -189,7 +189,7 @@ protected function mapApiToRegistry(string $model, array $attributes): array {
*/
public function remove(
- \App\Model\Entity\ExternalIdentitySource $source,
+ \App\Model\Entity\ExternalIdentitySource $source,
string $sorId
): array {
// We call this remove() so as not to interfere with the default table::delete().
@@ -293,7 +293,7 @@ protected function resultToEntityData(array $result): array {
*/
public function retrieve(
- \App\Model\Entity\ExternalIdentitySource $source,
+ \App\Model\Entity\ExternalIdentitySource $source,
string $source_key
): array {
$ret = [
@@ -328,7 +328,7 @@ public function retrieve(
*/
public function search(
- \App\Model\Entity\ExternalIdentitySource $source,
+ \App\Model\Entity\ExternalIdentitySource $source,
array $searchAttrs
): array {
$ret = [];
diff --git a/app/availableplugins/ApiConnector/templates/ApiSources/fields.inc b/app/availableplugins/ApiConnector/templates/ApiSources/fields.inc
index 6eb871263..8bd3e6ec6 100644
--- a/app/availableplugins/ApiConnector/templates/ApiSources/fields.inc
+++ b/app/availableplugins/ApiConnector/templates/ApiSources/fields.inc
@@ -30,8 +30,15 @@ if($vv_action == 'add' || $vv_action == 'edit') {
print '
= __d('information','ExternalIdentitySourceRecords.metadata') ?>
diff --git a/app/templates/ExternalIdentitySources/search.php b/app/templates/ExternalIdentitySources/search.php
index a7b841cec..65c166613 100644
--- a/app/templates/ExternalIdentitySources/search.php
+++ b/app/templates/ExternalIdentitySources/search.php
@@ -42,7 +42,10 @@
- = $this->Alert->alert(__d('information', 'ExternalIdentitySources.search.attrs.none'), 'information', false) ?>
+ = $this->element('notify/alert', [
+ 'message' => __d('information', 'ExternalIdentitySources.search.attrs.none'),
+ 'type' => 'information'
+ ]) ?>
- = $this->Alert->alert($b, 'warning') ?>
+ = $this->element('notify/alert', ['message' => $b]) ?>
- = $this->Alert->alert($b, 'warning') ?>
+ = $this->element('notify/alert', ['message' => $b]) ?>
diff --git a/app/templates/element/filter/dateTimeFilters.php b/app/templates/element/filter/dateTimeFilters.php
index 4c7440dba..a3ad78d2f 100644
--- a/app/templates/element/filter/dateTimeFilters.php
+++ b/app/templates/element/filter/dateTimeFilters.php
@@ -42,7 +42,7 @@
Form->label("{$key}_starts_at", __d('field', 'starts_at'), ['class' => 'filter-datepicker-lbl']);
- print $this->Field->dateField("{$key}_starts_at", DateTypeEnum::DateOnly, $query)['controlCode'];
+ print $this->Fieeld->dateField("{$key}_starts_at", DateTypeEnum::DateOnly, $query);
?>
@@ -50,7 +50,7 @@
Form->label("{$key}_ends_at", __d('field','ends_at'), ['class' => 'filter-datepicker-lbl']);
- print $this->Field->dateField("{$key}_ends_at", DateTypeEnum::DateOnly, $query)['controlCode'];
+ print $this->Fieeld->dateField("{$key}_ends_at", DateTypeEnum::DateOnly, $query);
?>
diff --git a/app/templates/element/flash.php b/app/templates/element/flash.php
index 5c6a91f26..3809206e3 100644
--- a/app/templates/element/flash.php
+++ b/app/templates/element/flash.php
@@ -32,13 +32,13 @@
- = $this->Alert->alert($b, 'warning') ?>
+ = $this->element('notify/alert', ['message' => $b]) ?>
- = $this->Alert->alert($b, 'warning') ?>
+ = $this->element('notify/alert', ['message' => $b]) ?>
\ No newline at end of file
diff --git a/app/templates/element/flash/default.php b/app/templates/element/flash/default.php
index 325e35513..7484ee14a 100644
--- a/app/templates/element/flash/default.php
+++ b/app/templates/element/flash/default.php
@@ -8,6 +8,6 @@
- = $this->Alert->alert($message, 'warning', true) ?>
+ = $this->element('notify/alert', ['message' => $message]) ?>
diff --git a/app/templates/element/flash/error.php b/app/templates/element/flash/error.php
index 8069a15da..c77a0eac9 100644
--- a/app/templates/element/flash/error.php
+++ b/app/templates/element/flash/error.php
@@ -8,5 +8,9 @@
- = $this->Alert->alert($message, 'danger', true) ?>
+ = $this->element('notify/alert', [
+ 'message' => $message,
+ 'type' => 'danger',
+ 'dismissible' => true
+ ]) ?>
diff --git a/app/templates/element/flash/information.php b/app/templates/element/flash/information.php
index 26dc52329..c7b7b83b1 100644
--- a/app/templates/element/flash/information.php
+++ b/app/templates/element/flash/information.php
@@ -8,5 +8,9 @@
- = $this->Alert->alert($message, 'information', true) ?>
+ = $this->element('notify/alert', [
+ 'message' => $message,
+ 'type' => 'information',
+ 'dismissible' => true
+ ]) ?>
\ No newline at end of file
diff --git a/app/templates/element/flash/success.php b/app/templates/element/flash/success.php
index 6f0671bb0..17c7469d5 100644
--- a/app/templates/element/flash/success.php
+++ b/app/templates/element/flash/success.php
@@ -8,5 +8,9 @@
- = $this->Alert->alert($message, 'success', true) ?>
+ = $this->element('notify/alert', [
+ 'message' => $message,
+ 'type' => 'success',
+ 'dismissible' => true
+ ]) ?>
\ No newline at end of file
diff --git a/app/templates/element/form/infoDiv/autocomplete.php b/app/templates/element/form/infoDiv/autocomplete.php
index 02477afab..787a54c1a 100644
--- a/app/templates/element/form/infoDiv/autocomplete.php
+++ b/app/templates/element/form/infoDiv/autocomplete.php
@@ -51,7 +51,7 @@
Form->hidden($fieldName, $vv_field_arguments['options']) . $this->element('peopleAutocomplete', $autocompleteArgs);
+ print $this->Form->hidden($fieldName, $vv_field_arguments['fieldOptions']) . $this->element('peopleAutocomplete', $autocompleteArgs);
?>
info
diff --git a/app/templates/element/menuPanel.php b/app/templates/element/menuPanel.php
index d4065b255..8790380c3 100644
--- a/app/templates/element/menuPanel.php
+++ b/app/templates/element/menuPanel.php
@@ -485,7 +485,11 @@
];
?>
- = $this->Alert->alert(__d('information','cmp.config.notice', $noticeUrls), 'information', true) ?>
+ = $this->element('notify/alert', [
+ 'message' => __d('information','cmp.config.notice', $noticeUrls),
+ 'type' => 'information',
+ 'dismissible' => true
+ ]) ?>
diff --git a/app/templates/element/notify/alert.php b/app/templates/element/notify/alert.php
new file mode 100644
index 000000000..2d316f8ea
--- /dev/null
+++ b/app/templates/element/notify/alert.php
@@ -0,0 +1,65 @@
+
+
+
+
+
+ = $this->Alert->getAlertIcon($type) ?>
+
+ = $title ?>
+
+
+
+ = $message ?>
+
+ element('notify/closeButton');
+ }
+ ?>
+
+
diff --git a/app/templates/element/banner.php b/app/templates/element/notify/banner.php
similarity index 95%
rename from app/templates/element/banner.php
rename to app/templates/element/notify/banner.php
index c0393c6c1..27bfdfbaa 100644
--- a/app/templates/element/banner.php
+++ b/app/templates/element/notify/banner.php
@@ -35,5 +35,5 @@
- = $this->Alert->alert($info, 'warning') ?>
+ = $this->element('notify/alert', ['message' => $info]) ?>
diff --git a/app/templates/element/notify/closeButton.php b/app/templates/element/notify/closeButton.php
new file mode 100644
index 000000000..b7f5efa99
--- /dev/null
+++ b/app/templates/element/notify/closeButton.php
@@ -0,0 +1,35 @@
+
+
+
+
+
\ No newline at end of file