@using TravelCompanyContracts.ViewModels.TouristViewModels;

@model TouristViewModel

@{
    ViewData["Title"] = "Privacy Policy";
}
<div class="text-center">
    <h2 class="display-4">Личные данные</h2>
</div>
<div class="text-center" style="margin-top:50px">
    @{
        if (Model == null)
        {
                    <h3 class="display-4">Авторизируйтесь</h3>
            return;
        }
<form method="post">
<div class="row">
       <div class="row">
         <div class="col-4"></div>
        <div class="col-2">Фамилия:</div>
        <div class="col-4"><input type="text" name="surname" value="@Model.Surname"/></div>
    </div>
    <div class="row">
        <div class="col-4"></div>
        <div class="col-2">Имя:</div>
        <div class="col-4"><input type="text" name="name" value="@Model.Name"/></div>
    </div>
    <div class="row">
        <div class="col-4"></div>
        <div class="col-2">Отчество:</div>
        <div class="col-4"><input type="text" name="patronymic" value="@Model.Patronymic" /></div>
    </div>
    <div class="row">
        <div class="col-4"></div>
        <div class="col-2">Дата рождения:</div>
                    <div class="col-2"></div>
        <div class="col-2">
            <input type="date" class="form-control" name="birthday" value="@Model.BirthDay.ToString("yyyy-MM-dd")" />
        </div>
    </div>
    <div class="row">
        <div class="col-4"></div>
        <div class="col-2">Логин:</div>
        <div class="col-4"><input type="text" name="login" value="@Model.Login"/></div>
    </div>
    <div class="row">
        <div class="col-4"></div>
        <div class="col-2">Email:</div>
        <div class="col-4"><input type="text" name="email" value="@Model.Email" /></div>
    </div>
    <div class="row">
        <div class="col-4"></div>
        <div class="col-2">Пароль:</div>
        <div class="col-4"><input type="password" name="password" value="@Model.Password"/></div>
    </div>
    <div class="row" style="margin-top:30px">
        <div class="col-8"></div>
        <div class="col-4"><input type="submit" value="Сохранить" class="btn btn-primary" /></div>
    </div>
</form>
    }