@using Resources @model Weee.Models.CertificationCompany @{ ViewBag.Title = Resource.StaticLabelCompanyList; Layout = "~/Areas/admin/Views/Shared/_AdminLayout.cshtml"; var companyAdmin = Model.Users.FirstOrDefault(); var adminAccountName = companyAdmin == null ? "" : companyAdmin.UserName; var accountCount = Model.Users.Count; }
@using (Html.BeginForm()) { @Html.AntiForgeryToken()

@Resource.CertificationUnit


@Html.ValidationSummary(true) @Html.HiddenFor(model => model.ID) @Html.HiddenFor(model => model.UID) @Html.HiddenFor(model => model.Status)
@Html.LabelFor(model => model.Name, new { @class = "control-label docs-control-label col-xs-3" })
@Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.EnglishName, new { @class = "control-label docs-control-label col-xs-3" })
@Html.EditorFor(model => model.EnglishName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.EnglishName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Address, new { @class = "control-label docs-control-label col-xs-3" })
@Html.EditorFor(model => model.Address, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Address, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.CEOName, new { @class = "control-label docs-control-label col-xs-3" })
@Html.EditorFor(model => model.CEOName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.CEOName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.VATNumber, new { @class = "control-label docs-control-label col-xs-3" })
@Html.EditorFor(model => model.VATNumber, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.VATNumber, "", new { @class = "text-danger" })
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "Index", new { }, new { @class = "btn btn-default" }) @if (Model.Status == Weee.Models.CompanyStatus.New || Model.Status == Weee.Models.CompanyStatus.Inactive) { @Html.ActionLink(Resource.Active, "Active", new { id = Model.ID }, new { @class = "btn btn-default" }) } else { @Html.ActionLink(Resource.DeActive, "Deactive", new { id = Model.ID }, new { @class = "btn btn-default" }) }
}