<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Views/Shared/SleisLayout.Master" %> <%-- User Profile --%> <% SelectedFacilityView selectedFac = ViewUtility.GetSelectedFacility(); %>
<%if (selectedFac != null && selectedFac.Id > 0) { %> <%:Html.ActionLink("Back", "FacilityUser", "Facility", new { Id = selectedFac.Facility.Id }, new { @class = "backButtonNoText argsHolder align-right" })%> <% } else { %> <%:Html.ActionLink("Back", "List", "User", null, new { @class = "backButtonNoText argsHolder align-right" })%> <%} %>

User Profile

<% using (Html.BeginForm()) { %>

<%:Html.Label("Username (Email Address):") %> <%:Model.Email %>

<%: Html.Label("User Type:") %> <%: Model.Type%> <%: Html.HiddenFor(x => x.Type)%>

<%: Html.Label("Status:")%> <%: Model.Status%> <%: Html.HiddenFor(x => x.Status)%>

<%:Html.Label("Name:") %> <%:Model.FullName %>

<%:Html.Label("Title:") %> <%:Model.Title %>

<%:Html.Label("Organization/Group:")%> <%:Model.Org %>

<% if (Model.ContactPoints != null && Model.ContactPoints.Count() > 0) { %> <%--

Contact Information

--%> <%foreach (UserContactModel c in Model.ContactPoints) {%>

<%: Html.Label(c.Type.ToString())%> <%: c.Value%>

<%} }%> <%if (selectedFac != null && selectedFac.Id > 0) { %>

<%:Html.Label("Roles:")%> <%: Model.AssignedRoles%>

<%} %> <% } %>
<% Html.RenderPartial("FacilitySide"); %>