{% extends "app_home/base.html" %}
{% load static %}
{% load i18n %}

{% block navbar_app %}
{% include 'app_home/_sidebar.html' %}
{% endblock %}

{% block title %}
<h3>{% translate "Configuration" %}</h3>
<hr>
<p class="text-muted">{% translate 'Select service to configure' %}</p>
{% endblock %}


{% block content %}


<div class="d-inline-flex flex-nowrap bd-highlight">
{% for app in apps %}
<a class="btn btn-outline-dark me-2" href="{% url 'app_home:configuration' app %}">
{{ app.keyname }}
</a>
{% endfor %}  
</div>


{% if appname %}
<hr>

<form method="post">{% csrf_token %}
<input class="btn btn-danger me-2" type="submit" value="{% translate 'Save' %} {{ appname }} configuration" name="save">
<hr>
<table class="table">
  {{ form.as_table }}
</table>
</form>
{% endif %}

{% endblock %}
