@model Alpha.Coordinador.Interfaces.Models.User

@{
    ViewBag.Title = "Details";
}

<h2>Detalles</h2>

<div>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.Username)
        </dt>

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

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

        @*<dd>
            @Html.DisplayFor(model => model.Password)
        </dd>*@
        @{
            if (Model.Services != null && Model.Services.Any())
            {
                <dt>
                    Services:
                </dt>
                foreach (var s in Model.Services)
                {
                    <dd>
                        @s.ServiceName
                    </dd>
                }
            }

        }

        @{
            if (Model.VirtualMachines != null && Model.VirtualMachines.Any())
            {
                <dt>
                    Machines:
                </dt>
                foreach (var m in Model.VirtualMachines)
                {
                    <dd>
                        @m.Nombre
                    </dd>
                }
            }
        }
    </dl>
</div>
<p>
    @Html.ActionLink("Editar", "Edit", new { id = Model.Id }) |
    @Html.ActionLink("Volver", "Index")
</p>
