mirror of https://github.com/JohnHammond/CTFd.git
Switch to using outline button
parent
3a15c155c7
commit
3d058bce05
|
@ -18,28 +18,50 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="float-right pb-3">
|
||||||
|
<div class="btn-group" role="group">
|
||||||
|
<button type="button" class="btn btn-outline-danger">
|
||||||
|
<i class="btn-fa fas fa-trash-alt"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div>
|
<div>
|
||||||
<table id="challenges" class="table table-striped">
|
<table id="challenges" class="table table-striped border">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>ID</b></td>
|
<td class="d-block border-right border-bottom text-center" data-checkbox>
|
||||||
<td><b>Name</b></td>
|
<div class="form-check">
|
||||||
<td class="d-none d-md-table-cell d-lg-table-cell"><b>Category</b></td>
|
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||||
<td class="d-none d-md-table-cell d-lg-table-cell"><b>Value</b></td>
|
</div>
|
||||||
<td class="d-none d-md-table-cell d-lg-table-cell"><b>Type</b></td>
|
</td>
|
||||||
<td class="d-none d-md-table-cell d-lg-table-cell text-center"><b>State</b></td>
|
<th class="sort-col text-center"><b>ID</b></th>
|
||||||
|
<th class="sort-col"><b>Name</b></th>
|
||||||
|
<th class="d-none d-md-table-cell d-lg-table-cell sort-col"><b>Category</b></th>
|
||||||
|
<th class="d-none d-md-table-cell d-lg-table-cell sort-col text-center"><b>Value</b></th>
|
||||||
|
<th class="d-none d-md-table-cell d-lg-table-cell sort-col text-center"><b>Type</b></th>
|
||||||
|
<th class="d-none d-md-table-cell d-lg-table-cell sort-col text-center"><b>State</b></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for challenge in challenges %}
|
{% for challenge in challenges %}
|
||||||
<tr data-href="{{ url_for('admin.challenges_detail', challenge_id=challenge.id) }}">
|
<tr data-href="{{ url_for('admin.challenges_detail', challenge_id=challenge.id) }}">
|
||||||
<td>{{ challenge.id }}</td>
|
<td class="d-block border-right text-center" data-checkbox>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" value="{{ challenge.id }}" data-challenge-id="{{ challenge.id }}">
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td class="text-center">{{ challenge.id }}</td>
|
||||||
<td><a href="{{ url_for('admin.challenges_detail', challenge_id=challenge.id) }}">{{ challenge.name }}</a></td>
|
<td><a href="{{ url_for('admin.challenges_detail', challenge_id=challenge.id) }}">{{ challenge.name }}</a></td>
|
||||||
<td class="d-none d-md-table-cell d-lg-table-cell">{{ challenge.category }}</td>
|
<td class="d-none d-md-table-cell d-lg-table-cell">{{ challenge.category }}</td>
|
||||||
<td class="d-none d-md-table-cell d-lg-table-cell">{{ challenge.value }}</td>
|
<td class="d-none d-md-table-cell d-lg-table-cell text-center">{{ challenge.value }}</td>
|
||||||
<td class="d-none d-md-table-cell d-lg-table-cell">{{ challenge.type }}</td>
|
<td class="d-none d-md-table-cell d-lg-table-cell text-center">{{ challenge.type }}</td>
|
||||||
<td class="d-none d-md-table-cell d-lg-table-cell text-center">
|
<td class="d-none d-md-table-cell d-lg-table-cell text-center">
|
||||||
{% set badge_state = 'badge-danger' if challenge.state == 'hidden' else 'badge-success' %}
|
{% set badge_state = 'badge-danger' if challenge.state == 'hidden' else 'badge-success' %}
|
||||||
<span class="badge {{ badge_state }}">{{ challenge.state }}</span>
|
<span class="badge {{ badge_state }}">{{ challenge.state }}</span>
|
||||||
|
|
|
@ -19,20 +19,41 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<table id="pages" class="table table-striped">
|
<div class="float-right pb-3">
|
||||||
|
<div class="btn-group" role="group">
|
||||||
|
<button type="button" class="btn btn-outline-danger">
|
||||||
|
<i class="btn-fa fas fa-trash-alt"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<table id="pages" class="table table-striped border">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>Title</b></td>
|
<td class="d-block border-right border-bottom text-center" data-checkbox>
|
||||||
<td><b>Route</b></td>
|
<div class="form-check">
|
||||||
<td class="text-center"><b>Authentication</b></td>
|
<input type="checkbox" class="form-check-input" id="scoreboard-bulk-select" data-checkbox-all>
|
||||||
<td class="text-center"><b>Hidden</b></td>
|
</div>
|
||||||
<td class="text-center"><b>Published</b></td>
|
</td>
|
||||||
<td class="text-center" width="10px"><b>Settings</b></td>
|
<th class="sort-col text-center"><b>Title</b></th>
|
||||||
|
<th class="sort-col text-center"><b>Route</b></th>
|
||||||
|
<th class="sort-col text-center"><b>Authentication</b></th>
|
||||||
|
<th class="sort-col text-center"><b>Hidden</b></th>
|
||||||
|
<th class="sort-col text-center"><b>Published</b></th>
|
||||||
|
<!-- <th class="sort-col text-center" width="10px"><b>Settings</b></th> -->
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for page in pages %}
|
{% for page in pages %}
|
||||||
<tr>
|
<tr data-href="{{ url_for('admin.pages_detail', page_id=page.id) }}">
|
||||||
|
<td class="d-block border-right text-center" data-checkbox>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" value="{{ page.id }}" data-account-id="{{ page.id }}">
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
<td class="page-title">
|
<td class="page-title">
|
||||||
{{ page.title }}
|
{{ page.title }}
|
||||||
</td>
|
</td>
|
||||||
|
@ -60,7 +81,7 @@
|
||||||
Published
|
Published
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center">
|
<!-- <td class="text-center">
|
||||||
<span class="edit-page" data-toggle="tooltip" data-placement="top"
|
<span class="edit-page" data-toggle="tooltip" data-placement="top"
|
||||||
title="Edit {{ page.route }}">
|
title="Edit {{ page.route }}">
|
||||||
<a class="no-decoration" href="{{ url_for('admin.pages_detail', page_id=page.id) }}"><i class="btn-fa fas fa-edit"></i></a>
|
<a class="no-decoration" href="{{ url_for('admin.pages_detail', page_id=page.id) }}"><i class="btn-fa fas fa-edit"></i></a>
|
||||||
|
@ -70,7 +91,7 @@
|
||||||
title="Delete {{ page.route }}">
|
title="Delete {{ page.route }}">
|
||||||
<i class="btn-fa fas fa-times"></i>
|
<i class="btn-fa fas fa-times"></i>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td> -->
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -11,10 +11,10 @@
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="float-right pb-3">
|
<div class="float-right pb-3">
|
||||||
<div class="btn-group" role="group">
|
<div class="btn-group" role="group">
|
||||||
<button type="button" class="btn btn-danger" id="scoreboard-hide-button" data-toggle="tooltip" title="Hide Accounts">
|
<button type="button" class="btn btn-outline-danger" id="scoreboard-hide-button" data-toggle="tooltip" title="Hide Accounts">
|
||||||
<i class="btn-fa fas fa-eye-slash"></i>
|
<i class="btn-fa fas fa-eye-slash"></i>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-success" id="scoreboard-show-button" data-toggle="tooltip" title="Unhide Accounts">
|
<button type="button" class="btn btn-outline-success" id="scoreboard-show-button" data-toggle="tooltip" title="Unhide Accounts">
|
||||||
<i class="btn-fa fas fa-eye"></i>
|
<i class="btn-fa fas fa-eye"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="float-right pb-3">
|
<div class="float-right pb-3">
|
||||||
<div class="btn-group" role="group">
|
<div class="btn-group" role="group">
|
||||||
<button type="button" class="btn btn-danger" id="submission-delete-button">
|
<button type="button" class="btn btn-outline-danger" id="submission-delete-button">
|
||||||
<i class="btn-fa fas fa-trash-alt"></i>
|
<i class="btn-fa fas fa-trash-alt"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -56,7 +56,9 @@
|
||||||
<a href="{{ generate_account_url(sub.account_id, admin=True) }}">{{ sub.team_name }}</a>
|
<a href="{{ generate_account_url(sub.account_id, admin=True) }}">{{ sub.team_name }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="chal" id="{{ sub.challenge_id }}">
|
<td class="chal" id="{{ sub.challenge_id }}">
|
||||||
{{ sub.challenge_name }}
|
<a href="{{ url_for('admin.challenges_detail', challenge_id=sub.challenge_id) }}">
|
||||||
|
{{ sub.challenge_name }}
|
||||||
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ sub.type }}
|
{{ sub.type }}
|
||||||
|
|
|
@ -24,48 +24,68 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<form method="GET" class="form-inline">
|
<form method="GET" class="form-inline">
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="sel1" class="sr-only" >Search Field</label>
|
<label for="sel1" class="sr-only" >Search Field</label>
|
||||||
<select class="form-control custom-select w-100" id="sel1" name="field">
|
<select class="form-control custom-select w-100" id="sel1" name="field">
|
||||||
<option value="name" {% if field == 'name' %}selected{% endif %}>Name</option>
|
<option value="name" {% if field == 'name' %}selected{% endif %}>Name</option>
|
||||||
<option value="id" {% if field == 'id' %}selected{% endif %}>ID</option>
|
<option value="id" {% if field == 'id' %}selected{% endif %}>ID</option>
|
||||||
<option value="email" {% if field == 'email' %}selected{% endif %}>Email</option>
|
<option value="email" {% if field == 'email' %}selected{% endif %}>Email</option>
|
||||||
<option value="affiliation" {% if field == 'affiliation' %}selected{% endif %}>Affiliation</option>
|
<option value="affiliation" {% if field == 'affiliation' %}selected{% endif %}>Affiliation</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-8">
|
<div class="form-group col-md-8">
|
||||||
<label for="team-name-search" class="sr-only">Parameter</label>
|
<label for="team-name-search" class="sr-only">Parameter</label>
|
||||||
<input type="text" class="form-control w-100" id="team-name-search" name="q" placeholder="Search for matching team names" {% if q %}value="{{q}}"{% endif %}>
|
<input type="text" class="form-control w-100" id="team-name-search" name="q" placeholder="Search for matching team names" {% if q %}value="{{q}}"{% endif %}>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="team-name-search" class="sr-only">Search</label>
|
<label for="team-name-search" class="sr-only">Search</label>
|
||||||
<button type="submit" class="btn btn-primary w-100"><i class="fas fa-search" aria-hidden="true"></i></button>
|
<button type="submit" class="btn btn-primary w-100"><i class="fas fa-search" aria-hidden="true"></i></button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<br>
|
<hr>
|
||||||
|
|
||||||
<table id="teamsboard" class="table table-striped">
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="float-right pb-3">
|
||||||
|
<div class="btn-group" role="group">
|
||||||
|
<button type="button" class="btn btn-outline-danger">
|
||||||
|
<i class="btn-fa fas fa-trash-alt"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<table id="teamsboard" class="table table-striped border">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="10px" class="text-center"><b>ID</b>
|
<td class="d-block border-right border-bottom text-center" data-checkbox>
|
||||||
</td>
|
<div class="form-check">
|
||||||
<td class="text-left"><b>Team</b>
|
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||||
</td>
|
</div>
|
||||||
<td class="text-center"><b>Website</b>
|
|
||||||
</td>
|
|
||||||
<td class="text-center"><b>Country</b>
|
|
||||||
</td>
|
|
||||||
<td class="text-center"><b>Hidden</b>
|
|
||||||
</td>
|
|
||||||
<td class="text-center"><b>Banned</b>
|
|
||||||
</td>
|
</td>
|
||||||
|
<th class="sort-col text-center"><b>ID</b></th>
|
||||||
|
<th class="sort-col text-left"><b>Team</b></th>
|
||||||
|
<th class="sort-col text-center"><b>Website</b></th>
|
||||||
|
<th class="sort-col text-center"><b>Country</b></th>
|
||||||
|
<th class="sort-col text-center"><b>Hidden</b></th>
|
||||||
|
<th class="sort-col text-center"><b>Banned</b></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for team in teams %}
|
{% for team in teams %}
|
||||||
<tr name="{{ team.id }}" data-href="{{ url_for('admin.teams_detail', team_id=team.id) }}">
|
<tr name="{{ team.id }}" data-href="{{ url_for('admin.teams_detail', team_id=team.id) }}">
|
||||||
<td class="team-id" value="{{ team.id }}">{{ team.id }}</td>
|
<td class="d-block border-right" data-checkbox>
|
||||||
|
<div class="form-check text-center">
|
||||||
|
<input type="checkbox" class="form-check-input" value="{{ team.id }}" data-submission-id="{{ team.id }}">
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td class="team-id text-center value="{{ team.id }}">{{ team.id }}</td>
|
||||||
<td class="team-name" value="{{ team.name }}">
|
<td class="team-name" value="{{ team.name }}">
|
||||||
<a href="{{ url_for('admin.teams_detail', team_id=team.id) }}">
|
<a href="{{ url_for('admin.teams_detail', team_id=team.id) }}">
|
||||||
{{ team.name | truncate(32) }}
|
{{ team.name | truncate(32) }}
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
{% if q and field %}
|
{% if q and field %}
|
||||||
|
@ -24,55 +25,71 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<form method="GET" class="form-inline">
|
<form method="GET" class="form-inline">
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="sel1" class="sr-only" >Search Field</label>
|
<label for="sel1" class="sr-only" >Search Field</label>
|
||||||
<select class="form-control custom-select w-100" id="sel1" name="field">
|
<select class="form-control custom-select w-100" id="sel1" name="field">
|
||||||
<option value="name" {% if field == 'name' %}selected{% endif %}>Name</option>
|
<option value="name" {% if field == 'name' %}selected{% endif %}>Name</option>
|
||||||
<option value="id" {% if field == 'id' %}selected{% endif %}>ID</option>
|
<option value="id" {% if field == 'id' %}selected{% endif %}>ID</option>
|
||||||
<option value="email" {% if field == 'email' %}selected{% endif %}>Email</option>
|
<option value="email" {% if field == 'email' %}selected{% endif %}>Email</option>
|
||||||
<option value="affiliation" {% if field == 'affiliation' %}selected{% endif %}>Affiliation</option>
|
<option value="affiliation" {% if field == 'affiliation' %}selected{% endif %}>Affiliation</option>
|
||||||
<option value="ip" {% if field == 'ip' %}selected{% endif %}>IP Address</option>
|
<option value="ip" {% if field == 'ip' %}selected{% endif %}>IP Address</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-8">
|
<div class="form-group col-md-8">
|
||||||
<label for="team-name-search" class="sr-only">Parameter</label>
|
<label for="team-name-search" class="sr-only">Parameter</label>
|
||||||
<input type="text" class="form-control w-100" id="team-name-search" name="q" placeholder="Search for matching user" {% if q %}value="{{q}}"{% endif %}>
|
<input type="text" class="form-control w-100" id="team-name-search" name="q" placeholder="Search for matching user" {% if q %}value="{{q}}"{% endif %}>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="team-name-search" class="sr-only">Search</label>
|
<label for="team-name-search" class="sr-only">Search</label>
|
||||||
<button type="submit" class="btn btn-primary w-100"><i class="fas fa-search" aria-hidden="true"></i></button>
|
<button type="submit" class="btn btn-primary w-100"><i class="fas fa-search" aria-hidden="true"></i></button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<br>
|
<hr>
|
||||||
|
|
||||||
<table id="teamsboard" class="table table-striped">
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="float-right pb-3">
|
||||||
|
<div class="btn-group" role="group">
|
||||||
|
<button type="button" class="btn btn-outline-danger">
|
||||||
|
<i class="btn-fa fas fa-trash-alt"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<table id="teamsboard" class="table table-striped border">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="10px" class="text-center"><b>ID</b>
|
<td class="d-block border-right border-bottom text-center" data-checkbox>
|
||||||
</td>
|
<div class="form-check">
|
||||||
<td class="text-center"><b>User</b>
|
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||||
</td>
|
</div>
|
||||||
<td class="d-md-table-cell d-lg-table-cell text-center"><b>Email</b>
|
|
||||||
</td>
|
|
||||||
<td class=""><b>Website</b>
|
|
||||||
</td>
|
|
||||||
<td class=""><b>Country</b>
|
|
||||||
</td>
|
|
||||||
<td class="text-center"><b>Admin</b>
|
|
||||||
</td>
|
|
||||||
<td class="text-center"><b>Verified</b>
|
|
||||||
</td>
|
|
||||||
<td class="text-center"><b>Hidden</b>
|
|
||||||
</td>
|
|
||||||
<td class="text-center"><b>Banned</b>
|
|
||||||
</td>
|
</td>
|
||||||
|
<th class="sort-col text-center"><b>ID</b></td>
|
||||||
|
<th class="sort-col text-center"><b>User</b></th>
|
||||||
|
<th class="d-md-table-cell d-lg-table-cell sort-col text-center"><b>Email</b></th>
|
||||||
|
<th class="sort-col"><b>Website</b></th>
|
||||||
|
<th class="sort-col"><b>Country</b></th>
|
||||||
|
<th class="sort-col text-center"><b>Admin</b></th>
|
||||||
|
<th class="sort-col text-center"><b>Verified</b></th>
|
||||||
|
<th class="sort-col text-center"><b>Hidden</b></th>
|
||||||
|
<th class="sort-col text-center"><b>Banned</b></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for user in users %}
|
{% for user in users %}
|
||||||
<tr name="{{ user.id }}" data-href="{{ url_for('admin.users_detail', user_id=user.id) }}">
|
<tr name="{{ user.id }}" data-href="{{ url_for('admin.users_detail', user_id=user.id) }}">
|
||||||
<td class="team-id" value="{{ user.id }}">{{ user.id }}</td>
|
<td class="d-block border-right text-center" data-checkbox>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" value="{{ user.id }}" data-account-id="{{ user.id }}">
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td class="team-id text-center" value="{{ user.id }}">{{ user.id }}</td>
|
||||||
<td class="team-name" value="{{ user.name }}">
|
<td class="team-name" value="{{ user.name }}">
|
||||||
<a href="{{ url_for('admin.users_detail', user_id=user.id) }}">
|
<a href="{{ url_for('admin.users_detail', user_id=user.id) }}">
|
||||||
{{ user.name | truncate(32) }}
|
{{ user.name | truncate(32) }}
|
||||||
|
|
Loading…
Reference in New Issue