@model EnVisage.Models.ClientModel @{ ViewBag.Title = Model != null ? "Edit " + Model.Name : "Add New Client"; } @section Scripts { }
@using (Html.BeginForm("Edit", "Clients", FormMethod.Post, new { @class = "panel form-horizontal" })) { @Html.AntiForgeryToken() @Html.HiddenFor(t => t.Id)
@Html.LabelFor(model => model.ClientNumber, new { @class = "col-sm-2 control-label" })
@Html.TextBoxFor(model => model.ClientNumber, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.ClientNumber)
@Html.LabelFor(model => model.Name, new { @class = "col-sm-2 control-label" })
@Html.TextBoxFor(model => model.Name, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.Name)
@Html.LabelFor(model => model.GLAccountId, "GL Account Name", new { @class = "control-label col-sm-2" })
@Html.DropDownListFor(model => model.GLAccountId, EnVisage.Code.Utils.GetGLAccounts(true), new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.GLAccountId)
@Html.LabelFor(model => model.Companies, new { @class = "col-sm-2 control-label" })
@Html.Partial("_companies", Model.Companies)
@Html.ValidationSummary(false, "The client could not be saved due to the following errors:")
Back to list @if (Model != null && Model.Id != Guid.Empty) { if (Model.ProjectsCount > 0) { Delete } else { Delete } }
}
Contacts
Add Contact

@foreach (var contact in Model.Contacts) { }
Name Email Address Phone Number
@(contact.FirstName + " "+ contact.LastName) @contact.Email @contact.Phone Edit @if (contact.ProjectLinksCount > 0) { Delete } else { Delete }