From e51d56e7a54a6d6591a5c921273b0d0a53281185 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 7 Nov 2017 11:37:18 +0100 Subject: [PATCH] Added forms to View() views: group, machine, user + comment and indent correctly --- build/generic/view/group/form/create/main.php | 12 ++++ .../generic/view/group/form/create/main.twig | 17 ++++++ build/generic/view/group/form/edit/main.php | 12 ++++ build/generic/view/group/form/edit/main.twig | 20 +++++++ build/generic/view/group/form/remove/main.php | 12 ++++ .../generic/view/group/form/remove/main.twig | 18 ++++++ .../view/machine/form/create/main.twig | 4 ++ .../generic/view/machine/form/edit/main.twig | 4 ++ .../view/machine/form/remove/main.twig | 3 + build/generic/view/user/form/create/main.php | 12 ++++ build/generic/view/user/form/create/main.twig | 21 +++++++ build/generic/view/user/form/edit/main.php | 12 ++++ build/generic/view/user/form/edit/main.twig | 26 +++++++++ build/generic/view/user/form/remove/main.php | 12 ++++ build/generic/view/user/form/remove/main.twig | 20 +++++++ public_html/view/groups.php | 51 ++-------------- public_html/view/users.php | 58 ++----------------- 17 files changed, 217 insertions(+), 97 deletions(-) create mode 100644 build/generic/view/group/form/create/main.php create mode 100644 build/generic/view/group/form/create/main.twig create mode 100644 build/generic/view/group/form/edit/main.php create mode 100644 build/generic/view/group/form/edit/main.twig create mode 100644 build/generic/view/group/form/remove/main.php create mode 100644 build/generic/view/group/form/remove/main.twig create mode 100644 build/generic/view/user/form/create/main.php create mode 100644 build/generic/view/user/form/create/main.twig create mode 100644 build/generic/view/user/form/edit/main.php create mode 100644 build/generic/view/user/form/edit/main.twig create mode 100644 build/generic/view/user/form/remove/main.php create mode 100644 build/generic/view/user/form/remove/main.twig diff --git a/build/generic/view/group/form/create/main.php b/build/generic/view/group/form/create/main.php new file mode 100644 index 0000000..c4d17ad --- /dev/null +++ b/build/generic/view/group/form/create/main.php @@ -0,0 +1,12 @@ + + +
+
+ + + +
+ + + + + \ No newline at end of file diff --git a/build/generic/view/group/form/edit/main.php b/build/generic/view/group/form/edit/main.php new file mode 100644 index 0000000..7830f49 --- /dev/null +++ b/build/generic/view/group/form/edit/main.php @@ -0,0 +1,12 @@ + + + +
+ + + + groupe 0 sur 0

+
+ +




+ + +
+
+ +
+ + + \ No newline at end of file diff --git a/build/generic/view/group/form/remove/main.php b/build/generic/view/group/form/remove/main.php new file mode 100644 index 0000000..2aff10e --- /dev/null +++ b/build/generic/view/group/form/remove/main.php @@ -0,0 +1,12 @@ + + + +
+ + + + groupe 0 sur 0

+
+ +




+ + +
+
+ + + \ No newline at end of file diff --git a/build/generic/view/machine/form/create/main.twig b/build/generic/view/machine/form/create/main.twig index 6b36a00..a7e8579 100644 --- a/build/generic/view/machine/form/create/main.twig +++ b/build/generic/view/machine/form/create/main.twig @@ -1,5 +1,9 @@
+

+ + +
\ No newline at end of file diff --git a/build/generic/view/machine/form/edit/main.twig b/build/generic/view/machine/form/edit/main.twig index 2553044..b0eaabc 100644 --- a/build/generic/view/machine/form/edit/main.twig +++ b/build/generic/view/machine/form/edit/main.twig @@ -1,4 +1,6 @@
+ +
@@ -8,7 +10,9 @@




+

