From 1123ed958f7c22116a0c432779aaf1c27fcaf787 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 27 Feb 2017 12:31:06 -0800 Subject: basic editing support * new route `/edit?url=` intended to be used as an edit button target, which detects the type of post and redirects to the appropriate editing interface * implemented the edit interface for favorites --- views/auth_start.php | 3 ++- views/edit/error.php | 13 +++++++++++++ views/new-favorite.php | 13 +++++++------ 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 views/edit/error.php (limited to 'views') diff --git a/views/auth_start.php b/views/auth_start.php index 1fe0cdb..d41ffb4 100644 --- a/views/auth_start.php +++ b/views/auth_start.php @@ -56,7 +56,8 @@

Choose the scope to request:

diff --git a/views/edit/error.php b/views/edit/error.php new file mode 100644 index 0000000..ede6e0d --- /dev/null +++ b/views/edit/error.php @@ -0,0 +1,13 @@ +
+ + +

Error

+ +

summary) ?>

+ +
+

error) ?>

+ error_description) ?> +
+ +
\ No newline at end of file diff --git a/views/new-favorite.php b/views/new-favorite.php index 9f191e8..524bb79 100644 --- a/views/new-favorite.php +++ b/views/new-favorite.php @@ -2,21 +2,22 @@
- +
- - + +
- +
+
@@ -27,7 +28,6 @@ -