From a5b22a483661e1049f54e1f846ba2138ea4a4bde Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 7 Nov 2017 12:08:45 +0100 Subject: [PATCH] Added 'in-dev' flag for incomplete views + added 'add' icon for sub-menu + migrated views for: profile, settings --- build/generic/view/history/details/main.twig | 2 +- build/generic/view/profile/password/main.php | 12 +++++ build/generic/view/profile/password/main.twig | 15 ++++++ build/generic/view/profile/view/main.php | 12 +++++ build/generic/view/profile/view/main.twig | 1 + .../view/settings/admin/create/main.php | 12 +++++ .../view/settings/admin/create/main.twig | 14 +++++ .../generic/view/settings/admin/view/main.php | 12 +++++ .../view/settings/admin/view/main.twig | 1 + build/generic/view/settings/password/main.php | 12 +++++ .../generic/view/settings/password/main.twig | 15 ++++++ build/generic/view/settings/view/main.php | 12 +++++ build/generic/view/settings/view/main.twig | 1 + public_html/css/container.scss | 11 +++- public_html/css/min/container.css | 8 ++- public_html/src/static/sub-menu-side/add.svg | 47 +++++++++++++++++ public_html/view/profile.php | 25 +++------ public_html/view/settings.php | 51 +++++++++++-------- 18 files changed, 221 insertions(+), 42 deletions(-) create mode 100644 build/generic/view/profile/password/main.php create mode 100644 build/generic/view/profile/password/main.twig create mode 100644 build/generic/view/profile/view/main.php create mode 100644 build/generic/view/profile/view/main.twig create mode 100644 build/generic/view/settings/admin/create/main.php create mode 100644 build/generic/view/settings/admin/create/main.twig create mode 100644 build/generic/view/settings/admin/view/main.php create mode 100644 build/generic/view/settings/admin/view/main.twig create mode 100644 build/generic/view/settings/password/main.php create mode 100644 build/generic/view/settings/password/main.twig create mode 100644 build/generic/view/settings/view/main.php create mode 100644 build/generic/view/settings/view/main.twig create mode 100644 public_html/src/static/sub-menu-side/add.svg diff --git a/build/generic/view/history/details/main.twig b/build/generic/view/history/details/main.twig index 89e4228..cfa9de2 100644 --- a/build/generic/view/history/details/main.twig +++ b/build/generic/view/history/details/main.twig @@ -1 +1 @@ -details \ No newline at end of file +In development.. This feature will soon be available. \ No newline at end of file diff --git a/build/generic/view/profile/password/main.php b/build/generic/view/profile/password/main.php new file mode 100644 index 0000000..611c9c5 --- /dev/null +++ b/build/generic/view/profile/password/main.php @@ -0,0 +1,12 @@ + + +
+
+ +
+
+ +
+
+ + + + + \ No newline at end of file diff --git a/build/generic/view/profile/view/main.php b/build/generic/view/profile/view/main.php new file mode 100644 index 0000000..1210e78 --- /dev/null +++ b/build/generic/view/profile/view/main.php @@ -0,0 +1,12 @@ +In development.. This feature will soon be available. \ No newline at end of file diff --git a/build/generic/view/settings/admin/create/main.php b/build/generic/view/settings/admin/create/main.php new file mode 100644 index 0000000..3fe6883 --- /dev/null +++ b/build/generic/view/settings/admin/create/main.php @@ -0,0 +1,12 @@ + + +
+
+ +
+
+ +
+ + + + + \ No newline at end of file diff --git a/build/generic/view/settings/admin/view/main.php b/build/generic/view/settings/admin/view/main.php new file mode 100644 index 0000000..ae74d69 --- /dev/null +++ b/build/generic/view/settings/admin/view/main.php @@ -0,0 +1,12 @@ +In development.. This feature will soon be available. \ No newline at end of file diff --git a/build/generic/view/settings/password/main.php b/build/generic/view/settings/password/main.php new file mode 100644 index 0000000..a909b76 --- /dev/null +++ b/build/generic/view/settings/password/main.php @@ -0,0 +1,12 @@ + + +
+
+ +
+
+ +
+
+ + + + + \ No newline at end of file diff --git a/build/generic/view/settings/view/main.php b/build/generic/view/settings/view/main.php new file mode 100644 index 0000000..edc5aa0 --- /dev/null +++ b/build/generic/view/settings/view/main.php @@ -0,0 +1,12 @@ +In development.. This feature will soon be available. \ No newline at end of file diff --git a/public_html/css/container.scss b/public_html/css/container.scss index 2ebd558..187ee34 100755 --- a/public_html/css/container.scss +++ b/public_html/css/container.scss @@ -59,7 +59,7 @@ } // Erreur - .error{ + .error, .in-dev{ display: inline-block; position: relative; width: calc( 100% - 2*1em - 2*1em ); @@ -75,6 +75,15 @@ color: #fff; text-shadow: 1px 1px darken($form-invalid-color, 10); } + + + .in-dev{ + border-color: $form-search-color; + + background: $form-search-color; + + text-shadow: 1px 1px darken($form-search-color, 10); + } } diff --git a/public_html/css/min/container.css b/public_html/css/min/container.css index 16349c1..d73f7f3 100644 --- a/public_html/css/min/container.css +++ b/public_html/css/min/container.css @@ -62,7 +62,7 @@ border-color: #5630ed; } -#WRAPPER > #CONTAINER > section.active .error { +#WRAPPER > #CONTAINER > section.active .error, #WRAPPER > #CONTAINER > section.active .in-dev { display: inline-block; position: relative; width: calc( 100% - 2*1em - 2*1em); @@ -76,6 +76,12 @@ text-shadow: 1px 1px #a72013; } +#WRAPPER > #CONTAINER > section.active .in-dev { + border-color: #5630ed; + background: #5630ed; + text-shadow: 1px 1px #3a13d7; +} + #WRAPPER > #CONTAINER > section > .inline-box, #WRAPPER > #CONTAINER > section > .inline-row { display: inline-block; diff --git a/public_html/src/static/sub-menu-side/add.svg b/public_html/src/static/sub-menu-side/add.svg new file mode 100644 index 0000000..1fa6e5a --- /dev/null +++ b/public_html/src/static/sub-menu-side/add.svg @@ -0,0 +1,47 @@ + +image/svg+xml \ No newline at end of file diff --git a/public_html/view/profile.php b/public_html/view/profile.php index c901aae..5659d1a 100755 --- a/public_html/view/profile.php +++ b/public_html/view/profile.php @@ -1,6 +1,6 @@ @@ -34,13 +34,12 @@ /* MON PROFIL * */ - // if( $sublink == 'view' ){ + echo "
"; - echo "
"; - echo 'Profil'; - echo '
'; + $view = View::load('profile.view'); + echo $view->render(); - // } + echo '
'; @@ -59,18 +58,8 @@ */ echo "
"; - echo ""; + $view = View::load('profile.password'); + echo $view->render(); echo '
'; diff --git a/public_html/view/settings.php b/public_html/view/settings.php index 35a6a16..d9d4e55 100755 --- a/public_html/view/settings.php +++ b/public_html/view/settings.php @@ -1,6 +1,6 @@ @@ -16,35 +16,51 @@ Mot de passe - + Administrateurs + + + Administrateur + + "; + /* INFORMATIONS ENTREPOT + * + */ + echo "
"; + + $view = View::load('settings.view'); + echo $view->render(); + + echo "
"; + /* CHANGEMENT MOT DE PASSE * */ echo "
"; - echo "
'; - echo "
"; - echo "
"; - echo ""; - echo ""; + + /* LISTE ADMINISTRATEURS + * + */ + echo "
"; + + $view = View::load('settings.admin.view'); + echo $view->render(); echo '
'; @@ -55,14 +71,7 @@ */ echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - - echo ""; - echo "
"; + $view = View::load('settings.admin.create'); + echo $view->render(); echo '
'; \ No newline at end of file