+
\ No newline at end of file diff --git a/build/generic/view/machine/form/remove/main.twig b/build/generic/view/machine/form/remove/main.twig index 22fb9f2..f73404f 100644 --- a/build/generic/view/machine/form/remove/main.twig +++ b/build/generic/view/machine/form/remove/main.twig @@ -1,4 +1,6 @@
+ +
@@ -8,6 +10,7 @@




+
\ No newline at end of file diff --git a/build/generic/view/user/form/create/main.php b/build/generic/view/user/form/create/main.php new file mode 100644 index 0000000..232f6fe --- /dev/null +++ b/build/generic/view/user/form/create/main.php @@ -0,0 +1,12 @@ + + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + + + + \ No newline at end of file diff --git a/build/generic/view/user/form/edit/main.php b/build/generic/view/user/form/edit/main.php new file mode 100644 index 0000000..880a9ae --- /dev/null +++ b/build/generic/view/user/form/edit/main.php @@ -0,0 +1,12 @@ + + + +
+ + + + utilisateur 0 sur 0

+
+ +




+ + +
+
+
+
+
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/build/generic/view/user/form/remove/main.php b/build/generic/view/user/form/remove/main.php new file mode 100644 index 0000000..2a0df70 --- /dev/null +++ b/build/generic/view/user/form/remove/main.php @@ -0,0 +1,12 @@ + + + +
+ + + + utilisateur 0 sur 0

+
+ +




+ + +
+
+
+
+ + + \ No newline at end of file diff --git a/public_html/view/groups.php b/public_html/view/groups.php index 353e1ad..0ccbe60 100755 --- a/public_html/view/groups.php +++ b/public_html/view/groups.php @@ -80,20 +80,8 @@ =========================================================*/ echo "
"; - echo "
"; - echo "
"; - echo "
"; - - echo ""; - - echo "
"; - - echo ""; - echo "
"; + $view = View::load('group.form.create'); + echo $view->render(); echo '
'; @@ -112,22 +100,8 @@ =========================================================*/ echo "
"; - echo "
"; - // Recherche de groupe - echo "
"; - echo ""; - // Indice du resultat - echo "groupe 0 sur 0

"; - echo "
"; - - - echo "




"; - - // Suppression de groupe - echo "
"; - echo "
"; - echo ""; - echo "
"; + $view = View::load('group.form.remove'); + echo $view->render(); echo '
'; @@ -146,21 +120,8 @@ =========================================================*/ echo "
"; - echo "
"; - echo "
"; - echo ""; - // Indice du resultat - echo "groupe 0 sur 0

"; - echo "
"; - - echo "




"; - - echo "
"; - echo "
"; - - echo "
"; - echo ""; - echo "
"; + $view = View::load('group.form.edit'); + echo $view->render(); echo '
'; diff --git a/public_html/view/users.php b/public_html/view/users.php index 989b774..62aa211 100755 --- a/public_html/view/users.php +++ b/public_html/view/users.php @@ -71,19 +71,8 @@ =========================================================*/ echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo ""; - echo "
"; + $view = View::load('user.form.create'); + echo $view->render(); echo '
'; @@ -102,24 +91,8 @@ =========================================================*/ echo "
"; - echo "
"; - // Recherche d'utilisateur - echo "
"; - echo ""; - // Indice du resultat - echo "utilisateur 0 sur 0

"; - echo "
"; - - - echo "




"; - - // Suppression d'utilisateur - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo ""; - echo "
"; + $view = View::load('user.form.remove'); + echo $view->render(); echo '
'; @@ -138,27 +111,8 @@ =========================================================*/ echo "
"; - echo "
"; - echo "
"; - echo ""; - // Indice du resultat - echo "utilisateur 0 sur 0

"; - echo "
"; - - echo "




"; - - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo "
"; - echo ""; - echo "
"; + $view = View::load('user.form.edit'); + echo $view->render(); echo '
';