/** * */ public function init() { $this->add(['name' => 'name', 'type' => 'text', 'options' => ['label' => 'Nama Bisnis'], 'attributes' => ['placeholder' => 'Nama Bisnis', 'autofocus' => true]]); $this->add(['name' => 'billing_user', 'type' => 'select', 'options' => ['label' => 'Billing User', 'options' => $this->getUserOptions(), 'disable_inarray_validator' => true], 'attributes' => []]); $this->add(['name' => 'address', 'type' => 'textarea', 'options' => ['label' => 'Alamat'], 'attributes' => ['placeholder' => 'Alamat', 'rows' => 4]]); $this->add(['name' => 'phone', 'type' => 'text', 'options' => ['label' => 'Kontak/Telp.'], 'attributes' => ['placeholder' => 'Kontak/Telp.', 'autofocus' => true]]); $this->add(['name' => 'fax', 'type' => 'text', 'options' => ['label' => 'Fax'], 'attributes' => ['placeholder' => 'Fax', 'autofocus' => true]]); $this->add(['name' => 'email', 'type' => 'email', 'options' => ['label' => 'Email'], 'attributes' => ['placeholder' => 'Email']]); $this->add(['name' => 'website', 'type' => 'text', 'options' => ['label' => 'Website'], 'attributes' => ['placeholder' => 'Website']]); $this->add(['name' => 'facebook', 'type' => 'text', 'options' => ['label' => 'Facebook'], 'attributes' => ['placeholder' => 'Facebook']]); $this->add(['name' => 'twitter', 'type' => 'text', 'options' => ['label' => 'Twitter'], 'attributes' => ['placeholder' => 'Twitter']]); $this->add(['name' => 'default_timezone', 'type' => 'select', 'options' => ['label' => 'Zona Waktu', 'options' => FormUtil::getTimezoneOptions()], 'attributes' => []]); $this->add(['name' => 'default_currency', 'type' => 'select', 'options' => ['label' => 'Mata Uang', 'options' => FormUtil::getCurrencyOptions()], 'attributes' => []]); $this->add(['name' => 'default_locale', 'type' => 'select', 'options' => ['label' => 'Lokal', 'options' => FormUtil::getCountryOptions()], 'attributes' => []]); }
/** * */ public function init() { $this->add(['name' => 'name', 'type' => 'text', 'options' => ['label' => 'Nama Bisnis'], 'attributes' => ['placeholder' => 'Nama Bisnis', 'autofocus' => true]]); $this->add(['name' => 'address', 'type' => 'textarea', 'options' => ['label' => 'Alamat'], 'attributes' => ['placeholder' => 'Alamat', 'rows' => 11]]); $this->add(['name' => 'phone', 'type' => 'text', 'options' => ['label' => 'Kontak/Telp.'], 'attributes' => ['placeholder' => 'Kontak/Telp.', 'autofocus' => true]]); $this->add(['name' => 'fax', 'type' => 'text', 'options' => ['label' => 'Fax'], 'attributes' => ['placeholder' => 'Fax', 'autofocus' => true]]); $this->add(['name' => 'email', 'type' => 'email', 'options' => ['label' => 'Email'], 'attributes' => ['placeholder' => 'Email']]); $this->add(['name' => 'website', 'type' => 'text', 'options' => ['label' => 'Website'], 'attributes' => ['placeholder' => 'Website']]); $this->add(['name' => 'facebook', 'type' => 'text', 'options' => ['label' => 'Facebook'], 'attributes' => ['placeholder' => 'Facebook']]); $this->add(['name' => 'twitter', 'type' => 'text', 'options' => ['label' => 'Twitter'], 'attributes' => ['placeholder' => 'Twitter']]); $this->add(['name' => 'default_timezone', 'type' => 'select', 'options' => ['label' => 'Zona Waktu', 'options' => FormUtil::getTimezoneOptions()], 'attributes' => []]); $this->add(['name' => 'default_currency', 'type' => 'select', 'options' => ['label' => 'Mata Uang', 'options' => FormUtil::getCurrencyOptions()], 'attributes' => []]); $this->add(['name' => 'default_locale', 'type' => 'select', 'options' => ['label' => 'Lokal', 'options' => FormUtil::getCountryOptions()], 'attributes' => []]); $this->add(['name' => 'max_users', 'type' => 'number', 'options' => ['label' => 'Max. User', 'step' => 1], 'attributes' => []]); $this->add(['name' => 'max_outlets', 'type' => 'number', 'options' => ['label' => 'Max. Outlet', 'step' => 1], 'attributes' => []]); $this->add(['name' => 'max_warehouses', 'type' => 'number', 'options' => ['label' => 'Max. Gudang', 'step' => 1], 'attributes' => []]); $this->add(['name' => 'max_menus', 'type' => 'number', 'options' => ['label' => 'Max. Menu', 'step' => 1], 'attributes' => []]); $this->add(['name' => 'max_stock_items', 'type' => 'number', 'options' => ['label' => 'Max. Item Stok', 'step' => 1], 'attributes' => []]); $this->add(['name' => 'next_due_date', 'type' => 'date', 'options' => ['label' => 'Tgl. Jatuh Tempo'], 'attributes' => []]); $this->add(['name' => 'user_name', 'type' => 'text', 'options' => ['label' => 'Nama'], 'attributes' => ['placeholder' => 'Nama']]); $this->add(['name' => 'user_email', 'type' => 'email', 'options' => ['label' => 'Email'], 'attributes' => ['placeholder' => 'Email']]); $this->add(['name' => 'password', 'type' => 'password', 'options' => ['label' => 'Password'], 'attributes' => ['placeholder' => 'Password']]); $this->add(['name' => 'confirm_password', 'type' => 'password', 'options' => ['label' => 'Konfirmasi Password'], 'attributes' => ['placeholder' => 'Konfirmasi Password']]); }