From: hickert Date: Fri, 5 Nov 2010 11:06:34 +0000 (+0000) Subject: Updated registration template X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=471afac398346d0bd2600dc130b9f49c71567ecc;p=gosa.git Updated registration template -Added personal input fields git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20191 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 332021ffe..986a6bded 100644 --- a/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc +++ b/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc @@ -12,10 +12,15 @@ class GOsaRegistration extends plugin protected $isRegistered = FALSE; protected $step = 0; + public $attrs = array('mailAddress','surname','givenName', 'company', 'clients', 'knownFrom'); + protected $values = array(); + function __construct(&$config) { $this->config = $config; $this->isRegistered = GOsaRegistration::isRegistered($this->config); + + foreach($this->attrs as $attr) $this->values[$attr] = ""; } @@ -25,6 +30,12 @@ class GOsaRegistration extends plugin $smarty = get_smarty(); $smarty->assign("default", $this->defaultRegistrationType); $smarty->assign("step", $this->step); + + + + foreach($this->attrs as $attr) $smarty->assign($attr, $this->values[$attr]); + + return($smarty->fetch(get_template_path("Register/register.tpl", TRUE))); } diff --git a/gosa-core/plugins/generic/dashBoard/Register/register.tpl b/gosa-core/plugins/generic/dashBoard/Register/register.tpl index 76b6f43c3..bf9b8306f 100644 --- a/gosa-core/plugins/generic/dashBoard/Register/register.tpl +++ b/gosa-core/plugins/generic/dashBoard/Register/register.tpl @@ -60,9 +60,65 @@ {if $step == 1} + {if $default == ""} + {t}Selected registration type:{/t} {$default} + {elseif $default == "annonym"} + {t}Selected registration type:{/t} {$default} + {elseif $default == "registered"} + +

+ {t}Please fill in the fields below.{/t} +
+ ({$must} {t}Required fields{/t}) +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ + + {/if} +
+
{/if}