@{
	ViewData["Title"] = "CreateVisit";
}

<div class="text-center">
	<h2 class="display-4">Создание посещения</h2>
</div>
<form method="post">
	<div class="row">
		<div class="col-4">Название:</div>
		<div class="col-8">
			<input type="text" name="name" />
		</div>
	</div>
	<div class="row">
		<div class="col-4">Дата:</div>
		<div class="col-8">
			<input type="datetime-local" id="datetime" name="datetime" />
		</div>
	</div>
	<div class="row">
		<div class="col-4">Врач:</div>
		<div class="col-8">
			<select id="doctor" name="doctor" class="form-control" asp-items="@(new SelectList(@ViewBag.Doctors, "Id", "DoctorFIO"))"></select>
		</div>
	</div>
	<div class="row">
		<div class="col-4">Животные:</div>
		<div class="col-8">
			<select name="pets" class="form-control" multiple size="6" id="pets">
				@foreach (var pet in ViewBag.Pets)
				{
					<option value="@pet.Id">@pet.PetName</option>
				}
			</select>
		</div>
	</div>
	<div class="row">
		<div class="col-8"></div>
		<div class="col-4">
			<input type="submit" value="Создать" class="btn btn-primary" />
		</div>
	</div>
</form>
