✏️ 正在编辑: Credentials.php
路径:
/srv/systems_dir/oakberry/application/forms/Credentials.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Credentials extends Yuppie_Form_Save { protected $colLabel = 4; protected $colInput = 12; protected $colWrapper = 12; public function init() { $this->addElement('text', 'api_key', [ 'label' => 'API Key:', 'description' => 'Clique para copiar', 'onclick' => "selectAll('api_key')" ]); $this->addElement("textarea", "client_id", [ 'label' => 'Client ID:', 'rows' => 5, 'cols' => 90, 'description' => 'Clique para copiar. Visível por até 1h.', 'onclick' => "selectAll('client_id')" ]); $this->addElement("textarea", "client_secret", [ 'label' => 'Client Secret:', 'rows' => 5, 'cols' => 90, 'description' => 'Clique para copiar. Visível por até 1h.', 'onclick' => "selectAll('client_secret')" ]); $this->_initButtons(); } protected function _initButtons() { $this->addElement('submit', 'new', [ 'label' => 'Gerar Novas Credenciais e Desativar Antigas', 'iconLeft' => 'glyphicon glyphicon-ok', 'buttonType' => 'primary', 'ignore' => true, 'class' => 'btn-xs-block' ]); $this->addElement('submit', 'revoke', [ 'label' => 'Revogar todos os acessos de API', 'iconLeft' => 'glyphicon glyphicon-close', 'buttonType' => 'danger', 'ignore' => true, 'class' => 'btn-xs-block' ]); $this->addDisplayGroup( ['new', 'revoke'], 'buttons', [ 'decorators' => [ 'FormElements', ['HtmlTag', [ 'class' => 'col-sm-12 buttons', 'tag' => 'div' ] ] ] ] ); } }
💾 保存文件
← 返回文件管理器