This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
9 changed files
with
267 additions
and
15 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
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,90 @@ | ||
{% extends "dashboard/base.html" %} | ||
|
||
{% block dashboard_content %} | ||
|
||
<div class="container"> | ||
<div class="block"> | ||
<table class="table is-striped is-fullwidth"> | ||
<thead> | ||
<tr> | ||
<th>Applicant ID</th> | ||
<th>Email</th> | ||
<th>Service</th> | ||
<th>Code</th> | ||
<th>Link</th> | ||
<th>Delete</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for invite in invites %} | ||
<tr> | ||
<td>{{invite.app_id}}</td> | ||
<td>{{invite.email}}</td> | ||
<td>{{invite.service }}</td> | ||
<td><code>{{invite.code}}</code></td> | ||
<td><a href="{{invite.link}}">{{ invite.link }}</a></td> | ||
<td> | ||
<a class="has-text-danger" href="{{ url_for('actions.invite_delete', inv_id=invite.id) }}">×</a> | ||
</td> | ||
|
||
</tr> | ||
{% else %} | ||
<tr> | ||
<td colspan="6"> | ||
<i> No invites in DB </i> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<div class="block"> | ||
<h1 class="title">Create new invite</h1> | ||
<form action="{{ url_for('actions.invite_create') }}" method="POST"> | ||
<div class="columns"> | ||
<div class="column"> | ||
<div class="field"> | ||
<label class="label">Applicant ID</label> | ||
<div class="control"> | ||
<input class="input" type="text" placeholder="gh:12345" name="app_id" required autocomplete="off"> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="column"> | ||
<div class="field"> | ||
<label class="label">Service</label> | ||
<div class="control"> | ||
<input class="input" type="text" placeholder="Discord" name="service" required autocomplete="off"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="columns"> | ||
<div class="column"> | ||
<div class="field"> | ||
<label class="label">Code</label> | ||
<div class="control"> | ||
<input class="input" type="text" placeholder="ABCD" name="code" autocomplete="off"> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="column is-two-thirds"> | ||
<div class="field"> | ||
<label class="label">Link</label> | ||
<div class="control"> | ||
<input class="input" type="text" placeholder="https://discord.gg/" name="link" autocomplete="off"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="field is-grouped"> | ||
<div class="control"> | ||
<button type="submit" class="button is-link">Submit</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
<br/> | ||
</div> | ||
{% endblock %} |
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 |
---|---|---|
@@ -1,4 +1,29 @@ | ||
{% extends "hacker/base.html" %} | ||
|
||
{% block hacker_content %} | ||
|
||
<h1 class="title">Application</h1> | ||
|
||
{% if invites | length == 0 %} | ||
<h2 class="subtitle">No invites at this time. Check back later!</h2> | ||
{% else %} | ||
<h2 class="subtitle"> | ||
{{ invites|length }} invite{% if invites | length > 1 %}s{%endif%} | ||
</h2> | ||
|
||
{% for invite in invites %} | ||
<div class="block box"> | ||
<h3 class="is-size-3">{{ invite['service'] }}</h3> | ||
<p> | ||
{% if invite['code'] %} | ||
Invite code: <code>{{ invite['code'] }}</code><br/> | ||
{% endif %} | ||
{% if invite['link'] %} | ||
Link: <a href="{{ invite['link'] }}">{{ invite['link'] }}</a> | ||
{% endif %} | ||
</p> | ||
</div> | ||
{% endfor %} | ||
|
||
{% endif %} | ||
{% endblock %} |