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

<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">
            <select name="travelselect" class="form-control" id="travelselect">
                @foreach (var travel in ViewBag.Travels)
                {
                    <option value="@travel.Id">@travel.TravelName</option>
                }
            </select>
        </div>
    </div>

    <div class="row">
        <div class="col-4"></div>
        <div class="col-2">Экскурсии:</div>
        <div class="col-4">
            <select name="excursionselect" class="form-control" multiple size="4" id="excursionselect">
                @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-4"></div>
        <div class="col-8"></div>
        <div class="col-4"><input type="submit" value="Создать" class="btn btn-primary" /></div>
    </div>
</form>
