From 6754621294eaae2e828c02e63b3f802fbc60f64c Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 5 Nov 2010 09:27:03 +0000 Subject: [PATCH] Updated registration dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20188 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dashBoard/Register/class_RegisterGOsa.inc | 12 ++-- .../generic/dashBoard/Register/register.tpl | 56 ++++++++++++++++++- 2 files changed, 63 insertions(+), 5 deletions(-) diff --git a/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc b/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc index 045603e28..a0eebe39c 100644 --- a/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc +++ b/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc @@ -8,7 +8,7 @@ class GOsaRegistration extends plugin { - + protected $defaultRegistrationType = "registered"; protected $isRegistered = FALSE; function __construct(&$config) @@ -22,20 +22,24 @@ class GOsaRegistration extends plugin function execute() { $smarty = get_smarty(); - + $smarty->assign("default", $this->defaultRegistrationType); return($smarty->fetch(get_template_path("Register/register.tpl", TRUE))); } static function registerGOsa($config, $uuid, $type, $userData = array()) { - echo "
Register GOsa."; print_a(func_get_args()); - } + static function getRegistrationType($config) + { + return($config->configRegistry->getPropertyValue('GOsaRegistration','registerStatus')); + } + + static function isRegistered($config, $uuid = NULL) { $status = $config->configRegistry->getPropertyValue('GOsaRegistration','registerStatus'); diff --git a/gosa-core/plugins/generic/dashBoard/Register/register.tpl b/gosa-core/plugins/generic/dashBoard/Register/register.tpl index 8bd6648ed..5d67160fe 100644 --- a/gosa-core/plugins/generic/dashBoard/Register/register.tpl +++ b/gosa-core/plugins/generic/dashBoard/Register/register.tpl @@ -1 +1,55 @@ -asdf +

{t}GOsa registration{/t}

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

+ {t}I do not want to register{/t} +

+ +

+ + {t}Annonym access{/t} +

+

+

+ +

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

+

+ + {t}Register{/t} +

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

+

+ +

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

+ +

+ +

+ -- 2.30.2