mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-09 00:04:21 +01:00
Add autocomplete='off' to admin pages to fix Firefox caching checkboxes (#2158)
* Add autocomplete='off' to admin pages to fix Firefox caching checkboxes
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
<tr>
|
||||
<td class="d-block border-right border-bottom text-center" data-checkbox>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</td>
|
||||
<th class="sort-col text-center"><b>ID</b></th>
|
||||
@@ -88,7 +88,7 @@
|
||||
<tr data-href="{{ url_for('admin.challenges_detail', challenge_id=challenge.id) }}">
|
||||
<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 }}">
|
||||
<input type="checkbox" class="form-check-input" value="{{ challenge.id }}" autocomplete="off" data-challenge-id="{{ challenge.id }}">
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center">{{ challenge.id }}</td>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{% with form = Forms.notifications.NotificationForm() %}
|
||||
<form method="POST" id="notifications_form">
|
||||
<form method="POST" id="notifications_form" autocomplete="off">
|
||||
<div class="form-group">
|
||||
<b>{{ form.title.label }}</b>
|
||||
{{ form.title(class="form-control") }}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<tr>
|
||||
<th class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" id="scoreboard-bulk-select" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" id="pages-bulk-select" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</th>
|
||||
<th class="sort-col text-center"><b>Title</b></th>
|
||||
@@ -50,7 +50,7 @@
|
||||
<tr data-href="{{ url_for('admin.pages_detail', page_id=page.id) }}">
|
||||
<td class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" value="{{ page.id }}" data-page-id="{{ page.id }}">
|
||||
<input type="checkbox" class="form-check-input" value="{{ page.id }}" data-page-id="{{ page.id }}" autocomplete="off">
|
||||
</div>
|
||||
</td>
|
||||
<td class="page-title">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<tr>
|
||||
<th class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" id="scoreboard-bulk-select" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" id="scoreboard-bulk-select" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</th>
|
||||
<th class="sort-col text-center"><b>Place</b></th>
|
||||
@@ -17,7 +17,7 @@
|
||||
<tr data-href="{{ generate_account_url(standing.account_id, admin=True) }}">
|
||||
<td class="border-right text-center" data-checkbox>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" value="{{ standing.account_id }}" data-account-id="{{ standing.account_id }}">
|
||||
<input type="checkbox" class="form-check-input" value="{{ standing.account_id }}" data-account-id="{{ standing.account_id }}" autocomplete="off">
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center" width="10%">{{ loop.index }}</td>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<tr>
|
||||
<th class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" id="scoreboard-bulk-select" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" id="users-bulk-select" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</th>
|
||||
<th class="sort-col text-center"><b>Place</b></th>
|
||||
@@ -17,7 +17,7 @@
|
||||
<tr data-href="{{ url_for('admin.users_detail', user_id=standing.user_id) }}">
|
||||
<td class="border-right text-center" data-checkbox>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" value="{{ standing.user_id }}" data-user-id="{{ standing.user_id }}">
|
||||
<input type="checkbox" class="form-check-input" value="{{ standing.user_id }}" autocomplete="off" data-user-id="{{ standing.user_id }}">
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center" width="10%">{{ loop.index }}</td>
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
<tr>
|
||||
<th class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</th>
|
||||
<th class="text-center sort-col"><b>ID</b></th>
|
||||
@@ -82,7 +82,7 @@
|
||||
<tr>
|
||||
<td class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" value="{{ sub.id }}" data-submission-id="{{ sub.id }}">
|
||||
<input type="checkbox" class="form-check-input" value="{{ sub.id }}" data-submission-id="{{ sub.id }}" autocomplete="off">
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center" id="{{ sub.id }}">
|
||||
|
||||
@@ -332,7 +332,7 @@
|
||||
<tr>
|
||||
<th class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</th>
|
||||
<th class="sort-col text-center"><b>Challenge</b></th>
|
||||
@@ -348,7 +348,8 @@
|
||||
<tr class="chal-solve" data-href="{{ url_for("admin.challenges_detail", challenge_id=solve.challenge_id) }}">
|
||||
<td class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" value="{{ solve.id }}" data-submission-id="{{ solve.id }}"
|
||||
<input type="checkbox" class="form-check-input" value="{{ solve.id }}" autocomplete="off"
|
||||
data-submission-id="{{ solve.id }}"
|
||||
data-submission-type="{{ solve.type }}"
|
||||
data-submission-challenge="{{ solve.challenge.name }}">
|
||||
</div>
|
||||
@@ -397,7 +398,7 @@
|
||||
<tr>
|
||||
<th class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</th>
|
||||
<th class="sort-col text-center"><b>Challenge</b></th>
|
||||
@@ -411,7 +412,8 @@
|
||||
<tr class="chal-wrong" data-href="{{ url_for("admin.challenges_detail", challenge_id=fail.challenge_id) }}">
|
||||
<td class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" value="{{ fail.id }}" data-submission-id="{{ fail.id }}"
|
||||
<input type="checkbox" class="form-check-input" value="{{ fail.id }}" autocomplete="off"
|
||||
data-submission-id="{{ fail.id }}"
|
||||
data-submission-type="{{ fail.type }}"
|
||||
data-submission-challenge="{{ fail.challenge.name }}">
|
||||
</div>
|
||||
@@ -458,7 +460,7 @@
|
||||
<tr>
|
||||
<th class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</th>
|
||||
<th class="sort-col text-center"><b>Name</b></th>
|
||||
@@ -475,7 +477,7 @@
|
||||
<tr class="award-row">
|
||||
<td class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" value="{{ award.id }}" data-award-id="{{ award.id }}" data-award-name="{{ award.name }}">
|
||||
<input type="checkbox" class="form-check-input" value="{{ award.id }}" autocomplete="off" data-award-id="{{ award.id }}" data-award-name="{{ award.name }}">
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center chal" id="{{ award.id }}">{{ award.name }}</td>
|
||||
@@ -519,7 +521,7 @@
|
||||
<tr>
|
||||
<th class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</th>
|
||||
<th class="sort-col text-center"><b>Challenge</b></th>
|
||||
@@ -532,7 +534,7 @@
|
||||
<tr class="chal-solve" data-href="{{ url_for("admin.challenges_detail", challenge_id=challenge.id) }}">
|
||||
<td class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" value="{{ challenge.id }}" data-missing-challenge-id="{{ challenge.id }}"
|
||||
<input type="checkbox" class="form-check-input" value="{{ challenge.id }}" autocomplete="off" data-missing-challenge-id="{{ challenge.id }}"
|
||||
data-missing-challenge-name="{{ challenge.name }}">
|
||||
</div>
|
||||
</td>
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
<tr>
|
||||
<th class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</th>
|
||||
<th class="sort-col text-center"><b>ID</b></th>
|
||||
@@ -85,7 +85,7 @@
|
||||
<tr name="{{ team.id }}" data-href="{{ url_for('admin.teams_detail', team_id=team.id) }}">
|
||||
<td class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" value="{{ team.id }}" data-team-id="{{ team.id }}">
|
||||
<input type="checkbox" class="form-check-input" value="{{ team.id }}" autocomplete="off" data-team-id="{{ team.id }}">
|
||||
</div>
|
||||
</td>
|
||||
<td class="team-id text-center" value="{{ team.id }}">{{ team.id }}</td>
|
||||
|
||||
@@ -218,7 +218,7 @@
|
||||
<tr>
|
||||
<th class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</th>
|
||||
<th class="sort-col text-center"><b>Challenge</b></th>
|
||||
@@ -233,7 +233,8 @@
|
||||
<tr class="chal-solve" data-href="{{ url_for("admin.challenges_detail", challenge_id=solve.challenge_id) }}">
|
||||
<td class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" value="{{ solve.id }}" data-submission-id="{{ solve.id }}"
|
||||
<input type="checkbox" class="form-check-input" value="{{ solve.id }}" autocomplete="off"
|
||||
data-submission-id="{{ solve.id }}"
|
||||
data-submission-type="{{ solve.type }}"
|
||||
data-submission-challenge="{{ solve.challenge.name }}">
|
||||
</div>
|
||||
@@ -277,7 +278,7 @@
|
||||
<tr>
|
||||
<th class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</th>
|
||||
<th class="sort-col text-center"><b>Challenge</b></th>
|
||||
@@ -290,7 +291,8 @@
|
||||
<tr class="chal-wrong" data-href="{{ url_for("admin.challenges_detail", challenge_id=fail.challenge_id) }}">
|
||||
<td class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" value="{{ fail.id }}" data-submission-id="{{ fail.id }}"
|
||||
<input type="checkbox" class="form-check-input" value="{{ fail.id }}" autocomplete="off"
|
||||
data-submission-id="{{ fail.id }}"
|
||||
data-submission-type="{{ fail.type }}"
|
||||
data-submission-challenge="{{ fail.challenge.name }}">
|
||||
</div>
|
||||
@@ -334,7 +336,7 @@
|
||||
<tr>
|
||||
<th class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</th>
|
||||
<th class="sort-col text-center"><b>Name</b></th>
|
||||
@@ -350,7 +352,7 @@
|
||||
<tr class="award-row">
|
||||
<td class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" value="{{ award.id }}" data-award-id="{{ award.id }}" data-award-name="{{ award.name }}">
|
||||
<input type="checkbox" class="form-check-input" value="{{ award.id }}" autocomplete="off" data-award-id="{{ award.id }}" data-award-name="{{ award.name }}">
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center chal" id="{{ award.id }}">{{ award.name }}</td>
|
||||
@@ -389,7 +391,7 @@
|
||||
<tr>
|
||||
<th class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
||||
<input type="checkbox" class="form-check-input" autocomplete="off" data-checkbox-all>
|
||||
</div>
|
||||
</th>
|
||||
<th class="sort-col text-center"><b>Challenge</b></th>
|
||||
@@ -402,7 +404,7 @@
|
||||
<tr class="chal-solve" data-href="{{ url_for("admin.challenges_detail", challenge_id=challenge.id) }}">
|
||||
<td class="border-right" data-checkbox>
|
||||
<div class="form-check text-center">
|
||||
<input type="checkbox" class="form-check-input" value="{{ challenge.id }}" data-missing-challenge-id="{{ challenge.id }}"
|
||||
<input type="checkbox" class="form-check-input" value="{{ challenge.id }}" autocomplete="off" data-missing-challenge-id="{{ challenge.id }}"
|
||||
data-missing-challenge-name="{{ challenge.name }}">
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user