From 45c40887fe3c8e5c7ad5f4812664ac187c6fe011 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 5 Nov 2010 09:46:56 +0000 Subject: [PATCH] Added navigation to registration process. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20190 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dashBoard/Register/class_RegisterGOsa.inc | 7 +- .../generic/dashBoard/Register/register.tpl | 115 ++++++++++-------- 2 files changed, 70 insertions(+), 52 deletions(-) diff --git a/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc b/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc index 4dfc17f65..332021ffe 100644 --- a/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc +++ b/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc @@ -10,6 +10,7 @@ class GOsaRegistration extends plugin { protected $defaultRegistrationType = "registered"; protected $isRegistered = FALSE; + protected $step = 0; function __construct(&$config) { @@ -23,13 +24,17 @@ class GOsaRegistration extends plugin { $smarty = get_smarty(); $smarty->assign("default", $this->defaultRegistrationType); + $smarty->assign("step", $this->step); return($smarty->fetch(get_template_path("Register/register.tpl", TRUE))); } function save_object() { - if(isset($_POST['registrationType'])) $this->defaultRegistrationType = get_post('registrationType'); + if(isset($_POST['registrationType'])) $this->defaultRegistrationType = get_post('registrationType'); + if(isset($_POST['startRegistration'])) $this->step = 1; + + if(isset($_POST['stepBack'])) $this->step -= 1; } diff --git a/gosa-core/plugins/generic/dashBoard/Register/register.tpl b/gosa-core/plugins/generic/dashBoard/Register/register.tpl index 87b4c35ff..76b6f43c3 100644 --- a/gosa-core/plugins/generic/dashBoard/Register/register.tpl +++ b/gosa-core/plugins/generic/dashBoard/Register/register.tpl @@ -1,62 +1,75 @@

{t}GOsa registration{/t}

-{t}Do you want to register GOsa and benefit from the features it brings?{/t} -

- -

- -

+{if $step == 0} - -

-

-

+ {t}Do you want to register GOsa and benefit from the features it brings?{/t} +

+ +

+ +

+ +

+

+

-

- {t}What information will be transmitted to the backend and maybe stored:{/t} -

-

- - -

- {t}Additionally to the 'Annonomous' account you can:{/t} -

-

- -

- {t}What information will be transmitted to the backend and maybe stored:{/t} -

+

+ {t}What information will be transmitted to the backend and maybe stored:{/t} +

+

+ +

+ {t}Additionally to the 'Annonomous' account you can:{/t} +

+

+ +

+ {t}What information will be transmitted to the backend and maybe stored:{/t} +

+

- -

+
+
+ +
+ +{/if} +{if $step == 1} -
+
+
+ +
+{/if} -
- -
+{if $step == 2} +
+
+ +
+{/if} -- 2.30.2