|
|
@@ -31,32 +31,14 @@ class EditGeneralSection extends FreeFieldsSection
|
|
|
/**
|
|
|
* add fields
|
|
|
*/
|
|
|
- $field = new Hidden('id');
|
|
|
+ $field = new Hidden('domain');
|
|
|
$this->addField($field);
|
|
|
|
|
|
- $email =new InputGroup('usernameGroup');
|
|
|
-
|
|
|
- $email->addInputComponent((new InputGroupElements\Text('username'))->addHtmlAttribute('readonly','true'));
|
|
|
- $email->addInputAddon('emailSign', false, '@');
|
|
|
- $email->addInputComponent((new InputGroupElements\Text('domain'))->addHtmlAttribute('readonly','true'));
|
|
|
- $this->addSection($email);
|
|
|
-
|
|
|
- $this->generateDoubleSection([new Text('display_name'), new Select('status')]);
|
|
|
-
|
|
|
- $type = new Select('type');
|
|
|
- $capacity = new Text('capacity');
|
|
|
-
|
|
|
- $this->generateDoubleSection([$type, $capacity]);
|
|
|
-
|
|
|
- $field = new Text('description');
|
|
|
+ $field = new Text('test');
|
|
|
$this->addField($field);
|
|
|
|
|
|
$field = new Text('notes');
|
|
|
$this->addField($field);
|
|
|
|
|
|
- $autoAcceptDecline = new Switcher('auto_accept');
|
|
|
- $autoDeclineBusy = new Switcher('auto_busy');
|
|
|
- $this->generateDoubleSection([$autoAcceptDecline, $autoDeclineBusy]);
|
|
|
-
|
|
|
}
|
|
|
}
|