Fix some CSS mis-alignments. Remove obsolete template file.

This commit is contained in:
Jens Luedicke
2025-06-29 21:25:59 +02:00
parent 668e7c85e0
commit 26028aae73
8 changed files with 29 additions and 49 deletions

View File

@@ -4,7 +4,7 @@
<div class="timetrack-container">
<div class="admin-header">
<h2>Project Management</h2>
<a href="{{ url_for('create_project') }}" class="btn">Create New Project</a>
<a href="{{ url_for('create_project') }}" class="btn btn-success">Create New Project</a>
</div>
{% if projects %}
@@ -45,11 +45,11 @@
<td>{{ project.created_by.username }}</td>
<td>{{ project.time_entries|length }}</td>
<td class="actions">
<a href="{{ url_for('edit_project', project_id=project.id) }}" class="btn btn-small">Edit</a>
<a href="{{ url_for('edit_project', project_id=project.id) }}" class="btn btn-sm btn-primary">Edit</a>
{% if g.user.role.name == 'ADMIN' and project.time_entries|length == 0 %}
<form method="POST" action="{{ url_for('delete_project', project_id=project.id) }}" style="display: inline;"
onsubmit="return confirm('Are you sure you want to delete this project?')">
<button type="submit" class="btn btn-small btn-danger">Delete</button>
<button type="submit" class="btn btn-sm btn-danger">Delete</button>
</form>
{% endif %}
</td>
@@ -66,12 +66,6 @@
</div>
<style>
.admin-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.projects-table {
overflow-x: auto;