diff --git a/app.py b/app.py index ef12693..f55fc40 100644 --- a/app.py +++ b/app.py @@ -367,10 +367,6 @@ def dashboard(): return render_template('dashboard.html', title='Dashboard', **dashboard_data) # Redirect old admin dashboard URL to new dashboard -@app.route('/admin/dashboard') -@admin_required -def admin_dashboard(): - return redirect(url_for('dashboard')) @app.route('/admin/users') @admin_required @@ -1844,4 +1840,4 @@ def download_team_hours_export(): return redirect(url_for('team_hours')) if __name__ == '__main__': - app.run(debug=True) \ No newline at end of file + app.run(debug=True, port=5050) \ No newline at end of file diff --git a/static/css/style.css b/static/css/style.css index c5b4675..ca5efbc 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -184,6 +184,11 @@ button { color: white; } +.btn-success { + background-color: #4CAF50; + color: white; +} + .btn:hover { background-color: #45a049; } @@ -490,6 +495,13 @@ input[type="time"]::-webkit-datetime-edit { margin-bottom: 2rem; } +.admin-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 2rem; +} + .admin-panel { display: flex; flex-wrap: wrap; diff --git a/templates/admin_dashboard.html b/templates/admin_dashboard.html deleted file mode 100644 index 645f5a3..0000000 --- a/templates/admin_dashboard.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "layout.html" %} - -{% block content %} -