From: hickert Date: Fri, 5 Nov 2010 09:46:56 +0000 (+0000) Subject: Added navigation to registration process. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=45c40887fe3c8e5c7ad5f4812664ac187c6fe011;p=gosa.git Added navigation to registration process. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20190 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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}