diff --git a/django-site/adminpage/templates/adminpage/adminpage.html b/django-site/adminpage/templates/adminpage/adminpage.html index cf32e12..c0a45d9 100644 --- a/django-site/adminpage/templates/adminpage/adminpage.html +++ b/django-site/adminpage/templates/adminpage/adminpage.html @@ -77,6 +77,26 @@ margin-bottom: 2rem; } + .demo-credentials { + background: #FFF4E0; + border: 1px solid #F0E0C0; + border-radius: 8px; + padding: 0.75rem; + margin-bottom: 1.5rem; + font-size: 0.8rem; + color: #6B5A00; + } + + .demo-credentials strong { + display: block; + margin-bottom: 0.3rem; + color: #4A3D00; + } + + .demo-credentials div { + margin-bottom: 0.2rem; + } + .field-group { margin-bottom: 1.25rem; } .field-group label { @@ -166,6 +186,25 @@ color: var(--text); } + .user-badge { + font-size: 0.75rem; + padding: 0.25rem 0.6rem; + border-radius: 4px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.05em; + } + + .user-badge.admin { + background: #E6F4EA; + color: #276B3C; + } + + .user-badge.user { + background: #E3F2FD; + color: #1565C0; + } + .nav-actions { display: flex; align-items: center; @@ -251,9 +290,39 @@ display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; + position: relative; } .resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } + .delete-btn { + position: absolute; + top: 0.5rem; + right: 0.5rem; + width: 28px; + height: 28px; + border-radius: 50%; + background: rgba(255,255,255,0.95); + border: 1.5px solid #FCE8E8; + color: #8B2020; + font-size: 1.1rem; + cursor: pointer; + display: none; + align-items: center; + justify-content: center; + transition: all 0.2s; + z-index: 10; + } + + .resource-card:hover .delete-btn { + display: flex; + } + + .delete-btn:hover { + background: #FCE8E8; + border-color: #8B2020; + transform: scale(1.1); + } + .card-image { width: 100%; aspect-ratio: 4/3; @@ -333,6 +402,46 @@ } .empty-state p { font-size: 0.95rem; } + .reservation-list { + display: flex; + flex-direction: column; + gap: 0.75rem; + } + + .reservation-item { + background: var(--surface); + border-radius: 8px; + padding: 1rem; + display: flex; + justify-content: space-between; + align-items: center; + border: 1px solid var(--border); + } + + .reservation-info h4 { + font-size: 0.95rem; + margin-bottom: 0.3rem; + } + + .reservation-info p { + font-size: 0.8rem; + color: var(--muted); + } + + .btn-cancel { + padding: 0.4rem 0.9rem; + background: transparent; + border: 1.5px solid #8B2020; + color: #8B2020; + border-radius: 6px; + font-size: 0.8rem; + font-weight: 500; + cursor: pointer; + font-family: 'DM Sans', sans-serif; + transition: background 0.2s, color 0.2s; + } + .btn-cancel:hover { background: #8B2020; color: white; } + .modal-overlay { display: none; position: fixed; @@ -583,6 +692,12 @@

Sign in to continue

Campus Resource Reservation System

+
+ Demo Credentials: +
👑 Admin: admin@csuchico.edu / admin123
+
👤 User: user@csuchico.edu / user123
+
+
@@ -602,9 +717,10 @@

Sign in to continue

@@ -623,13 +739,13 @@

Sign in to continue

No resources yet.
Click + Add Resource to add one.

+
-{{ resources|json_script:"resource_data" }} - + \ No newline at end of file