✏️ 正在编辑: EmpresaPerfil.php
路径:
/srv/systems_dir/oakberry/application/forms/EmpresaPerfil.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_EmpresaPerfil extends Form_Empresa { private $_disabled = [ 'nome', 'razao_social', 'cnpj', 'cep', 'endereco', 'complemento', 'bairro', 'cidade', 'uf', 'email', 'celular', 'fax', 'fone', 'responsavel', 'cpf_responsavel', ]; private $_hidden = [ 'obs', 'canal_whatsapp', 'zapi_instancia', 'zapi_token', 'zapi_domain', 'integracao_delivery' ]; public function init() { parent::init(); $this->removeElement('back'); $this->removeElement('new'); foreach ($this->_disabled as $field) { $this->getElement($field)->setAttrib('disabled', true); $this->getElement($field)->setAttrib('readonly', true); $this->getElement($field)->setRequired(false); } foreach ($this->_hidden as $field) { $this->addElement('hidden', $field); $this->getElement($field)->setAttrib('disabled', true); $this->getElement($field)->setAttrib('readonly', true); $this->getElement($field)->setRequired(false); unset($this->_fieldsConfiguracoes[$field]); } $this->addDisplayGroup($this->_fieldsConfiguracoes, 'configuracoes', [ 'legend' => 'Configurações' ]); $this->addDisplayGroup($this->_fieldsScore, 'config_score', [ 'legend' => 'Configurações de Score' ]); $this->addDisplayGroup($this->_fieldsCriterios, 'config_score_vip', [ 'legend' => 'Critérios para Score VIP' ]); } }
💾 保存文件
← 返回文件管理器