@model  PantheonRA.BackOffice.Models.ChangePasswordModel
@{
    ViewBag.Title = Loc.ChangePasswordForUser;
    Layout = null;
}

<div>
    @using (@Html.BeginForm())
    {
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox">
                    <div class="ibox-title">
                        <h5>@Loc.ChangePasswordForUser</h5>
                        <button type="submit" class="btn btn-primary pull-right"><i class="fa fa-save" title="@Loc.Save"></i><span class="hidden-sm hidden-xs">&nbsp;&nbsp;@Loc.Save</span></button>
                        <a href="@Url.Action("Index", "Users")" data-method="initializeUsers" class="btn btn-primary btn-outline pull-right">@Loc.Cancel</a>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-sm-12 m-b">
                                <div>
                                    <span><b>@Loc.Code</b></span>
                                    <span>@Model.Details.Code</span>
                                </div>
                                <div>
                                    <span><b>@Loc.VAT</b></span>
                                    <span>@Model.Details.Oib</span>
                                </div>
                                <div>
                                    <span><b>@Loc.Name</b></span>
                                    <span>@Model.Details.DisplayName</span>
                                </div>
                                <div>
                                    <span><b>@Loc.UserName</b></span>
                                    <span>@Model.Details.Username</span>
                                </div>
                            </div>
                            <div class="col-md-4">
                                @Html.HiddenFor(model => model.Details.DisplayName)
                                @Html.HiddenFor(model => model.Id)
                                <div class="form-group">
                                    @Html.TextBoxFor(model => model.Password, new { @class = "form-control", @placeholder = Loc.Password, @type = "password" })
                                    @Html.ValidationMessageFor(model => model.Password)
                                </div>
                                <div class="form-group">
                                    @Html.TextBoxFor(model => model.PasswordAgain, new { @class = "form-control", @placeholder = Loc.PasswordAgain, @type = "password" })
                                    @Html.ValidationMessageFor(model => model.PasswordAgain)
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    }
</div>