diff --git a/tempjpwNow/IndivLendHome.html b/tempjpwNow/IndivLendHome.html
index 4ab7ab8a3..f0e652244 100644
--- a/tempjpwNow/IndivLendHome.html
+++ b/tempjpwNow/IndivLendHome.html
@@ -36,8 +36,7 @@
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -892,8 +1423,8 @@
diff --git a/tempjpwNow/resources/jsrenderExtra.js b/tempjpwNow/resources/jsrenderExtra.js
index 4b0a74443..af928c0a2 100644
--- a/tempjpwNow/resources/jsrenderExtra.js
+++ b/tempjpwNow/resources/jsrenderExtra.js
@@ -103,6 +103,28 @@ function setAddLoanContent(divName) {
$("#" + divName).html(htmlVar);
}
+function setOrgAdminContent(divName) {
+
+ var htmlVar = ''
+
+ var htmlVar = '';
+ htmlVar += '
';
+ htmlVar += '';
+ $("#" + divName).html(htmlVar);
+}
+
function setReportingContent(divName) {
@@ -1088,6 +1110,77 @@ function loadILLoan(baseApiUrl, loanId) {
+/* user admin code */
+
+function showILOrgAdmin() {
+ setOrgAdminContent("content");
+}
+
+
+ function refreshLoanProductsView() {
+
+ var url = baseApiUrl + 'loanproducts';
+
+ var successFunction = function(data, textStatus, jqXHR) {
+
+ var productlistParent = new Object();
+ productlistParent.products = data;
+
+ var productListHtml = $("#productListTemplate").render(productlistParent);
+ $("#listplaceholder").html(productListHtml);
+
+ $("a.editproduct").click( function(e) {
+ var linkId = this.id;
+ var productId = linkId.replace("editproduct", "");
+ var getUrl = baseApiUrl + 'loanproducts/' + productId + '?template=true';
+ var putUrl = baseApiUrl + 'loanproducts/' + productId;
+
+ var templateSelector = "#productFormTemplate";
+ var width = 800;
+ var height = 550;
+
+ var saveSuccessFunction = function(data, textStatus, jqXHR) {
+ $("#dialog-form").dialog("close");
+ refreshLoanProductsView();
+ }
+ popupDialogWithFormView(getUrl, putUrl, 'PUT', "dialog.title.product.details", templateSelector, width, height, saveSuccessFunction);
+ e.preventDefault();
+ });
+
+ $("a.deactivateproduct").click( function(e) {
+ //var linkId = this.id;
+ //var productId = linkId.replace("deactivateproduct", "");
+ showNotAvailableDialog('dialog.title.functionality.not.available');
+ e.preventDefault();
+ });
+
+ $("a.deleteproduct").click( function(e) {
+ //var linkId = this.id;
+ //var productId = linkId.replace("deleteproduct", "");
+ showNotAvailableDialog('dialog.title.functionality.not.available');
+ e.preventDefault();
+ });
+
+ var oTable = $("#productstable").dataTable( {
+ "bSort": true,
+ "bInfo": true,
+ "bJQueryUI": true,
+ "bRetrieve": false,
+ "bScrollCollapse": false,
+ "bPaginate": false,
+ "bLengthChange": false,
+ "bFilter": false,
+ "bAutoWidth": false,
+ });
+ };
+
+ executeAjaxRequest(url, 'GET', "", base64, successFunction, formErrorFunction);
+ }
+
+
+
+
+