From 9dd005ce5acf7419607696546900596961889d7c Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 25 Nov 2017 17:06:29 +0100 Subject: [PATCH] responsive settings --- lam/lib/modules/kolabUser.inc | 14 ++++++++++---- lam/lib/modules/pykotaUser.inc | 14 ++++++++++---- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/lam/lib/modules/kolabUser.inc b/lam/lib/modules/kolabUser.inc index 4c370215..e3dd0460 100644 --- a/lam/lib/modules/kolabUser.inc +++ b/lam/lib/modules/kolabUser.inc @@ -110,10 +110,6 @@ class kolabUser extends baseModule { 'type' => 'ext_preg', 'regex' => 'digit', 'error_message' => $this->messages['mailQuota'][0]); - // config options - $configContainer = new htmlTable(); - $configContainer->addElement(new htmlTableExtendedInputCheckbox('kolabUser_mailrecipient', true, _('Manage object class "mailrecipient"'), 'mailrecipient'), true); - $return['config_options']['all'] = $configContainer; // self service field settings $return['selfServiceFieldSettings'] = array( 'kolabDelegate' => _('Delegates'), @@ -993,6 +989,16 @@ class kolabUser extends baseModule { } + /** + * {@inheritDoc} + * @see baseModule::get_configOptions() + */ + public function get_configOptions($scopes, $allScopes) { + $configContainer = new htmlResponsiveRow(); + $configContainer->add(new htmlResponsiveInputCheckbox('kolabUser_mailrecipient', true, _('Manage object class "mailrecipient"'), 'mailrecipient'), 12); + return $configContainer; + } + } diff --git a/lam/lib/modules/pykotaUser.inc b/lam/lib/modules/pykotaUser.inc index 00694a7d..03d0879a 100644 --- a/lam/lib/modules/pykotaUser.inc +++ b/lam/lib/modules/pykotaUser.inc @@ -259,10 +259,6 @@ class pykotaUser extends baseModule { $selfServiceContainer->addElement(new htmlHelpLink('jobSuffix', get_class($this)), true); $return['selfServiceSettings'] = $selfServiceContainer; } - // config options - $configContainer = new htmlTable(); - $configContainer->addElement(new htmlTableExtendedInputField(_('Job suffix'), 'pykotaUser_jobSuffix', '', 'jobSuffix'), true); - $return['config_options']['all'] = $configContainer; // configuration checks $return['config_checks']['all']['pykotaUser_jobSuffix'] = array ( 'type' => 'ext_preg', @@ -1210,6 +1206,16 @@ class pykotaUser extends baseModule { return array_values($jobs); } + /** + * {@inheritDoc} + * @see baseModule::get_configOptions() + */ + public function get_configOptions($scopes, $allScopes) { + $configContainer = new htmlResponsiveRow(); + $configContainer->add(new htmlResponsiveInputField(_('Job suffix'), 'pykotaUser_jobSuffix', '', 'jobSuffix'), 12); + return $configContainer; + } + }