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

<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" id="name" />
		</div>
	</div>
	<div class="row">
		<div class="col-4">Количество:</div>
		<div class="col-8">
			<input type="number" name="count" id="count" />
		</div>
	</div>
	<div class="row">
		<div class="col-4">Медикаменты:</div>
		<div class="col-8">
			<select name="medications" class="form-control" multiple size="6" id="medications">
				@foreach (var medication in ViewBag.Medications)
				{
					<option value="@medication.Id">@medication.MedicationName</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>
