@{
    ViewData["Title"] = "CreatePlace";
}
<div class="text-center">
    <h2 class="display-4">Создание места</h2>
</div>
<form method="post" style="margin-top:50px">
    <div class="row">
        <div class="col-4"></div>
        <div class="col-2">Название:</div>
        <div class="col-4"><input type="text" name="placename" id="placename" /></div>
    </div>
   <div class="row">
       <div class="col-4"></div>
        <div class="col-2">Адрес:</div>
        <div class="col-4"><input type="text" name="address" id="address" /></div>
    </div>
    <div class="row">
        <div class="col-4"></div>
        <div class="col-2">Экскурсия:</div>
        <div class="col-4">
            <select name="excursion" class="form-control" id="excursion">
                @foreach (var excursion in ViewBag.Excursions)
                {
                    <option value="@excursion.Id">@excursion.ExcursionName</option>
                }
            </select>
        </div>
    </div>
    <div class="row" style="margin-top:20px">
        <div class="col-8"></div>
        <div class="col-4"><input type="submit" value="Создать" class="btn btn-primary" /></div>
    </div>
</form>

