stream-fusion-better/stream_fusion/static/admin/create_api_key.html
LimeDrive 8468bae024 feat(admin): add metadata mappings table and complete admin UI redesign
Introduce a metadata_mappings table with DAO/model layers for admin-managed
IMDB→TMDB/title overrides, and overhaul the admin panel with a modern
Bootstrap 5 sidebar UI.

- Add metadata_mappings table with migrations (search_titles, year_override)
- Add MetadataMappingDAO with standalone session helpers for use outside FastAPI
- Add new admin pages: dashboard, mappings CRUD, maintenance, config, hash/TMDB search
- Integrate DB mapping lookups into Cinemeta and TMDB metadata providers
- Update catalog views to use DB mappings before hitting external APIs
- Rewrite all admin templates with Bootstrap 5, sidebar navigation, French labels
- Add session-based auth for admin routes with Redis session store
2026-03-29 04:46:51 +02:00

33 lines
1.6 KiB
HTML

{% extends "base.html" %}
{% block title %}Nouvelle clé API — StreamFusion Admin{% endblock %}
{% block page_title %}Nouvelle clé API{% endblock %}
{% block content %}
<div style="max-width:480px;">
<form action="{{ url_for('create_api_key')(request) }}" method="post">
<div class="mb-3">
<label for="name" class="form-label">Nom <span class="text-secondary" style="font-size:0.8rem;">(optionnel)</span></label>
<input type="text" class="form-control" id="name" name="name" placeholder="ex: utilisateur-prod">
</div>
<div class="mb-3">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="never_expires" name="never_expires">
<label class="form-check-label" for="never_expires">N'expire jamais</label>
</div>
<div class="form-text">Par défaut, la clé expire après 15 jours.</div>
</div>
<div class="mb-4">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="proxied_links" name="proxied_links">
<label class="form-check-label" for="proxied_links">Activer la proxification des liens vidéo</label>
</div>
</div>
<div class="d-flex gap-2">
<button type="submit" class="btn btn-primary px-4">
<i class="bi bi-plus-lg me-1"></i>Créer
</button>
<a href="{{ url_for('list_api_keys')(request) }}" class="btn btn-outline-secondary px-4">Annuler</a>
</div>
</form>
</div>
{% endblock %}