Skip to content

Commit

Permalink
Add Quick Keys to Match Play
Browse files Browse the repository at this point in the history
  • Loading branch information
cpapplefamily committed Nov 30, 2024
1 parent 6ce1cd8 commit 33b29bb
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions templates/match_play.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
<div class="col-lg-2" data-bs-toggle="tooltip" title="Robot Status">Rbt</div>
<div class="col-lg-2" data-bs-toggle="tooltip" title="Bypass/Disable">Byp</div>
</div>
{{template "matchPlayTeam" dict "color" "B" "position" 1}}
{{template "matchPlayTeam" dict "color" "B" "position" 2}}
{{template "matchPlayTeam" dict "color" "B" "position" 3}}
{{template "matchPlayTeam" dict "color" "B" "position" 1 "data" . "bypass" 1}}
{{template "matchPlayTeam" dict "color" "B" "position" 2 "data" . "bypass" 2}}
{{template "matchPlayTeam" dict "color" "B" "position" 3 "data" . "bypass" 3}}
<div id="playoffBlueAllianceInfo"></div>
</div>
<div class="col-lg-6 card card-body bg-red mb-2">
Expand All @@ -39,9 +39,9 @@
<div class="col-lg-2" data-bs-toggle="tooltip" title="Robot Status">Rbt</div>
<div class="col-lg-2" data-bs-toggle="tooltip" title="Bypass/Disable">Byp</div>
</div>
{{template "matchPlayTeam" dict "color" "R" "position" 3}}
{{template "matchPlayTeam" dict "color" "R" "position" 2}}
{{template "matchPlayTeam" dict "color" "R" "position" 1}}
{{template "matchPlayTeam" dict "color" "R" "position" 3 "data" . "bypass" 4}}
{{template "matchPlayTeam" dict "color" "R" "position" 2 "data" . "bypass" 5}}
{{template "matchPlayTeam" dict "color" "R" "position" 1 "data" . "bypass" 6}}
<div id="playoffRedAllianceInfo"></div>
</div>
</div>
Expand All @@ -50,12 +50,14 @@
onclick="showOverlay();" disabled>
Show Overlay
</button>
<button type="button" id="startMatch" class="btn btn-success btn-match-play ms-1"
onclick="startMatch();" disabled>
<button accesskey="s" type="button" id="startMatch" class="btn btn-success btn-match-play ms-1"
onclick="startMatch();" disabled
data-toggle="tooltip" title="Quick Key [Alt]+s">
Start Match
</button>
<button type="button" id="commitResults" class="btn btn-primary btn-match-play ms-1"
onclick="confirmCommit();" disabled>
<button accesskey="c" type="button" id="commitResults" class="btn btn-primary btn-match-play ms-1"
onclick="confirmCommit();" disabled
data-toggle="tooltip" title="Quick Key [Alt]+c">
Commit Results
</button>
<button type="button" id="showFinalScore" class="btn btn-info btn-match-play ms-1"
Expand All @@ -68,8 +70,9 @@
onclick="substituteTeams();" disabled>
Substitute Teams
</button>
<button type="button" id="abortMatch" class="btn btn-danger btn-match-play ms-1"
onclick="abortMatch();" disabled>
<button accesskey="a" type="button" id="abortMatch" class="btn btn-danger btn-match-play ms-1"
onclick="abortMatch();" disabled
data-toggle="tooltip" title="Quick Key [Alt]+a">
Abort Match
</button>
<button type="button" id="discardResults" class="btn btn-warning btn-match-play ms-1"
Expand Down Expand Up @@ -250,7 +253,7 @@ <h4 class="modal-title">Confirm</h4>
<div class="modal-footer">
<form class="form-horizontal" action="/setup/teams/clear" method="POST">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" onclick="commitResults();" data-bs-dismiss="modal">
<button accesskey="v" type="button" class="btn btn-danger" onclick="commitResults();" data-bs-dismiss="modal" data-toggle="tooltip" title="Quick Key [Alt]+v">
Commit Results
</button>
</form>
Expand Down Expand Up @@ -301,7 +304,9 @@ <h4 class="modal-title">Confirm</h4>
<div class="robot-status" data-bs-toggle="tooltip" title="Battery / Time Since Link Lost"></div>
</div>
<div class="col-lg-2 col-no-padding">
<div class="bypass-status" onclick="toggleBypass('{{.color}}{{.position}}');"></div>
<div accesskey="{{.bypass}}" class="bypass-status" onclick="toggleBypass('{{.color}}{{.position}}');"
data-toggle="tooltip" title="Quick Key [Alt]+{{.bypass}}">
</div>
</div>
</div>
{{end}}

0 comments on commit 33b29bb

Please sign in to comment.