From 7a3112b5a29a0000d5921298914e8ce32c110ccb Mon Sep 17 00:00:00 2001 From: Anastasia Date: Tue, 19 Jun 2018 15:48:50 +0300 Subject: [PATCH] add book succes page --- frontend/controllers/BookController.php | 4 ++++ frontend/views/book/success.php | 36 ++++++++++++++++++++++++++++++++++++ frontend/web/js/book.js | 2 +- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 frontend/views/book/success.php diff --git a/frontend/controllers/BookController.php b/frontend/controllers/BookController.php index da49f24..5da3842 100644 --- a/frontend/controllers/BookController.php +++ b/frontend/controllers/BookController.php @@ -126,4 +126,8 @@ ] ); } + + public function actionSuccess(){ + return $this->render('success'); + } } \ No newline at end of file diff --git a/frontend/views/book/success.php b/frontend/views/book/success.php new file mode 100644 index 0000000..f023d3d --- /dev/null +++ b/frontend/views/book/success.php @@ -0,0 +1,36 @@ +params[ 'breadcrumbs'][] = 'Оперіція успішна'; + ?> +
+
+
+
+
Додати книгу
+
+
+
+ +
+
+
+

Ваша книга успішно додана.

+

Вона з'явиться на сайті одразу після модерації адміністратором

+
+ +
+
+
+
+
diff --git a/frontend/web/js/book.js b/frontend/web/js/book.js index 8c5a033..6bf2378 100644 --- a/frontend/web/js/book.js +++ b/frontend/web/js/book.js @@ -175,7 +175,7 @@ } xhr.onreadystatechange = function() { if (xhr.readyState === XMLHttpRequest.DONE) { -// window.location = '/author/index'; + window.location = '/book/success'; } }; -- libgit2 0.21.4