{% extends "base.html" %}

{% block title %}LVRS - Amostras{% endblock %}

{% block page_content %}
{% include "admissions/_navigation.html" %}
<div class="page-header">
    <h1>
      Listagem de Admissões
    </h1>
</div>
<table class="table table-striped table-bordered">
  <thead>
    <tr>
      <th width="15%">Número Interno</th>
      <th width="40%">Data de Coleta</th>
      <!-- <th width="5%">Editar</th> -->
      <!-- <th width="5%">Deletar</th> -->
    </tr>
  </thead>
  <tbody>
    {% for admission in admissions %}
      <tr>
        <td>{{ admission.id_lvrs_intern }}</td>
        {% if admission.samples.all() %}
          <td>{{ admission.samples[0].collection_date.strftime('%d/%m/%Y') }}</td>
        {% else %}
          <td>Sem amostras cadastrada</td>
        {% endif %}
      </tr>
    {% endfor %}
  </tbody>
</table>

{% endblock %}

{% extends "base.html" %}

{% block title %}LVRS - Amostras{% endblock %}

{% block page_content %}
{% include "admissions/_navigation.html" %}
<div class="page-header">
    <h1>
      Listagem de Admissões
    </h1>
</div>
<table class="table table-striped table-bordered">
  <thead>
    <tr>
      <th width="15%">Número Interno</th>
      <th width="20%">Data de Coleta</th>
      <th width="30%">Adicionar amostras</th>
    </tr>
  </thead>
  <tbody>
    {% for admission in admissions %}
      <tr>
        <td>{{ admission.id_lvrs_intern }}</td>
        {% if admission.samples.all() %}
          <td>{{ admission.samples[0].collection_date.strftime('%d/%m/%Y') }}</td>
        {% else %}
          <td>Sem amostras cadastrada</td>
        {% endif %}
        <td><a href="{{ url_for('admissions.add_sample', admission_id=admission.id) }}">Visualizar ou Adicionar amostras</td>
      </tr>
    {% endfor %}
  </tbody>
</table>

{% endblock %}

Add link to edit samples from admission listing
:rocket: Add link to edit samples from admission listing
