Skip to content

Commit

Permalink
Update SessoesForm.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jhowbhz committed Feb 13, 2022
1 parent c59d9d3 commit 901f479
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions module/Sessoes/src/Form/SessoesForm.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<?php

namespace Sessoes\Form;
use \Zend\Form\Element;
class SessoesForm extends \Zend\Form\Form
{
public function __construct()
{
parent::__construct('sessoes', []);

$this->add(new \Zend\Form\Element\Hidden('id'));
$this->add(new \Zend\Form\Element\Text('name', ['label' => 'Nome da sessão',]));
$this->add(new \Zend\Form\Element\Text('description', ['label' => 'Descrição / Observações']));
$this->add(new Element\Hidden('id'));
$this->add(new Element\Text('name', ['label' => 'Nome da sessão',]));
$this->add(new Element\TextArea('description', ['label' => 'Descrição / Observações']));


$this->add(new \Zend\Form\Element\Text('server', ['label' => 'Servidor:porta']));
$this->add(new \Zend\Form\Element\Text('sessionkey', ['label' => 'Chave da sessão (sessionkey)']));
$this->add(new \Zend\Form\Element\Text('session', ['label' => 'Aparelho (sessioname)']));
$this->add(new \Zend\Form\Element\Text('apitoken', ['label' => 'API Token (apitoken)']));
$this->add(new Element\Text('server', ['label' => 'Servidor:porta']));
$this->add(new Element\Text('sessionkey', ['label' => 'Chave da sessão (sessionkey)']));
$this->add(new Element\Text('session', ['label' => 'Aparelho (sessioname)']));
$this->add(new Element\Text('apitoken', ['label' => 'API Token (apitoken)']));

//$this->add(new \Text('status'));
$this->add(new \Zend\Form\Element\Text('wh_status', ['label' => 'Webhook status']));
$this->add(new \Zend\Form\Element\Text('wh_message', ['label' => 'Webhook mensagens']));
$this->add(new \Zend\Form\Element\Text('wh_qrcode', ['label' => 'Webhook QR Code']));
$this->add(new \Zend\Form\Element\Text('wh_connect', ['label' => 'Webhook conexão']));
$this->add(new Element\Text('wh_status', ['label' => 'Webhook status']));
$this->add(new Element\Text('wh_message', ['label' => 'Webhook mensagens']));
$this->add(new Element\Text('wh_qrcode', ['label' => 'Webhook QR Code']));
$this->add(new Element\Text('wh_connect', ['label' => 'Webhook conexão']));

$submit = new \Zend\Form\Element\Submit('submit');
$submit = new Element\Submit('submit');
$submit->setAttributes(['value' => 'Salvar sessão', 'class' => 'btn btn-primary float-end', 'id' => 'submit']);
$this->add($submit);
}
Expand Down

0 comments on commit 901f479

Please sign in to comment.