@*
// Personify - CRM360 - Summary
//---------------------------------
//
//    Project Novus - Code auto-generated from a template
//   
//    Manual changes to this file may cause unexpected behavior in your application.
//    Manual changes to this file will be overwritten if the code is regenerated.
*@

@model Personify.Web.Models.Generated.CRM360.ConstituentSummaryViewModel
@using Personify.Web.Common
@using Personify.Web.Common.ResourceLocalization
@using Personify.Owin.Security.MixedAuth

@(Utils.Require(Html.Raw(Json.Encode(Model)), "CRM360/Summary"))

@(Utils.WindowTitleText("Summary"))
@{
    #pragma warning disable 
    var resourcePath = "CRM360/Summary";
    #pragma warning restore 
}

<div id='@Model.GetCtrlUnqId("Container")'  class="container-fluid view  partial Summary">
    <div id='@Model.GetCtrlUnqId("ConstituentSummaryRow")' class="row cust-const-panel">
        <div id='@Model.GetCtrlUnqId("ConstituentSummaryCell")' class="profile-photo col-xs-12 col-sm-2">
            @Html.Personify().Image().HtmlAttributes(new { id = Model.GetCtrlUnqId("ProfileImage"), }).Src(Model.ImageUrl)
        </div>
        <div id='@Model.GetCtrlUnqId("NameColumn")' class="col-xs-12 col-sm-3">
            @(Html.Personify().LabelFor(m => m.ConstituentName).HtmlAttributes(new { id = Model.GetCtrlUnqId("GenID_MvcLabel0"), })
                .TagName("h4")
            )
            @(Html.Personify().LabelFor(m => m.TitleName).HtmlAttributes(new { id = Model.GetCtrlUnqId("GenID_MvcLabel1"), })
                .TagName("h4")
            )
            @(Html.Personify().LabelFor(m => m.MasterCustomerId).CustomCSS("cust-const-id").HtmlAttributes(new { id = Model.GetCtrlUnqId("GenID_MvcLabel2"), })
                .PreText("ID: ")
                .TagName("div")
            )
            @(Html.Personify().LabelFor(m => m.ConstituentClass).HtmlAttributes(new { id = Model.GetCtrlUnqId("GenID_MvcLabel3"), })
                .PreText("Constituent Class: ")
                .TagName("div")
            )
            @(Html.Personify().LabelFor(m => m.PrimaryJobTitle).HtmlAttributes(new { id = Model.GetCtrlUnqId("GenID_MvcLabel4"), })
                .TagName("div")
            )
        </div>
        <div id='@Model.GetCtrlUnqId("RightSideColumn")' class="col-xs-12 col-sm-7">
            <div class="row cust-weblogin-row">
                <div class="col-xs-12 col-md-12">
                    @(Html.Personify().LabelFor(m => m.WebLogin).HtmlAttributes(new { id = Model.GetCtrlUnqId("GenID_MvcLabel5"), })
                        .PreText("Web Login: ")
                    )
                </div>
            </div>
            <div id='@Model.GetCtrlUnqId("ContactInfoRow")' class="row">
                <div id='@Model.GetCtrlUnqId("PhysicalAddressColumn")' class="col-xs-12 col-sm-5">
                    @(Html.Personify().LabelFor(m => m.FormattedAddress).CustomCSS("remove-monospace").HtmlAttributes(new { id = Model.GetCtrlUnqId("GenID_MvcLabel6"), })
                        .PreIcon("Model.IsBadAddress  ? "clear" : "check"").TagName("pre")
                    )
                    @(Html.Personify().HyperLink().HtmlAttributes(new { id = Model.GetCtrlUnqId("GenID_MvcHyperLink0"), @class = "link-all", })
                        .Text("All Addresses")
                        .Href("#")
                    )
                </div>
                <div id='@Model.GetCtrlUnqId("ContactAddressColumn")' class="col-xs-12 col-sm-7">
                    @(Html.Personify().LabelFor(m => m.PrimaryPhone).HtmlAttributes(new { id = Model.GetCtrlUnqId("GenID_MvcLabel7"), })
                        .PreIcon("phone").TagName("div")
                    )
                    @(Html.Personify().LabelFor(m => m.PrimaryEmailAddress).HtmlAttributes(new { id = Model.GetCtrlUnqId("GenID_MvcLabel8"), })
                        .PreIcon("email").TagName("div")
                    )
                    @(Html.Personify().HyperLink().HtmlAttributes(new { id = Model.GetCtrlUnqId("GenID_MvcHyperLink1"), })
                        .Text(Model.PrimaryUrl)
                        .Href(Model.PrimaryUrl)
                        .PreIcon("language")
                    )
                    @(Html.Personify().HyperLink().HtmlAttributes(new { id = Model.GetCtrlUnqId("GenID_MvcHyperLink2"), @class = "link-all", })
                        .Text("All Contact Info")
                        .Href("#")
                    )
                </div>
            </div>
        </div>
    </div>
    <hr />
    <div id='@Model.GetCtrlUnqId("OverviewAndInvolvementRow")' class="row">
        <div class="update-note col-xs-12 col-md-12">
            @(Html.Personify().LabelFor(m => m.OverviewUpdateDate).HtmlAttributes(new { id = Model.GetCtrlUnqId("GenID_MvcLabel9"), })
                .PreText("Last updated by admin on ")
            )
            @(Html.Personify().HyperLink().HtmlAttributes(new { id = Model.GetCtrlUnqId("RefreshSummaryLink"), })
                .Href("#")
                .Icon("refresh"))
        </div>
        <div class="panel col-xs-12 col-sm-5">
            <div id='@Model.GetCtrlUnqId("panel_title")' class="title">Overview</div>
            <div id='@Model.GetCtrlUnqId("panel_body")' class="body">
                <div id='@Model.GetCtrlUnqId("SummaryOverview")' class="cell"/>
            </div>
        </div>
        <div class="panel col-xs-12 col-sm-7">
            <div id='@Model.GetCtrlUnqId("panel_title")' class="title">Involvement</div>
            <div id='@Model.GetCtrlUnqId("panel_body")' class="body">
                <div id='@Model.GetCtrlUnqId("SummaryInvolvement")' class="cell"/>
            </div>
        </div>
    </div>
    <hr />
    <div id='@Model.GetCtrlUnqId("LatestInteractionsRow")' class="row">
        <div class="panel col-xs-12 col-md-12">
            <div id='@Model.GetCtrlUnqId("panel_title")' class="title">Latest Interactions</div>
            <div id='@Model.GetCtrlUnqId("panel_body")' class="body">
                <div id='@Model.GetCtrlUnqId("ContactTrackingActivity")' class="cell"/>
            </div>
        </div>
    </div>
    @Html.Personify().Hidden().Name("ViewModelGuid").Value(Model.ViewModelGuid).HtmlAttributes( new {id = Model.GetCtrlUnqId("hdnViewModelGuid")} )
    @Html.Personify().Hidden().Name("CallerViewModelGuid").Value(Model.CallerViewModelGuid).HtmlAttributes( new {id = Model.GetCtrlUnqId("hdnCallerViewModelGuid")} )
</div>
