@using TravelCompanyContracts.ViewModels.TouristViewModels

@model TravelViewModel

@{
    ViewData["Title"] = "Privacy Policy";
}
<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="name" value="@Model.TravelName" /></div>
    </div>
    <div class="row">
        <div class="col-4"></div>
        <div class="col-2">Начало путешествия:</div>
        <div class="col-4"><input type="date" class="form-control" name="datestart" value="@Model.DateStart" /></div>
    </div>
    <div class="row">
        <div class="col-4"></div>
        <div class="col-2">Описание путешествия:</div>
        <div class="col-4"><input type="text" name="description" value="@Model.TravelDescription" /></div>
    </div>
    <div class="row">
        <div class="col-4"></div>
        <div class="col-2">Туры:</div>
    </div>
        @foreach (var item in Model.TourTravels.Values)
        {
            <div class="row">
                <div class="col-4"></div>
                <div class="col-4">
                    <select name="tour" class="form-control" value="@item.TourName" asp-items="@(new SelectList(@ViewBag.Tours,"Id", "TourName"))"></select>
                </div>
            </div>
        }

    <div class="row">
        <div class="col-8"></div>
        <div class="col-4"><input type="submit" value="Сохранить" class="btn btn-primary" style="margin-top:20px"/></div>
    </div>
</form>