{% extends "base.html" %}
{% block title %}Configuration ENT — GMAO{% endblock %}

{% block content %}
<div class="container-fluid">
    <div class="d-flex justify-content-between align-items-center mb-4">
        <h1><i class="bi bi-gear"></i> Configuration ENT77</h1>
    </div>
    <div class="card"><div class="card-body">
        <form method="POST">
            <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
            <div class="mb-3"><label class="form-label">URL</label><input type="url" name="url" class="form-control" value="{{ config.url if config else '' }}"></div>
            <div class="mb-3"><label class="form-label">Identifiant</label><input type="text" name="username" class="form-control" value="{{ config.username if config else '' }}"></div>
            <div class="mb-3"><label class="form-label">Mot de passe</label><input type="password" name="password" class="form-control"></div>
            <div class="text-end"><button type="submit" class="btn btn-primary"><i class="bi bi-check-lg"></i> Enregistrer</button></div>
        </form>
    </div></div>
</div>
{% endblock %}