prasadnarwadkar_ASPNETCorePostgreSQL/ASPNETIdentityPostgres/Areas/ADT/Views/Patients/CamundaSelfEval.cshtml
@model ASPNETIdentityPostgres.Areas.ADT.Models.CamundaSelfEvalTaskData

@{
    ViewData["Title"] = "Self Evaluation";

    var username = User.Identity.Name;

    var bpmRole = "";

    var mapping = ASPNETIdentityPostgres.Areas.ADT.Models.WebAppAndBPMUserMap.mappings.FirstOrDefault(m => m.UserNameOnWebApp.ToLower() == username.ToLower());

    if (mapping != null)
    {
        bpmRole = mapping.UserRoleOnjBPMEngineOrApp;
    }

    
}

<h3>Self Evaluation (Camunda Engine) for me (@Html.DisplayFor(model => model.processData.employee))</h3>

<div>
    @if (bpmRole == "employee")
    {

    <div class="row">
        <div class="col-md-4">
            <form asp-action="CamundaSelfEval">
                @Html.HiddenFor(model => model.taskInstanceID)
                @Html.HiddenFor(model => model.processData.employee)
                @Html.HiddenFor(model => model.TaskOwner)
                @Html.HiddenFor(model => model.processData.initiator)
                

                <div asp-validation-summary="All" class="text-danger"></div>

                
                <div class="form-group">
                    <label asp-for="processData.self" class="control-label">Performance (self notes)</label>
                    <input asp-for="processData.self" class="form-control" />
                    <span asp-validation-for="processData.self" class="text-danger"></span>
                </div>

                <div class="form-group">
                    <input type="submit" value="Submit" class="btn btn-primary" />
                </div>

                <div class="form-group">
                    <a asp-action="CamundaMyEmpEvals" class="btn btn-danger" title="I do not have Camunda Engine/Platform running on my machine.">Cancel</a>
                </div>
            </form>
        </div>
    </div>
    }
</div>

