NBloodServerSupervisor/WebInterface/Views/Private/Index.cshtml
CommonLoon102 3af4c9dfc7
add option to play custom maps on private servers (#9)
* add option to play custom maps on private servers

* don't show every exception to the end-user

* hash the IPs

* add description about the purpose of the public custom map list

* add punctuation to error messages
2020-01-29 15:32:23 +00:00

39 lines
1006 B
Plaintext

@model PrivateViewModel
@{
ViewData["Title"] = "Request Private Server";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h1>@ViewData["Title"]</h1>
<div class="bordered" style="padding:4px">
<form enctype="multipart/form-data" method="post">
<dl>
<dt>
<label asp-for="ModName"></label>
</dt>
<dd>
<select asp-for="ModName" asp-items="Model.ModNames"></select>
</dd>
</dl>
<dl>
<dt>
<label asp-for="Players"></label>
</dt>
<dd>
<input type="number" min="2" max="7" asp-for="Players" />
</dd>
</dl>
<dl>
<dt>
<label asp-for="FormFile"></label>
</dt>
<dd>
<input asp-for="FormFile" type="file" accept=".map">
</dd>
</dl>
<button asp-route="RequestPrivateServer">Request</button>
</form>
</div>