diff --git a/controllers/publics/Webhook.php b/controllers/publics/Webhook.php index 1090fde..0ee9862 100644 --- a/controllers/publics/Webhook.php +++ b/controllers/publics/Webhook.php @@ -121,7 +121,7 @@ namespace controllers\publics; if (!$this->internal_webhook->create($_SESSION['user']['id'], $url, $type)) { - \FlashMessage\FlashMessage::push('danger', 'Impossible de créer ce webhook.'); + \FlashMessage\FlashMessage::push('danger', 'Impossible de créer ce webhook, vérifiez qu\'il s\'agit bien d\'une URL HTTP(S) valide.'); return $this->redirect(\descartes\Router::url('Webhook', 'add')); } diff --git a/index.php b/index.php index 4720b96..5774b7b 100644 --- a/index.php +++ b/index.php @@ -13,6 +13,10 @@ $_SESSION['csrf'] = str_shuffle(uniqid().uniqid()); } + //Save previous $_POST for re-populate forms on validation errors + $_SESSION['previous_http_post'] = $_SESSION['http_post'] ?? []; + $_SESSION['http_post'] = $_POST; + //Routing current query try { diff --git a/templates/command/add.php b/templates/command/add.php index 2cdae44..575bc17 100644 --- a/templates/command/add.php +++ b/templates/command/add.php @@ -41,21 +41,21 @@
- +
- +
- Oui - Non + /> Oui + /> Non
Annuler diff --git a/templates/conditional_group/add.php b/templates/conditional_group/add.php index 3cfeb89..f166897 100644 --- a/templates/conditional_group/add.php +++ b/templates/conditional_group/add.php @@ -42,7 +42,7 @@
- +
@@ -51,7 +51,7 @@ Les conditions vous permettent de définir dynamiquement les contacts qui appartiennent au groupe en utilisant leurs données additionnelles. Pour plus d'informations consultez la documentation relative à l'utilisation des groupes conditionnels.
Vous pouvez prévisualiser les contacts qui feront parti du groupe en cliquant sur le bouton "Prévisualiser les contacts".

- +
Prévisualiser les contacts
diff --git a/templates/contact/add.php b/templates/contact/add.php index 98de19f..4f6408f 100644 --- a/templates/contact/add.php +++ b/templates/contact/add.php @@ -42,15 +42,15 @@
- +
- +
-
+

@@ -58,6 +58,16 @@ Laissez vide si vous ne souhaitez pas renseigner d'informations supplémentaires pour le contact. Utilisez uniquement des lettres, des chiffres et des underscore pour les noms de données, ni espace ni caractères spéciaux.

+ $value) { ?> + +
+ + : + + +
+ +
: diff --git a/templates/group/add.php b/templates/group/add.php index a137090..c49d04c 100644 --- a/templates/group/add.php +++ b/templates/group/add.php @@ -42,12 +42,12 @@
- +
- +
Annuler diff --git a/templates/phone/add.php b/templates/phone/add.php index d1c50f9..1b1a84a 100644 --- a/templates/phone/add.php +++ b/templates/phone/add.php @@ -44,7 +44,7 @@ Le nom du téléphone qui enverra et recevra les messages.

- +
@@ -58,6 +58,7 @@ value="" data-description="s($adapter['meta_description']); ?>" data-datas-fields="s(json_encode($adapter['meta_datas_fields'])); ?>" + > s($adapter['meta_name']); ?> diff --git a/templates/phone/list.php b/templates/phone/list.php index 8dcd8bc..65111a7 100644 --- a/templates/phone/list.php +++ b/templates/phone/list.php @@ -5,7 +5,7 @@ ?>
render('incs/nav', ['page' => 'phone']) + $this->render('incs/nav', ['page' => 'phones']) ?>
diff --git a/templates/scheduled/add.php b/templates/scheduled/add.php index d4fe041..cbb3f90 100644 --- a/templates/scheduled/add.php +++ b/templates/scheduled/add.php @@ -49,7 +49,7 @@ Vous pouvez obtenir une prévisualisation du résultat pour un contact en cliquant sur le boutton "Prévisualiser".

- +
@@ -74,7 +74,7 @@
- +
@@ -88,24 +88,24 @@
- +
- +
- +
- Oui - Non + /> Oui + /> Non
@@ -115,7 +115,7 @@
diff --git a/templates/user/add.php b/templates/user/add.php index bfac493..974f243 100644 --- a/templates/user/add.php +++ b/templates/user/add.php @@ -42,22 +42,22 @@
- +
- +
- Oui - Non + /> Oui + /> Non
diff --git a/templates/webhook/add.php b/templates/webhook/add.php index 84cab54..3fc35b9 100644 --- a/templates/webhook/add.php +++ b/templates/webhook/add.php @@ -39,14 +39,14 @@
- +
Annuler