{% extends "kfet/base_col_2.html" %}

{% block title %}Paramètres{% endblock %}
{% block header-title %}Paramètres{% endblock %}

{% block fixed %}

<div class="buttons">
  <a class="btn btn-primary" href="{% url 'kfet.settings.update' %}">
    Modifier
  </a>
</div>

{% endblock %}

{% block main %}

<section>
  <h2>Valeurs</h2>
  <div class="table-responsive">
    <table class="table table-hover table-condensed">
      <thead>
        <tr>
          <td>Nom</td>
          <td>Valeur</td>
        </tr>
      </thead>
      <tbody>
        {% for key, value in kfet_config.list %}
        <tr>
          <td>{{ key }}</td>
          <td>{{ value|default_if_none:"" }}</td>
        </tr>
        {% endfor %}
      </tbody>
    </table>
  </div>
</section>

{% endblock %}
