{% extends "base.html" %}

{% block content %}
<h2>Mes abonnements</h2>

<table id="member_subscriptions" class="full-width">
    <thead>
        <tr>
            <th width="60">Type</th>
            <th>Identification</th>
            <th>Date d'activation</th>
            <th>Commentaire</th>
            <th>Configuration</th>
        </tr>
    </thead>
    <tbody>
        {% for subscription in subscriptions %}
        <tr>
            <td>{{ subscription.offer.type }}</td>
            <td>{{ subscription.offer.name }}</td>
            <td>{{ subscription.subscription_date }}</td>
            <td>{{ subscription.configuration.comment }}</td>
            <td>{% if subscription.configuration %}<a href="{% url subscription.configuration.get_url_namespace|add:":details" id=subscription.configuration.id %}"><i class="fa fa-cog"></i> Configuration</a>{% endif %}</td>
            
        </tr>
        {% endfor %}
    </tbody>
</table>
<!--
     <div class="panel">
         <h3>Stats générales ADSL</h3>
         <a class="button">Voir l'ADSL</a>
     </div>
     <div class="panel">
         <h3>Stats générales VPN</h3>
         <a class="button">Voir le VPN</a>
     </div>-->

{% endblock %}
