{% extends "layouts/admin.twig" %}

{% block title %}{{ ta.plugin_config|default('Plugin Configuratie: ') }}{{ pluginName }} - {{ ta.admin_title|default('CodePress Admin') }}{% endblock %}

{% block content %}
<h2 class="mb-4"><i class="bi bi-plug"></i> {{ ta.plugin_config|default('Plugin Configuratie: ') }}{{ pluginName }}</h2>

<form method="post" class="card shadow-sm">
    <input type="hidden" name="csrf_token" value="{{ csrf_token }}">
    <div class="card-body">
        <textarea name="config" id="config-textarea" class="form-control font-monospace" rows="20">{{ pluginConfig }}</textarea>
    </div>
    <div class="card-footer bg-white">
        <button type="submit" class="btn btn-primary">
            <i class="bi bi-check-lg"></i> {{ ta.save|default('Opslaan') }}
        </button>
        <a href="/admin/plugins" class="btn btn-outline-secondary">{{ ta.cancel|default('Annuleren') }}</a>
    </div>
</form>
{% endblock %}