Source

tracko / app / templates / admin.html

{% extends "base.html" %}

{% block caption %}
  <h1>Tracko / Admin</h1>
{% endblock %}

{% block content %}
  <div>
    <form action="/admin/save" method="post">
      <h2>Application settings</h2>

      {% for setting in settings %}
        {# setting is (name, label, value) #}
        <div>
          <label for="{{ setting.name }}">{{ setting.label }}</label>
          <input type="text" value="{{ setting.value }}"
                 name="{{ setting.name }}"
                 id="{{ setting.name }}">
        </div>
      {% endfor %}

      <input type="submit" value="Save">
    </form>
  </div>
{% endblock %}