Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
e944c0de
Commit
e944c0de
authored
Oct 05, 2018
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code refactoring
parent
a00dd374
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
60 deletions
+8
-60
my_company.jsp
cmsWebApp/webroot/extensions/adminportal/my_company.jsp
+8
-60
No files found.
cmsWebApp/webroot/extensions/adminportal/my_company.jsp
View file @
e944c0de
...
@@ -49,36 +49,6 @@
...
@@ -49,36 +49,6 @@
$(".oneit-radio label").removeClass('checked');
$(".oneit-radio label").removeClass('checked');
$(ele).closest('label').addClass('checked');
$(ele).closest('label').addClass('checked');
}
}
function saveOwnBilling(ownBilling)
{
ajaxProcessAddJQ ("<%= request.getContextPath() %>/extensions/adminportal/inc/save_own_billing.jsp", 'form' ,
{hiringTeamID : <%= hiringTeam.getID().longValue() %>, ownBilling : ownBilling},
function () {},
function (jqXHR, textStatus, errorThrown) {
if (jqXHR.status === 0) {
log("Empty Response. Status : " + jqXHR.status + " TextStatus : " + textStatus);
} else {
window.alert("Error processing request:" + errorThrown);
}
},
"POST");
if(ownBilling === true)
{
$('#billing_label').removeClass("show");
$('#billing_label').addClass("hide");
$('#billing_team').removeClass("show");
$('#billing_team').addClass("hide");
}
else
{
$('#billing_label').removeClass("hide");
$('#billing_label').addClass("show");
$('#billing_team').removeClass("hide");
$('#billing_team').addClass("show");
}
}
</script>
</script>
<div class="container-fluid">
<div class="container-fluid">
...
@@ -149,42 +119,20 @@
...
@@ -149,42 +119,20 @@
<div class="col-md-6">
<div class="col-md-6">
<label><oneit:label GUIName="Will this team manage its own billing?" /></label>
<label><oneit:label GUIName="Will this team manage its own billing?" /></label>
</div>
</div>
<
div id="billing_label" class="<%= "col-md-6 " + (hiringTeam.getManageOwnBilling() ? "hide" : "show") %>"
>
<
oneit:recalcClass htmlTag="div" classScript="hiringTeam.getManageOwnBilling() ? 'show': 'hide'" hiringTeam="<%= hiringTeam %>"
>
<label><oneit:label GUIName="Which team will manage the billing?"/></label>
<label><oneit:label GUIName="Which team will manage the billing?"/></label>
</div>
</oneit:recalcClass>
</div>
<div class="form-group row">
<div class="col-md-6">
<div class="radio radio-primary second-radio-primary oneit-radio">
<label >
<oneit:ormInput obj="<%= hiringTeam %>" type="radio" attributeName="ManageOwnBilling" value="true"/>Yes
</label>
</div>
<div class="radio radio-primary second-radio-primary oneit-radio">
<label>
<oneit:ormInput obj="<%= hiringTeam %>" type="radio" attributeName="ManageOwnBilling" value="false"/>No
</label>
</div>
</div>
</div>
</div>
<div class="form-group row">
<div class="form-group row">
<%
String trueID = hiringTeam.getObjectID() + "_Y";
String falseID = hiringTeam.getObjectID() + "_N";
String trueSelected = CollectionUtils.equals(hiringTeam.getManageOwnBilling(), Boolean.TRUE) ? "checked" : "";
String falseSelected = CollectionUtils.equals(hiringTeam.getManageOwnBilling(), Boolean.FALSE) ? "checked" : "";
%>
<div class="col-md-6">
<div class="col-md-6">
<div class="radio radio-primary second-radio-primary">
<div class="radio radio-primary second-radio-primary oneit-radio">
<input type="radio" name="<%= hiringTeam.getObjectID() %>" value="true" id="<%= trueID %>" <%= trueSelected %> onchange="saveOwnBilling(true);"/>
<label >
<label for="<%= trueID %>">
<oneit:ormInput obj="<%= hiringTeam %>" type="radio" attributeName="ManageOwnBilling" value="true"/>Yes
Yes
</label>
</label>
</div>
</div>
<div class="radio radio-primary second-radio-primary">
<div class="radio radio-primary second-radio-primary oneit-radio">
<input type="radio" name="<%= hiringTeam.getObjectID() %>" value="false" id="<%= falseID %>" <%= falseSelected %> onchange="saveOwnBilling(false);"/>
<label>
<label for="<%= falseID %>">
<oneit:ormInput obj="<%= hiringTeam %>" type="radio" attributeName="ManageOwnBilling" value="false"/>No
No
</label>
</label>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment