-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
74 additions
and
8 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{ define "content" }} | ||
<div class="container mx-auto px-4 py-8"> | ||
<h1 class="text-3xl font-bold mb-6">Admin Dashboard</h1> | ||
|
||
<div class="overflow-x-auto"> | ||
<table class="max-w-2xl bg-white border border-gray-300"> | ||
<thead> | ||
<tr> | ||
<th class="px-6 py-3 border-b text-left">Job</th> | ||
<th class="px-6 py-3 border-b text-left">Email</th> | ||
<th class="px-6 py-3 border-b text-left w-24">Actions</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{ range .jobs }} | ||
<tr class="hover:bg-gray-50"> | ||
|
||
<td class="px-6 py-4 border-b"> | ||
<a href="/admin/jobs/{{ .ID }}/edit" class="hover:underline"> | ||
{{ .Position }} at {{ .Organization }} | ||
</a> | ||
</td> | ||
<td class="px-6 py-4 border-b">{{ .Email }}</td> | ||
<td class="px-6 py-4 border-b"> | ||
<form method="POST" | ||
action="/admin/jobs/{{ .ID }}/delete" | ||
class="inline" | ||
onsubmit="return confirm('Are you sure you want to delete this job posting?')"> | ||
<button type="submit" class="btn btn-sm btn-danger">Delete</button> | ||
</form> | ||
</td> | ||
</tr> | ||
{{ end }} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
{{ end }} |