mediamanager/MediaManager/Pages/AddShow.cshtml
Laura Hausmann 2ebfd26334
Initial public git commit
Signed-off-by: Laura Hausmann <laura@hausmann.dev>
2022-09-03 01:59:27 +02:00

65 lines
2.4 KiB
Plaintext

@page
@using MediaManager.database
@using MediaManager.database.Tables
@model MediaManager.Pages.AddShow
@{
ViewData["Title"] = "Add Show";
}
<div class="text-center">
<h1 class="display-5">
Add Show
</h1>
</div>
<form method="POST">
<div class="mb-3">
<label for="title" class="form-label">Title</label>
<input type="text" maxlength="100" class="form-control" id="title" name="title" autofocus required>
</div>
<div class="mb-3">
<label for="year" class="form-label">Year</label>
<input type="number" min="1800" max="2100" class="form-control" id="year" name="year" required>
</div>
<div class="mb-3">
<label for="rating" class="form-label">Rating</label>
<input type="number" min="0" max="10" class="form-control" id="rating" name="rating">
</div>
<div class="mb-3">
<label for="rewatchability" class="form-label">Rewatchability</label>
<input type="number" min="0" max="10" class="form-control" id="rewatchability" name="rewatchability">
</div>
<div class="mb-3">
<label for="watchcount" class="form-label">Watch count</label>
<input type="number" min="0" class="form-control" id="watchcount" name="watchcount" value="0" required>
</div>
<div class="mb-3">
<label for="lastwatch" class="form-label">Last watch</label>
<input type="date" class="form-control" id="lastwatch" name="lastwatch">
</div>
<div class="mb-3">
<label for="status" class="form-label">Status</label>
<select class="form-select" id="status" name="status">
<option value="1" selected>Unwatched</option>
<option value="2">First Watch</option>
<option value="3">Waiting</option>
<option value="4">Finished</option>
<option value="5">Rewatch</option>
</select>
</div>
<div class="mb-3">
<label for="seeneps" class="form-label">Episodes seen</label>
<input type="number" min="0" class="form-control" id="seeneps" name="seeneps" value="0" required>
</div>
<div class="mb-3">
<label for="totaleps" class="form-label">Episodes total</label>
<input type="number" min="1" class="form-control" id="totaleps" name="totaleps" required>
</div>
<div class="mb-3">
<label for="comment" class="form-label">Comment</label>
<input type="text" maxlength="100" class="form-control" id="comment" name="comment">
</div>
<button type="submit" class="btn btn-secondary" name="another" value="true">Add another</button>
<button type="submit" class="btn btn-primary" name="another" value="false">Add</button>
</form>