mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
Remove invalid id='submit' on submit buttons and correctly set tabindex to 0 (#1080)
* Remove invalid id='submit' on submit buttons * Set `tabindex` to 0 since we don't really care for forcing tab order.
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
<input id="challenge-id" type="hidden" value="{{ id }}">
|
||||
</div>
|
||||
<div class="col-md-3 form-group key-submit">
|
||||
<button type="submit" id="submit-key" tabindex="5"
|
||||
<button type="submit" id="submit-key" tabindex="0"
|
||||
class="btn btn-md btn-outline-secondary float-right">Submit
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<input id="challenge-id" type="hidden" value="{{ id }}">
|
||||
</div>
|
||||
<div class="col-md-3 form-group key-submit">
|
||||
<button type="submit" id="submit-key" tabindex="5"
|
||||
<button type="submit" id="submit-key" tabindex="0"
|
||||
class="btn btn-md btn-outline-secondary float-right">Submit
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
Need to resend the confirmation email?
|
||||
</h4>
|
||||
<div class="col-md-12 text-center">
|
||||
<button type="submit" id="submit" tabindex="5" class="btn btn-md btn-primary btn-outlined">Resend</button>
|
||||
<button type="submit" tabindex="0" class="btn btn-md btn-primary btn-outlined">Resend</button>
|
||||
</div>
|
||||
<input type="hidden" name="nonce" value="{{ nonce }}">
|
||||
</form>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<button type="submit" id="submit" tabindex="5" class="btn btn-md btn-primary btn-outlined float-right">
|
||||
<button type="submit" tabindex="0" class="btn btn-md btn-primary btn-outlined float-right">
|
||||
Submit
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
</div>
|
||||
<div class="row pt-3">
|
||||
<div class="col-md-12">
|
||||
<button type="submit" id="submit" tabindex="5" class="btn btn-md btn-primary btn-outlined float-right">Submit</button>
|
||||
<button type="submit" tabindex="0" class="btn btn-md btn-primary btn-outlined float-right">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="nonce" value="{{ nonce }}">
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
<div class="col-md-6 offset-md-6">
|
||||
<button type="submit" id="submit" tabindex="5" class="btn btn-md btn-primary float-right">Submit</button>
|
||||
<button type="submit" tabindex="0" class="btn btn-md btn-primary float-right">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" id="submit" tabindex="5" class="btn btn-md btn-primary btn-outlined float-right">Submit</button>
|
||||
<button type="submit" tabindex="0" class="btn btn-md btn-primary btn-outlined float-right">Submit</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
</div>
|
||||
<br/>
|
||||
<div class="submit-row text-center">
|
||||
<button type="submit" id="submit" tabindex="5" class="btn btn-md btn-primary btn-outlined">Submit
|
||||
<button type="submit" tabindex="0" class="btn btn-md btn-primary btn-outlined">Submit
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<input type="hidden" name="nonce" value="{{ nonce }}">
|
||||
<div class="row pt-3">
|
||||
<div class="col-md-12">
|
||||
<button type="submit" id="submit" class="btn btn-success float-right">
|
||||
<button type="submit" class="btn btn-success float-right">
|
||||
Join
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<div class="row pt-3">
|
||||
<div class="col-md-12">
|
||||
<p>After creating your team, share the team name and password with your teammates so they can join your team.</p>
|
||||
<button type="submit" id="submit" class="btn btn-success float-right">
|
||||
<button type="submit" class="btn btn-success float-right">
|
||||
Create
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user