-
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.
WIP: add admin panel for pre-provisionning
- Loading branch information
Showing
7 changed files
with
228 additions
and
0 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,113 @@ | ||
{% extends "chall_manager_base.html" %} | ||
|
||
{% block menu %} | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/plugins/ctfd-chall-manager/admin/settings">🔗 Settings</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/plugins/ctfd-chall-manager/admin/instances">🔗 Instances</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/plugins/ctfd-chall-manager/admin/mana">🔗 Mana</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link active" href="#">Panel</a> | ||
</li> | ||
{% endblock %} | ||
|
||
{% block panel %} | ||
|
||
|
||
<a class="row"> | ||
<div class="col-md-12"> | ||
<div class="col-md-6"> | ||
<table class="table table-striped border"> | ||
<thead> | ||
<tr> | ||
<th class="border-right" data-checkbox> | ||
<div class="form-check text-center"> | ||
<input type="checkbox" class="form-check-input" data-checkbox-all> | ||
</div> | ||
</th> | ||
<th class="sort-col text-center"><b>Source ID</b></td> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
{% for source in sources %} | ||
<tr> | ||
<td class="border-right" data-checkbox> | ||
<div class="form-check text-center"> | ||
<input type="checkbox" class="form-check-input" | ||
data-source-id="{{ source.id }}"> | ||
</div> | ||
</td> | ||
|
||
<td class="text-center"> | ||
<div class="form-check" id="source-id-div"> | ||
{% if user_mode == "teams" %} | ||
<a href="{{ url_for('admin.teams_detail', team_id=source.id) }}"> | ||
{{ source.id }} | ||
</a> | ||
{% else %} | ||
<a href="{{ url_for('admin.users_detail', user_id=source.id) }}"> | ||
{{ source.id }} | ||
</a> | ||
{% endif %} | ||
</div> | ||
</td> | ||
{% endfor %} | ||
|
||
</tbody> | ||
</table> | ||
</div> | ||
|
||
|
||
<div class="col-md-6"> | ||
<table class="table table-striped border"> | ||
<thead> | ||
<tr> | ||
<th class="border-right" data-checkbox> | ||
<div class="form-check text-center"> | ||
<input type="checkbox" class="form-check-input" data-checkbox-all> | ||
</div> | ||
</th> | ||
<th class="sort-col text-center"><b>ID</b></td> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
{% for challenge in challenges %} | ||
<tr> | ||
<td class="border-right" data-checkbox> | ||
<div class="form-check text-center"> | ||
<input type="checkbox" class="form-check-input" | ||
data-challenge-id="{{ challenge.id }}"> | ||
</div> | ||
</td> | ||
|
||
<td class="text-center"> | ||
<div class="form-check" id="challenge-id-div"> | ||
<a href="{{ url_for('admin.challenges_detail', challenge_id=challenge.id) }}"> | ||
{{ challenge.id }} | ||
</a> | ||
</div> | ||
</td> | ||
{% endfor %} | ||
|
||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
<button type="button" class="btn btn-outline-secondary" data-toggle="tooltip" title="" id="instances-create-button" data-original-title="Provisioner"> | ||
<i class="fa-solid fa-octagon-plus"></i> | ||
<!-- FIXME --> | ||
</button> | ||
|
||
|
||
{% endblock %} | ||
|
||
{% block scripts %} | ||
<script defer src="{{ url_for('plugins.ctfd-chall-manager.assets', path='instances.js') }}"></script> | ||
{% endblock %} |