Commit 7de1988bcb9124e7f726e7eff65e120b4695c173
1 parent
3bdeebd1
Exists in
master
inserindo último usuário logado
Showing
1 changed file
with
77 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,77 @@ |
1 | +<?php | |
2 | + | |
3 | +namespace Cacic\CommonBundle\Form\Type; | |
4 | + | |
5 | +use Symfony\Component\Form\AbstractType; | |
6 | +use Symfony\Component\Form\FormBuilderInterface; | |
7 | + | |
8 | +/** | |
9 | + * | |
10 | + * Formulário de Consulta de usuários logado | |
11 | + * @author lightbase | |
12 | + * | |
13 | + */ | |
14 | +class LogUserLogadoType extends AbstractType | |
15 | +{ | |
16 | + | |
17 | + public function buildForm( FormBuilderInterface $builder, array $options ) | |
18 | + { | |
19 | + | |
20 | + $builder->add( | |
21 | + 'selConsulta', | |
22 | + 'choice', | |
23 | + array( | |
24 | + 'empty_value' => 'Selecione', | |
25 | + 'required' => true, | |
26 | + 'choices' => array( | |
27 | + 'teIpComputador'=>'Endereço IP do Coputador', | |
28 | + 'nmComputador'=>'Nome do Computador', | |
29 | + 'usuario'=>'Nome do Usuário', | |
30 | + ) | |
31 | + ) | |
32 | + ); | |
33 | + $builder->add( | |
34 | + 'teIpComputador', | |
35 | + null, | |
36 | + array( 'label'=>'', | |
37 | + 'max_length'=>30, | |
38 | + 'required' => false | |
39 | + ) | |
40 | + ); | |
41 | + $builder->add( | |
42 | + 'nmComputador', | |
43 | + null, | |
44 | + array( 'label'=>'', 'max_length'=>30, 'required' => false) | |
45 | + ); | |
46 | + $builder->add( | |
47 | + 'usuario', | |
48 | + null, | |
49 | + array( 'label'=>'', 'max_length'=>30, 'required' => false) | |
50 | + ); | |
51 | + $builder->add( | |
52 | + 'dtHrInclusao', | |
53 | + 'text', | |
54 | + array( | |
55 | + 'label' => '', | |
56 | + 'required' => false | |
57 | + ) | |
58 | + ); | |
59 | + $builder->add( | |
60 | + 'dtHrInclusaoFim', | |
61 | + 'text', | |
62 | + array( | |
63 | + 'label' => '','required' => false | |
64 | + ) | |
65 | + ); | |
66 | + } | |
67 | + | |
68 | + /** | |
69 | + * (non-PHPdoc) | |
70 | + * @see Symfony\Component\Form.FormTypeInterface::getName() | |
71 | + */ | |
72 | + public function getName() | |
73 | + { | |
74 | + return 'LogUsuarioLogado'; | |
75 | + } | |
76 | + | |
77 | +} | |
0 | 78 | \ No newline at end of file | ... | ... |