Commit ceff01ed880651ece30af757a97fe8bb5a9bedae
1 parent
156787ea
Exists in
master
adiciona os campos timeout_chamando e timeout_concluido na edição do guiche
git-svn-id: http://svn.softwarepublico.gov.br/svn/sistemadeatendimento/sistema/trunk@31 63db2ce5-8a6c-0410-abb9-a418dd412890
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
Fila-Administracao/lib/Fila/Administracao/Controller/Guiches.pm
... | ... | @@ -45,7 +45,7 @@ sub ver :Chained('preload') :PathPart('') :Args(0) { |
45 | 45 | |
46 | 46 | unless ($c->req->param('submitted')) { |
47 | 47 | $c->req->param($_, $c->stash->{guiche}->get_column($_)) |
48 | - for qw(identificador jid_opiniometro); | |
48 | + for qw(identificador jid_opiniometro timeout_chamando timeout_concluido); | |
49 | 49 | } |
50 | 50 | } |
51 | 51 | |
... | ... | @@ -72,7 +72,7 @@ sub salvar :Chained('preload') :PathPart :Args(0) { |
72 | 72 | my ($self, $c) = @_; |
73 | 73 | $c->stash->{guiche}->update |
74 | 74 | ({ map { $_ => $c->req->param($_) } |
75 | - qw(identificador jid_opiniometro) }); | |
75 | + qw(identificador jid_opiniometro timeout_chamando timeout_concluido) }); | |
76 | 76 | $c->res->redirect($c->uri_for('/locais/'.$c->stash->{local}->id_local)); |
77 | 77 | } |
78 | 78 | |
... | ... | @@ -92,7 +92,7 @@ sub criar :Chained('/locais/preload') :PathPart('guiche/criar') :Args(0) { |
92 | 92 | vt_fim => 'Infinity', |
93 | 93 | pular_opiniometro => 0, |
94 | 94 | ( map { $_ => $c->req->param($_) } |
95 | - qw(identificador jid_opiniometro) ) }); | |
95 | + qw(identificador jid_opiniometro timeout_chamando timeout_concluido) ) }); | |
96 | 96 | $guiche->estados->create |
97 | 97 | ({ vt_ini => DateTime->now(time_zone => 'local'), |
98 | 98 | vt_fim => 'Infinity', | ... | ... |
Fila-Administracao/root/guiches/ver.tt
... | ... | @@ -32,6 +32,8 @@ |
32 | 32 | [% END %]</LABEL></P> |
33 | 33 | <P><LABEL>Identificador: <INPUT TYPE='text' NAME='identificador' VALUE='[% c.req.param('identificador') | html %]' /></LABEL></P> |
34 | 34 | <P><LABEL>JID Opiniometro: <INPUT TYPE='text' NAME='jid_opiniometro' VALUE='[% c.req.param('jid_opiniometro') | html %]' /></LABEL></P> |
35 | +<P><LABEL>Timer para "chamando": <INPUT TYPE='text' NAME='timeout_chamando' VALUE='[% c.req.param('timeout_chamando') | html %]' /></LABEL></P> | |
36 | +<P><LABEL>Timer para "concluído": <INPUT TYPE='text' NAME='timeout_concluido' VALUE='[% c.req.param('timeout_concluido') | html %]' /></LABEL></P> | |
35 | 37 | <P><INPUT TYPE='submit' VALUE='Salvar'/></P> |
36 | 38 | </FORM> |
37 | 39 | ... | ... |