11 lines
932 B
HTML
11 lines
932 B
HTML
|
|
{% extends "base.html" %}
|
|||
|
|
{% block title %}Nouvelle clé API — GMAO{% endblock %}
|
|||
|
|
{% block content %}
|
|||
|
|
<div class="container" style="max-width:760px;"><div class="card border-warning"><div class="card-header bg-warning"><strong>Copiez cette clé maintenant</strong></div><div class="card-body">
|
|||
|
|
<p>Elle ne sera plus affichée après avoir quitté cette page.</p>
|
|||
|
|
<div class="input-group mb-3"><input id="api-key" class="form-control font-monospace" value="{{ api_key }}" readonly><button class="btn btn-outline-secondary" type="button" onclick="navigator.clipboard.writeText(document.getElementById('api-key').value)"><i class="bi bi-clipboard"></i> Copier</button></div>
|
|||
|
|
<p class="small text-muted">Envoyez-la dans l’en-tête HTTP <code>X-API-Key</code>. Ne la placez jamais dans Git.</p>
|
|||
|
|
<a href="{{ url_for('admin.settings') }}" class="btn btn-primary">J’ai sauvegardé la clé</a>
|
|||
|
|
</div></div></div>
|
|||
|
|
{% endblock %}
|