Add buttons to access add score and management pages
parent
bd0ae3bdfd
commit
fb63ef6b41
|
@ -8,6 +8,8 @@ const teamDropdown = document.getElementById('team-dropdown');
|
||||||
const gamesTable = document.getElementById('games-table');
|
const gamesTable = document.getElementById('games-table');
|
||||||
const gamesTableHeader = document.getElementById('games-table-header');
|
const gamesTableHeader = document.getElementById('games-table-header');
|
||||||
const noScoresMessage = document.getElementById('no-scores-message');
|
const noScoresMessage = document.getElementById('no-scores-message');
|
||||||
|
const addScoreButton = document.getElementById('add-score-button');
|
||||||
|
const manageButton = document.getElementById('manage-button');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -173,4 +175,13 @@ sportDropdown.onchange = (() => {
|
||||||
});
|
});
|
||||||
genderDropdown.onchange = listDivisions;
|
genderDropdown.onchange = listDivisions;
|
||||||
teamDropdown.onchange = listGames;
|
teamDropdown.onchange = listGames;
|
||||||
seasonDropdown.onchange = listGames;
|
seasonDropdown.onchange = listGames;
|
||||||
|
|
||||||
|
|
||||||
|
addScoreButton.addEventListener('click', () => {
|
||||||
|
window.location.href = '/manage/game';
|
||||||
|
});
|
||||||
|
|
||||||
|
manageButton.addEventListener('click', () => {
|
||||||
|
window.location.href = '/manage'
|
||||||
|
});
|
|
@ -18,4 +18,15 @@ th {
|
||||||
|
|
||||||
tr {
|
tr {
|
||||||
height: 3em;
|
height: 3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header-div {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
#actions-div {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
margin-left: auto;
|
||||||
}
|
}
|
|
@ -6,7 +6,11 @@ block stylesheets
|
||||||
|
|
||||||
block content
|
block content
|
||||||
div#mobile-view
|
div#mobile-view
|
||||||
h1 Score Tracker
|
div#header-div
|
||||||
|
h1 Score Tracker
|
||||||
|
div#actions-div
|
||||||
|
button#add-score-button +
|
||||||
|
button#manage-button Manage
|
||||||
div
|
div
|
||||||
span(class='form-section')
|
span(class='form-section')
|
||||||
label Year
|
label Year
|
||||||
|
|
Reference in New Issue