Gustavosdo/summum

View on GitHub
estagio/contas_receber/templates/admin/recebimentos_parcela.html

Summary

Maintainability
Test Coverage
{% load i18n admin_static %}

<!DOCTYPE html>
<html lang="pt-br" >
<head>
  <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}suit/bootstrap/css/bootstrap.min.css" media="all"/>
  <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}suit/css/suit.css" media="all">
  <style>
    #modal-recebimentos-parcela{
      height: 300px; 
      background-color: #edeff1;
      padding: inherit;
    }
    #tabela-recebimentos-parcela{
      height: 260px; 
      overflow-y: auto; 
      display: inherit;
    }
  </style>
</head>
<body>

  <div id="modal-recebimentos-parcela">
    {% if recebimentos %}
      <h2>{% trans 'Recebimentos realizados da parcela' %} {{ recebimentos.0.6 }}</h2>
      <div id="tabela-recebimentos-parcela">
        <table class="table table-bordered table-condensed table-striped">
          <thead>
            <tr>
              <th colspan="1">{% trans 'ID' %}</th>
              <th>{% trans 'Data do Recebimento' %}</th>
              <th>{% trans 'Valor' %}</th>
              <th>{% trans 'Juros' %}</th>
              <th>{% trans 'Multa' %}</th>
              <th>{% trans 'Desconto' %}</th>
            </tr>
          </thead>
          <tbody>
            {% for recebimento in recebimentos %}
              <tr>
                <td class="field-id"><p>{{ recebimento.0 }}</p></td>
                <td class="field-num_parcelas"><p>{{ recebimento.1 }}</p></td>
                <td class="field-num_parcelas"><p>{{ recebimento.2 }}</p></td>
                <td class="field-formata_data"><p>{{ recebimento.3 }}</p></td>
                <td class="field-valor"><p>{{ recebimento.4 }}</p></td>
                <td class="field-encargos_calculados"><p>{{ recebimento.5 }}</p></td>
              </tr>
            {% endfor %}     
          </tbody>
        </table>
      </div>
    {% else %}
      <div class="alert alert-info">
        <h2 class="text-center">{% trans 'Não há recebimento realizado da parcela' %} {{ parcela }}.</h2>
      </div>
    {% endif %}
  </div>
</body>
</html>