| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace ThurData\Servers\KerioEmail\App\UI\Client\Ressource\Sections;
- use ThurData\Servers\KerioEmail\App\Libs\Product\ProductManager;
- use ThurData\Servers\KerioEmail\App\Libs\Kerio\Components\Api\Soap\Repository\ClassOfServices;
- use ThurData\Servers\KerioEmail\App\Traits\FormExtendedTrait;
- use ThurData\Servers\KerioEmail\App\UI\Admin\Custom\Sections\FreeFieldsSection;
- use ThurData\Servers\KerioEmail\App\Validators\PasswordsValidator;
- use ThurData\Servers\KerioEmail\App\Validators\RepeatPasswordValidator;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Hidden;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Password;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Select;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Text;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Switcher;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Number;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Sections\InputGroup;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\InputGroupElements;
- /**
- *
- * Created by PhpStorm.
- * User: ThurData
- * Date: 12.11.19
- * Time: 13:39
- * Class GeneralSection
- */
- class GeneralSection extends FreeFieldsSection
- {
- protected $id = 'generalSection';
- protected $name = 'generalSection';
- use FormExtendedTrait;
- public function initContent()
- {
- /**
- * hosting id
- */
- $hid = $this->getRequestValue('id');
- /**
- * product manager allow to check product settings
- */
- $productManager = new ProductManager();
- $productManager->loadByHostingId($hid);
- $email = new InputGroup('usernameGroup');
- $email->addTextField('name', false, true);
- $email->addInputAddon('emailSign', false, '@');
- $email->addInputComponent((new InputGroupElements\Text('domain'))->addHtmlAttribute('readonly','true'));
- $this->addSection($email);
- $this->generateDoubleSection([new Text('description'), new Select('type')]);
- $this->generateDoubleSection([new Select('manager'), new Select('status')]);
- }
- }
|