2022-08-31 09:28:05 -07:00

97 lines
1.9 KiB
Plaintext

@model string[]
@{
ViewData["Title"] = "Step 1";
string side = Model[0] == "0" ? "Even" : "Odd";
}
<style>
html,
body {
height: 100%;
}
div.container-fluid {
height: 90%;
}
#HeaderGrid,
#FieldsGrid {
font-size: 12px;
}
.FieldTitle {
font-weight: bold;
}
</style>
@if (!string.IsNullOrEmpty(Model[5]))
{
<h3>@(side) - @(Model[1])</h3><br />
<h3>__-@(Model[4])-____.@(Model[2])-@(Model[3])</h3><br />
<h3>@(Model[5])</h3><br />
}
<h4>Step 1</h4>
<table>
<tr>
<td>
<label for="Side">Side:</label>
</td>
<td>
<span>&nbsp;</span>
</td>
<td>
<span>&nbsp;</span>
</td>
</tr>
<tr>
<td>
<span>&nbsp;</span>
</td>
<td>
<div class="form-group">
<input class="btn btn-primary" type="button" value="Even" id="EvenButton" />
</div>
</td>
<td>
<div class="form-group">
<input class="btn btn-primary" type="button" value="Odd" id="OddButton" />
</div>
</td>
</tr>
<tr>
<td>
<span>&nbsp;</span>
</td>
<td>
<span>&nbsp;</span>
</td>
<td>
<div class="form-group">
<input class="btn btn-warning" type="button" value="Restart" id="RestartButton" />
</div>
</td>
</tr>
</table>
<script>
function Submit(mod) {
if (mod === 9) {
window.location.href = '\Step1';
}
else {
window.location.href = '\Step2?mod=' + mod;
}
}
$(document).ready(function () {
$("#EvenButton").click(function () { Submit(0); });
$("#OddButton").click(function () { Submit(1); });
$("#RestartButton").click(function () { Submit(9); });
});
</script>