Sha256: d57db2b1f9c1609cada33adf4c65d34b401d679209f5daf48c0790756663b84a
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
<% content_for :head do %> <script type="text/javascript"> function detalhar_agendamento() { if(id_linha_selecionada == null) { alert("Selecione um agendamento na tabela."); return; } redirect("/agendamentos/"+id_linha_selecionada); } </script> <% end %> <div class="with-bottom-margin"> <div class="nav nav-pills"> <li><a href="#" onclick="detalhar_agendamento()" ><i class="glyphicon glyphicon-eye-open"></i> Detalhar Agendamento</a></li> <li><a href="/agendamentos/new?paciente_id=<%= @paciente.id%>"><i class="glyphicon glyphicon-calendar"></i> Novo agendamento</a></li> </div> </div> <table class="table table-bordered"> <thead> <tr> <th>Médico</th> <th>Data</th> <th>Turno</th> </tr> </thead> <% @agendamentos.each do |agendamento| %> <tr id="<%= agendamento.id %>" onclick="selecionar(this.id)"> <td><%= agendamento.profissional.nome %></td> <td> <% if agendamento.data == Date.today %> Hoje <% else %> <%= agendamento.data.strftime("%d/%m/%Y") %> <% end %> </td> <td> <% if agendamento.turno.present? %> <%= agendamento.turno.nome %> <% else %> Não consta <% end %> </td> </tr> <% end %> </table>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-sabia-1.0.1 | app/views/pacientes/show/_agendamentos.html.erb |