{% extends "main/base.html" %}
{% block title %}Conexiones{% endblock %}

<!-- CSS Code -->
{% block style_css %}{% endblock %}

<!-- JavaScript Code -->
{% block js_code %}{% endblock %}

{% block breadcrumb %}{{ block.super }} Conexiones {% endblock %}
{% block content %}
<div class="row">
  <div class="col-md-4"><h3>Conexiones</h3></div>
  <div class="col-md-4"> <a class="btn btn-primary btn-lg" href="/conexion/" role="button"> Nueva</a></div>
</div>
<table class="table table-striped table-hover">
    <tr>
      <th>Nombre</th>
      <th>Tipo</th>
      <th>Servidor</th>
      <th>Carpeta de datos</th>
      <th></th>
    </tr>
    {% for conexion in conexiones %}
    <tr>
      <td><a href="/conexion/{{ conexion.id }}/" >{{ conexion.nombre }}</a></td>
      <td>{{ conexion.tipo }}</td>
      <td>{{ conexion.servidor }}</td>
      <td>{{ conexion.carpeta_datos }}</td>
      <td> <a href="/conexion/delete/{{ conexion.id }}/">Borar</a> </td>
    </tr>
    {% endfor %}
</table>
<br>
{% endblock %}