31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Register Student";
|
|
var students = ViewBag.Students as IEnumerable<StudentDto>;
|
|
var telId = ViewBag.TournamentEventLevelId as int?;
|
|
var eventName = ViewBag.EventName as string;
|
|
var levelName = ViewBag.LevelName as string;
|
|
}
|
|
|
|
<h2>Register Student</h2>
|
|
<p class="text-muted">@eventName - @levelName</p>
|
|
<hr />
|
|
|
|
<partial name="_Notification" />
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<form asp-action="Register" method="post">
|
|
<input type="hidden" name="TournamentEventLevelId" value="@telId" />
|
|
<div class="mb-3">
|
|
<label class="form-label">Student</label>
|
|
<select name="StudentId" class="form-select">
|
|
<option value="">Select Student</option>
|
|
@if (students != null) { @foreach (var s in students) { <option value="@s.StudentId">@s.FullName (@s.SchoolName) - @s.Sex</option> } }
|
|
</select>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Register</button>
|
|
<a asp-action="Index" asp-route-tournamentEventLevelId="@telId" class="btn btn-secondary">Cancel</a>
|
|
</form>
|
|
</div>
|
|
</div>
|