@model ResoursesManager.Models.Reservation

@{
    ViewBag.Title = "Leírás";
}

<h2>Foglalás</h2>

<div>
    <h4>Foglalás részletei</h4>
    <hr />
    <dl class="dl-horizontal">

        <dt>
            @Html.DisplayNameFor(model => model.Begining)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Begining)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.End)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.End)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.User)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.User)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Resource.Name)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Resource.Name)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Resource.AssetTag)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Resource.AssetTag)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Resource.Description)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Resource.Description)
        </dd>
    </dl>
</div>
<p>
    <a href="javascript:void(0);" onclick="history.go(-1);" class="btn btn-default">Vissza</a>   
    @if ((Model.User == User.Identity.Name) || User.IsInRole("Admin"))
    {
        @Html.ActionLink("Módosítás", "Edit", new { id = Model.Id }, new { @class = "btn btn-warning" }) 
        <span></span>
        @Html.ActionLink("Törlés", "Delete", "Reservations", new { id = Model.Id }, new { @class = "btn btn-danger" })
    }
</p>
