From 90a75e4d301c9f93bf8e26bb80115cb926793eb0 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 21 Oct 2013 23:29:38 +0200 Subject: [PATCH] User edit/delete forms moved to separate files --- src/Views/user-delete.phtml | 21 +++++++++ src/Views/user-edit.phtml | 63 ++++++++++++++++++++++++++ src/Views/user-view.phtml | 89 +------------------------------------ 3 files changed, 86 insertions(+), 87 deletions(-) create mode 100644 src/Views/user-delete.phtml create mode 100644 src/Views/user-edit.phtml diff --git a/src/Views/user-delete.phtml b/src/Views/user-delete.phtml new file mode 100644 index 00000000..516277dd --- /dev/null +++ b/src/Views/user-delete.phtml @@ -0,0 +1,21 @@ +
+ context->user->id == $this->context->transport->user->id): ?> +
+ +
+
+ + + + + context->transport->success === true): ?> +

Account settings updated!

+ context->transport->errorMessage)): ?> +

Error: context->transport->errorMessage ?>

+ + +
+ + +
+
diff --git a/src/Views/user-edit.phtml b/src/Views/user-edit.phtml new file mode 100644 index 00000000..06633d97 --- /dev/null +++ b/src/Views/user-edit.phtml @@ -0,0 +1,63 @@ +
+ context->user->id == $this->context->transport->user->id): ?> +
+ +
+
+
+ + + context->transport->user))): ?> +
+ +
+
+ + + context->transport->user))): ?> + + + + context->transport->user))): ?> +
+ +
+
+
+ +
+
+ + + context->transport->user))): ?> +
+ +
+
+ + + context->transport->success === true): ?> +

Account settings updated! context->mailSent)) echo 'You will be sent new e-mail address confirmation message soon.' ?>

+ context->transport->errorMessage)): ?> +

Error: context->transport->errorMessage ?>

+ + +
+ + +
+
diff --git a/src/Views/user-view.phtml b/src/Views/user-view.phtml index 141e3507..88de28f2 100644 --- a/src/Views/user-view.phtml +++ b/src/Views/user-view.phtml @@ -153,94 +153,9 @@ context->transport->tab == 'edit'): ?> -
- context->user->id == $this->context->transport->user->id): ?> -
- -
-
-
- - - context->transport->user))): ?> -
- -
-
- - - context->transport->user))): ?> - - - - context->transport->user))): ?> -
- -
-
-
- -
-
- - - context->transport->user))): ?> -
- -
-
- - - context->transport->success === true): ?> -

Account settings updated! context->mailSent)) echo 'You will be sent new e-mail address confirmation message soon.' ?>

- context->transport->errorMessage)): ?> -

Error: context->transport->errorMessage ?>

- - -
- - -
-
- + renderFile('user-edit') ?> context->transport->tab == 'delete'): ?> - -
- context->user->id == $this->context->transport->user->id): ?> -
- -
-
- - - - - context->transport->success === true): ?> -

Account settings updated!

- context->transport->errorMessage)): ?> -

Error: context->transport->errorMessage ?>

- - -
- - -
-
- + renderFile('user-delete') ?>