Change password
This commit is contained in:
@@ -3,29 +3,37 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Administration des projets</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet" />
|
||||
</head>
|
||||
<body class="bg-light">
|
||||
<div class="container py-5">
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h1>Gestion des projets</h1>
|
||||
<a href="{{ url_for('dashboard') }}" class="btn btn-outline-primary">
|
||||
<i class="fas fa-arrow-left me-2"></i>Tableau de bord
|
||||
</a>
|
||||
<div>
|
||||
<span class="badge bg-success me-3">Connecté: {{ session.username }}</span>
|
||||
<a href="{{ url_for('admin_change_password') }}" class="btn btn-outline-warning btn-sm me-2">
|
||||
<i class="fas fa-key me-1"></i>Changer mot de passe
|
||||
</a>
|
||||
<a href="{{ url_for('logout') }}" class="btn btn-outline-danger btn-sm">
|
||||
<i class="fas fa-sign-out-alt me-1"></i>Déconnexion
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
<div class="alert alert-info alert-dismissible fade show">
|
||||
{% for m in messages %}
|
||||
<div><i class="fas fa-info-circle me-2"></i>{{ m }}</div>
|
||||
{% endfor %}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if messages %}
|
||||
<div class="alert alert-info alert-dismissible fade show">
|
||||
{% for m in messages %}
|
||||
<div><i class="fas fa-info-circle me-2"></i>{{ m }}</div>
|
||||
{% endfor %}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
<!-- Formulaire ajout projet -->
|
||||
<div class="card mb-5">
|
||||
<div class="card-header bg-primary text-white">
|
||||
<h3 class="mb-0"><i class="fas fa-plus me-2"></i>Ajouter un projet</h3>
|
||||
@@ -44,7 +52,7 @@
|
||||
<small class="text-muted">PNG, JPG, GIF (max 5 Mo)</small>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<input type="number" name="total_days" class="form-control" value="24" min="1" max="365" required />
|
||||
<input type="number" name="total_days" class="form-control" placeholder="Nombre de jours" value="24" min="1" max="365" required />
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<button class="btn btn-primary w-100" type="submit">
|
||||
@@ -55,6 +63,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Liste projets -->
|
||||
<h3>Projets existants ({{ projects|length }})</h3>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
@@ -76,7 +85,7 @@
|
||||
<td>{{ proj.id }}</td>
|
||||
<td>
|
||||
{% if proj.image_url %}
|
||||
<img src="{{ proj.image_url }}" alt="Illustration" style="width:50px; height:50px; object-fit:cover; border-radius:5px;">
|
||||
<img src="{{ proj.image_url }}" alt="Illustration" style="width:50px; height:50px; object-fit:cover; border-radius:5px;" />
|
||||
{% else %}
|
||||
<span class="text-muted">—</span>
|
||||
{% endif %}
|
||||
@@ -95,8 +104,7 @@
|
||||
<button name="action" value="update" class="btn btn-sm btn-success me-2" type="submit">
|
||||
<i class="fas fa-save"></i> Sauvegarder
|
||||
</button>
|
||||
<button name="action" value="delete" class="btn btn-sm btn-danger me-2" type="submit"
|
||||
onclick="return confirm('Supprimer ce projet ?');">
|
||||
<button name="action" value="delete" class="btn btn-sm btn-danger me-2" type="submit" onclick="return confirm('Supprimer ce projet ?');">
|
||||
<i class="fas fa-trash"></i> Supprimer
|
||||
</button>
|
||||
<a href="{{ url_for('admin_project_people', project_id=proj.id) }}" class="btn btn-sm btn-primary" title="Gérer utilisateurs">
|
||||
@@ -110,9 +118,7 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<a href="{{ url_for('dashboard') }}" class="btn btn-link mt-3">Retour au tableau de bord</a>
|
||||
</div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user