41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
|
|
@{
|
|
ViewData["Title"] = "Eintrag erstellen";
|
|
}
|
|
|
|
<h1>Eintrag erstellen</h1>
|
|
|
|
<form method="post" asp-action="CreateEntry" asp-controller="Home">
|
|
<fieldset class="mb-3">
|
|
<label class="form-label">Modul</label>
|
|
<select class="form-control" name="ModuleId" required>
|
|
@foreach (var oModule in (Dictionary<int, string>)ViewData["Modules"])
|
|
{
|
|
<option value="@oModule.Key">@oModule.Value</option>
|
|
}
|
|
</select>
|
|
</fieldset>
|
|
|
|
<fieldset class="mb-3">
|
|
<label class="form-label">Typ</label>
|
|
<select class="form-control" name="TypeId" required>
|
|
@foreach (var oType in (Dictionary<int, string>)ViewData["Types"])
|
|
{
|
|
<option value="@oType.Key">@oType.Value</option>
|
|
}
|
|
</select>
|
|
</fieldset>
|
|
|
|
<fieldset class="mb-3">
|
|
<label class="form-label">Version (Format "1.2.3")</label>
|
|
<input type="text" class="form-control" name="Version" pattern="\d+\.\d+\.\d+" required />
|
|
</fieldset>
|
|
|
|
<fieldset class="mb-3">
|
|
<label class="form-label">Changelog Text</label>
|
|
<textarea class="form-control" rows="10" name="EntryText" required></textarea>
|
|
</fieldset>
|
|
|
|
<button type="submit" class="btn btn-primary">Abschicken</button>
|
|
</form>
|