Beispiel #1
0
 public function edit($entity)
 {
     parent::edit($entity);
     $this->edit = \DataEdit::source(new \App\Pessoas());
     $this->edit->label('Mailling');
     $this->edit->add('nome', 'Nome', 'text');
     $this->edit->add('sexo', 'Sexo', 'text');
     $this->edit->add('nascimento', 'Nascimento', 'text');
     $this->edit->add('responsavel', 'Responsável', 'text');
     $this->edit->add('email', 'Email', 'text');
     $this->edit->add('tel-fixo', 'Telefone Fixo', 'text');
     $this->edit->add('tel-celular', 'Telefone Celular', 'text');
     $this->edit->add('rua', 'Logradouro', 'text');
     $this->edit->add('numero', 'Numero', 'text');
     $this->edit->add('complemento', 'Complemento', 'text');
     $this->edit->add('bairro', 'bairro', 'text');
     $this->edit->add('cidade', 'cidade', 'text');
     $this->edit->add('estado', 'estado', 'text');
     $this->edit->add('id_grupo', 'Grupo', 'select')->options(\App\Grupos::lists("nome", "id")->all());
     $this->edit->add('id_programa', 'Programa', 'select')->options(\App\Programas::lists("nome", "id")->all());
     return $this->returnEditView();
 }