Commit 13d7bb8b by Nilu

S12956720 # Client - Incoming Issues (raised by Client) #Save is forced, needs cancel option

parent 8725d63a
......@@ -11,11 +11,12 @@
Company company = companyUser.getCompany();
HiringTeam hiringTeam = (HiringTeam) process.getAttribute("HiringTeam");
String nextPage = WebUtils.getSamePageInRenderMode(request, "Page");
Debug.assertion(company != null , "Invalid company in admin portal my company");
Debug.assertion(hiringTeam != null , "Invalid hiring team in admin portal my company");
boolean readOnly = hiringTeam.getObjectWriteability() == FieldWriteability.NOT_IN_GUI;
%>
<script type="text/javascript">
......@@ -163,7 +164,7 @@
</span>
<%
if(hiringTeam.getObjectWriteability() != FieldWriteability.NOT_IN_GUI)
if(!readOnly)
{
%>
<span class="up-rep-btn">
......@@ -317,7 +318,11 @@
</div>
<div class="text-center form-group">
<oneit:button value="Save Updates" name="saveCompany" cssClass="btn btn-primary largeBtn"
<oneit:button value="Cancel" name="gotoPage" cssClass="btn btn-primary largeBtn greyBtn"
requestAttribs='<%= CollectionUtils.mapEntry ("nextPage", nextPage)
.mapEntry("cancelProcess", true)
.toMap() %>'/>
<oneit:button value="Save Updates" name="saveCompany" cssClass="btn btn-primary largeBtn" disabled="<%= readOnly ? "true" : "false" %>"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage)
.mapEntry("procParams", CollectionUtils.mapEntry("HiringTeam", hiringTeam).toMap())
.mapEntry("Company", company)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment