Improve Layout and Routing.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user