Improve Layout and Routing.

This commit is contained in:
Jens Luedicke
2025-07-01 08:11:22 +02:00
parent db1b209563
commit de510baac1
3 changed files with 26 additions and 28 deletions

View File

@@ -14,6 +14,30 @@
{% endif %}
</h1>
<!-- Quick Actions section -->
<div class="quick-actions">
<h2>Quick Actions</h2>
<div class="admin-panel">
<div class="admin-card">
<h2>My Profile</h2>
<p>Update your personal information and password.</p>
<a href="{{ url_for('profile') }}" class="btn btn-secondary">Edit Profile</a>
</div>
<div class="admin-card">
<h2>Configuration</h2>
<p>Configure work hours and break settings.</p>
<a href="{{ url_for('config') }}" class="btn btn-secondary">Work Config</a>
</div>
<div class="admin-card">
<h2>Time History</h2>
<p>View your complete time tracking history.</p>
<a href="{{ url_for('history') }}" class="btn btn-secondary">View History</a>
</div>
</div>
</div>
<!-- Admin-only sections -->
{% if g.user.is_admin or g.user.role == Role.ADMIN %}
<div class="stats-section">
@@ -177,30 +201,6 @@
</div>
</div>
{% endif %}
<!-- Quick Actions section -->
<div class="quick-actions">
<h2>Quick Actions</h2>
<div class="admin-panel">
<div class="admin-card">
<h2>My Profile</h2>
<p>Update your personal information and password.</p>
<a href="{{ url_for('profile') }}" class="btn btn-secondary">Edit Profile</a>
</div>
<div class="admin-card">
<h2>Configuration</h2>
<p>Configure work hours and break settings.</p>
<a href="{{ url_for('config') }}" class="btn btn-secondary">Work Config</a>
</div>
<div class="admin-card">
<h2>Time History</h2>
<p>View your complete time tracking history.</p>
<a href="{{ url_for('history') }}" class="btn btn-secondary">View History</a>
</div>
</div>
</div>
</div>
<style>