{% extends "administrador/base.html" %}
{% block title %}Sucursales{% endblock %}

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

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

{% block breadcrumb %}{{ block.super }} Sucursales {% endblock %}
{% block content %}
<div class="row">
  <div class="col-md-4"><h3>Sucursales</h3></div>
  <div class="col-md-4"> <a class="btn btn-primary btn-lg" href="/administrador/sucursal/" role="button"> Nueva</a></div>
</div>
<table class="table table-striped table-hover">
    <tr>
      <th>Nombre</th>
      <th>Conexion</th>
    </tr>
    {% for sucursal in sucursales %}
    <tr>
      <td><a href="/administrador/sucursal/{{ sucursal.id }}/" >{{ sucursal.name }}</a></td>
      <td>{{ sucursal.sucursal_conexion_name }}</td>
    </tr>
    {% endfor %}
</table>
<br>
{% endblock %}