-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from MithishR/mithish-eventapproval
Created an admin page
- Loading branch information
Showing
8 changed files
with
162 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
Django/communicado/pages/templates/pages/admin_actions.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Organizer Account</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
background-color: #0c0808; | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
justify-content: center; /* Center horizontally */ | ||
align-items: center; /* Center vertically */ | ||
height: 100vh; /* Make body fill entire viewport height */ | ||
} | ||
|
||
.container { | ||
background-color: #0e0101; | ||
border: 2px solid #fff; | ||
border-radius: 5px; | ||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); | ||
padding: 20px; | ||
width: 300px; | ||
display: flex; | ||
flex-direction: column; /* Stack items vertically */ | ||
align-items: center; /* Center items horizontally */ | ||
} | ||
|
||
input[type="submit"] { | ||
width: 100%; | ||
background-color: transparent; | ||
color: #fff; | ||
padding: 14px 20px; | ||
margin: 8px 0; | ||
border: 2px solid #fff; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
transition: background-color 0.3s, border-color 0.3s, color 0.3s; | ||
font-size: 16px; | ||
} | ||
|
||
input[type="submit"]:hover { | ||
background-color: #fff; | ||
border-color: #fff; | ||
color: #000; | ||
} | ||
|
||
h2 { | ||
color: #fff; | ||
text-align: center; | ||
margin-bottom: 20px; | ||
font-size: 24px; | ||
} | ||
|
||
input[type="submit"]:focus { | ||
background-color: #fff; | ||
border-color: #0e0101; | ||
color: #000; | ||
} | ||
|
||
header { | ||
background-color: rgba(0, 0, 0, 0.7); | ||
color: #fff; | ||
padding: 10px; | ||
text-align: right; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
z-index: 1000; | ||
} | ||
|
||
header a { | ||
color: #fff; | ||
margin: 0 10px; | ||
text-decoration: none; | ||
} | ||
|
||
header a:hover { | ||
text-decoration: underline; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<header> | ||
<p style="position: absolute; top: 0; left: 50%; transform: translateX(-50%); color: white;">Logged in as {{ request.session.user_id }}</p> | ||
<a href="login">Login</a> | ||
<a href="signup">Signup</a> | ||
<a href="#">View Cart</a> | ||
<a href="admin">Admin Panel</a> | ||
</header> | ||
|
||
<div class="container"> | ||
<h2>Administrator Portal</h2> | ||
|
||
<form action="{% url 'pending' %}" method="get"> | ||
<input type="submit" value="View events pending approval"> | ||
</form> | ||
|
||
<form action="{% url 'rejected' %}" method="get"> | ||
<input type="submit" value="View rejected events"> | ||
</form> | ||
|
||
<form action="{% url 'events' %}" method="get"> | ||
<input type="submit" value="View all Events"> | ||
</form> | ||
|
||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Pending Events</title> | ||
</head> | ||
<body> | ||
<h1>Pending Events</h1> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page Title</title> | ||
</head> | ||
<body> | ||
<h1>Rejected</h1> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters