|
@@ -53,21 +53,10 @@ class GeneralSection extends FreeFieldsSection
|
|
|
$this->generateDoubleSection([new Text('display_name'), new Select('status')]);
|
|
$this->generateDoubleSection([new Text('display_name'), new Select('status')]);
|
|
|
/***
|
|
/***
|
|
|
*
|
|
*
|
|
|
- * set cosId dependent od cos_name
|
|
|
|
|
|
|
+ * set type
|
|
|
*/
|
|
*/
|
|
|
- if($productManager->get('cos_name') === ClassOfServices::CLASS_OF_SERVICE_QUOTA)
|
|
|
|
|
- {
|
|
|
|
|
- $field = new Select('cosId');
|
|
|
|
|
- $this->addField($field);
|
|
|
|
|
- }elseif($productManager->get('cos_name') === ClassOfServices::ZIMBRA_CONFIG_OPTIONS)
|
|
|
|
|
- {
|
|
|
|
|
- $field = new Hidden('cosId');
|
|
|
|
|
- $this->addField($field);
|
|
|
|
|
- }elseif($productManager->get('cos_name') !== ClassOfServices::CUSTOM_ZIMBRA)
|
|
|
|
|
- {
|
|
|
|
|
- $field = new Hidden('cosId');
|
|
|
|
|
- $this->addField($field);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ $field = new Select('type');
|
|
|
|
|
+ $this->addField($field);
|
|
|
|
|
|
|
|
$passwd = new Password('password');
|
|
$passwd = new Password('password');
|
|
|
$passwd->setDescription('description');
|
|
$passwd->setDescription('description');
|