From 53472e75c050ce9b653cc70eeed56715d9a4163e Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 6 Mar 2016 17:09:55 -0500 Subject: Add settings modal to Common MVC This modal dialog will be used to change app and object settings from any page in the app. The link to open it is added to the user button menu. --- app/view/common/setting.modal.view.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 app/view/common/setting.modal.view.php (limited to 'app/view/common/setting.modal.view.php') diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php new file mode 100644 index 0000000..27fb9d2 --- /dev/null +++ b/app/view/common/setting.modal.view.php @@ -0,0 +1,24 @@ + -- cgit v1.2.3 From ae2704f45ead57d437627efe7e4d44a564d923c4 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 6 Mar 2016 22:04:37 -0500 Subject: Add User settings tab for Setting modal This commit adds the basic structure to the Setting modal in Common MVC. The meat of this commit is the content for the webform for the modal's form for user account settings. The next commit should implement form submission handling. --- app/view/common/setting.modal.view.php | 87 ++++++++++++++++++++++++++++++++-- 1 file changed, 82 insertions(+), 5 deletions(-) (limited to 'app/view/common/setting.modal.view.php') diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php index 27fb9d2..90d68f8 100644 --- a/app/view/common/setting.modal.view.php +++ b/app/view/common/setting.modal.view.php @@ -12,12 +12,89 @@ + + +
+
+

 

+ + getCurrentUser()->admin == 1) { ?> +

getCurrentUser()->getDisplayName()?> is a Scrott Administrator

+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ + +
+ +
+ + +
+ +
+ + +
+
+ +
+ + +
+ +
+ + +
+ + getCurrentUser()->email != "" && $mod->getCurrentUser()->emailConf == 0) { ?> +
+ + + You have not yet confirmed ownership of your saved email address +
+ + + +
+ +

 

+
+ + getCurrentUser()->admin == 1) { ?> +
+ admin schings +
+ +
+ all users' schings +
+ +
-- cgit v1.2.3 From 2bf97f71f42bc68b076114834cc65466e9133b9c Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Fri, 11 Mar 2016 19:40:59 -0500 Subject: Add view for Setting modal, admin tab --- app/view/common/setting.modal.view.php | 40 +++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'app/view/common/setting.modal.view.php') diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php index 90d68f8..0735e3f 100644 --- a/app/view/common/setting.modal.view.php +++ b/app/view/common/setting.modal.view.php @@ -87,7 +87,45 @@ getCurrentUser()->admin == 1) { ?>
- admin schings +

 

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ + +
+ +
+ + +
+ +

 

-- cgit v1.2.3 From 3bd0d2779534221af0db22e5b5bc86faaa3b2957 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Fri, 11 Mar 2016 22:25:00 -0500 Subject: Populate admin setting fields on page load Added logic to set initial state of fields on the setting modal's admin tab --- app/view/common/setting.modal.view.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/view/common/setting.modal.view.php') diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php index 0735e3f..909eead 100644 --- a/app/view/common/setting.modal.view.php +++ b/app/view/common/setting.modal.view.php @@ -95,21 +95,21 @@
@@ -118,7 +118,7 @@
-- cgit v1.2.3 From cc755e3756e43109d0db0de963b3a132039456b1 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 12 Mar 2016 15:05:12 -0500 Subject: Alter representation of form boolean values Changed how Form() objects model true and false for boolean fields. Was "true" and "false", is now "1" and "0", respectivly. This is to address how Mysql handles these values as they are pushed to the db. --- app/view/common/setting.modal.view.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/view/common/setting.modal.view.php') diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php index 909eead..d9a834b 100644 --- a/app/view/common/setting.modal.view.php +++ b/app/view/common/setting.modal.view.php @@ -40,7 +40,7 @@
@@ -118,7 +118,7 @@
-- cgit v1.2.3 From d60706acd0ac810783a24d2e33b76f6955d72599 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 13 Mar 2016 16:54:17 -0400 Subject: Add view for setting modal, all users admin tab --- app/view/common/setting.modal.view.php | 54 +++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) (limited to 'app/view/common/setting.modal.view.php') diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php index d9a834b..88a933d 100644 --- a/app/view/common/setting.modal.view.php +++ b/app/view/common/setting.modal.view.php @@ -129,7 +129,59 @@
- all users' schings +

 

+ +
+
+ + +
+
+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ +
+ + +
+ +
+ + +
+ + +
+
+
+
+
-- cgit v1.2.3 From ded0da07ab8d784c7d257a9487fef096032c5521 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 13 Mar 2016 20:51:40 -0400 Subject: Fix