@page
@using MediaManager.database
@model MediaManager.Pages.AddMovie
@{
	ViewData["Title"] = "Add Movie";
}

<div class="text-center">
	<h1 class="display-5">
		Add Movie
	</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="1" 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="1" 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="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>
