+
+ [% SWITCH guiche.estado %]
+ [% CASE ['atendimento' 'disponivel' 'chamando' ] %]
+ [% guiche.identificador %]
+ [% CASE ['interno' 'pausa'] %]
+ | [% guiche.identificador %]
+ [% CASE ['avaliacao' 'concluido'] %]
+ | [% guiche.identificador %]
+ [% CASE ['fechado'] %]
+ | [% guiche.identificador %]
+
+ [% END %]
+ [% IF guiche.pular_opiniometro == 0 %]
+
+ [% c.prototype.link_to_remote('(Desab.)', { url => '/cb/gerente/pular_opiniometro/1/' _ guiche.id_guiche, confirm => 'confirmar(\'Deseja mesmo desabilitar o opiniometro da mesa?\')' }) %]
+
+ [% ELSE %]
+
+ [% c.prototype.link_to_remote('(Habil.)', { url => '/cb/gerente/pular_opiniometro/0/' _ guiche.id_guiche, confirm => 'confirmar(\'Deseja habilitar o opiniometro da mesa?\')' }) %]
+
+ [% END %]
+ |
+
+
+ [% guiche.estado %] [%guiche.senha%]
+ [% SWITCH guiche.estado %]
+ [% CASE 'pausa' %]
+
+ (Motivo)
+
+ [% CASE 'interno' %]
+
+ (Serviço)
+
+ [% END %]
+ |
+
+
+ [% dtf.f(guiche.estado_desde) %] |
+ [% guiche.funcionario %] |
+ [% SWITCH guiche.estado %]
+ [% CASE 'pausa' %]
+ [% c.prototype.link_to_remote('(Fechar Mesa)', { url => '/cb/gerente/fechar_guiche/' _ guiche.id_guiche , confirm => 'confirmar(\'Deseja mesmo fechar a mesa?\')' }) %] |
+ [% CASE 'interno' %]
+ [% c.prototype.link_to_remote('(Fechar Mesa)', { url => '/cb/gerente/fechar_guiche/' _ guiche.id_guiche , confirm => 'confirmar(\'Deseja mesmo fechar a mesa?\')' }) %] |
+ [% CASE 'chamando' %]
+ [% c.prototype.link_to_remote('(Devolver Senha)', { url => '/cb/gerente/devolver_senha/' _ guiche.id_guiche }) %] |
+ [% CASE 'concluido' %]
+ [% c.prototype.link_to_remote('(Fechar Mesa)', { url => '/cb/gerente/fechar_guiche/' _ guiche.id_guiche , confirm => 'confirmar(\'Deseja mesmo fechar a mesa?\')' }) %] |
+ [% CASE 'atendimento' %]
+ [% c.prototype.link_to_remote('(Encerrar)', { url => '/cb/gerente/concluir_atendimento/' _ guiche.id_guiche , confirm => 'confirmar(\'Deseja mesmo concluir o atendimento?\')' }) %] |
+ [% CASE 'disponivel' %]
+ [% c.prototype.link_to_remote('(Fechar Mesa)', { url => '/cb/gerente/fechar_guiche/' _ guiche.id_guiche , confirm => 'confirmar(\'Deseja mesmo fechar a mesa?\')' }) %] |
+ [% CASE %]
+ [% IF guiche.estado_atendimento == 'avaliacao' %]
+
+ [% c.prototype.link_to_remote('(Encerrar)', { url => '/cb/gerente/encerrar_atendimento/' _ guiche.id_atendimento }) %]
+ |
+ [% ELSE %]
+ [%# |
%]
+ [% END %]
+ [% END %]
+
diff --git a/Fila-Web/root/render/guiche_gerente.tt b/Fila-Web/root/render/guiche_gerente.tt
new file mode 100644
index 0000000..de95650
--- /dev/null
+++ b/Fila-Web/root/render/guiche_gerente.tt
@@ -0,0 +1,10 @@
+
diff --git a/Fila-Web/root/render/guiches.tt b/Fila-Web/root/render/guiches.tt
index 2355613..ac5ff72 100644
--- a/Fila-Web/root/render/guiches.tt
+++ b/Fila-Web/root/render/guiches.tt
@@ -21,70 +21,7 @@
[% nova_lista_guiches = BLOCK %]