37 lines
2.0 KiB
Twig
37 lines
2.0 KiB
Twig
{% extends 'dashboard/base.twig' %}
|
|
|
|
{% block title %}Éditer le modèle{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="max-w-2xl mx-auto space-y-6">
|
|
<div class="flex items-center justify-between">
|
|
<h1 class="text-2xl font-bold text-white">Éditer le modèle</h1>
|
|
<a href="{{ path('app_template_point_controle_index') }}" class="text-slate-400 hover:text-white transition-colors">Retour</a>
|
|
</div>
|
|
|
|
<div class="bg-slate-800 rounded-xl p-6 shadow-sm border border-slate-700">
|
|
<form method="post" class="space-y-6">
|
|
<div>
|
|
<label for="name" class="block text-sm font-medium text-slate-300 mb-2">Nom du modèle</label>
|
|
<input type="text" id="name" name="name" value="{{ template.name }}" required
|
|
class="w-full bg-slate-900 border border-slate-700 rounded-lg px-4 py-2 text-white focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none transition-all">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="points" class="block text-sm font-medium text-slate-300 mb-2">Points de contrôle (un par ligne)</label>
|
|
<textarea id="points" name="points" rows="10" required
|
|
class="w-full bg-slate-900 border border-slate-700 rounded-lg px-4 py-2 text-white focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none transition-all font-mono text-sm">{{ template.points|join('
|
|
') }}</textarea>
|
|
<p class="mt-1 text-xs text-slate-500">Saisissez chaque point de contrôle sur une nouvelle ligne.</p>
|
|
</div>
|
|
|
|
<div class="flex justify-end pt-4">
|
|
<button type="submit" class="px-6 py-2 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 transition-colors">
|
|
Mettre à jour
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|