@using System.Collections.Generic
@using MrCMS.Helpers
@model MrCMS.Web.Areas.Admin.Models.AddUserModel
@{
    Layout = "~/Areas/Admin/Views/Shared/_LayoutPopup.cshtml";
    var cultureOptions = ViewData["culture-options"] as List<SelectListItem> ?? new List<SelectListItem>();
}
@using (Html.BeginForm("Add", "User", FormMethod.Post))
{
    <fieldset>
        <legend>
           @Resource("Admin User Add User", "Add user")
            <span class="btn-group  display-inline  pull-right">
                <input type="submit" class="btn-primary btn" value="@Resource("Save")" />
            </span>
        </legend>
        @Html.ValidationSummary()

        <div class="form-group">
            @Html.LabelFor(x => x.Email)
            @Html.TextBoxFor(x => x.Email, new { @class = "form-control" })
            @Html.ValidationMessageFor(x => x.Email)
        </div>
        <div class="form-group">
            @Html.LabelFor(x => x.FirstName)
            @Html.TextBoxFor(x => x.FirstName, new { @class = "form-control" })
            @Html.ValidationMessageFor(x => x.FirstName)
        </div>
        <div class="form-group">
            @Html.LabelFor(x => x.LastName)
            @Html.TextBoxFor(x => x.LastName, new { @class = "form-control" })
            @Html.ValidationMessageFor(x => x.LastName)
        </div>
        <div class="form-group">
            @Html.LabelFor(x => x.Password)
            @Html.PasswordFor(x => x.Password, new { @class = "form-control" })
            @Html.ValidationMessageFor(x => x.Password)
        </div>
        <div class="form-group">
            @Html.LabelFor(x => x.ConfirmPassword)
            @Html.PasswordFor(x => x.ConfirmPassword, new { @class = "form-control" })
            @Html.ValidationMessageFor(x => x.ConfirmPassword)
        </div>
        <div class="form-group">
            @Html.LabelFor(x => x.UICulture)
            @Html.DropDownListFor(x => x.UICulture, cultureOptions, new { @class = "form-control" })
            @Html.ValidationMessageFor(x => x.UICulture)
        </div>
        <div class="form-group">
            @Html.InlineCheckboxFor(x => x.IsActive, null, null, "User is active")
            @Html.ValidationMessageFor(x => x.IsActive)
        </div>

    </fieldset>
}