diff --git a/tempjpwNow/IndivLendHome.html b/tempjpwNow/IndivLendHome.html
index d9baa4680..1b8f83ce3 100644
--- a/tempjpwNow/IndivLendHome.html
+++ b/tempjpwNow/IndivLendHome.html
@@ -1012,10 +1012,10 @@
- | Product Name |
- Created |
- Last Modified |
- Active |
+ {{=$ctx.doI18N("table.heading.product.name")}} |
+ {{=$ctx.doI18N("table.heading.product.created")}} |
+ {{=$ctx.doI18N("table.heading.product.modified")}} |
+ {{=$ctx.doI18N("table.heading.product.active")}} |
|
diff --git a/tempjpwNow/resources/jsrenderExtra.js b/tempjpwNow/resources/jsrenderExtra.js
index aabefb714..bf5e262f0 100644
--- a/tempjpwNow/resources/jsrenderExtra.js
+++ b/tempjpwNow/resources/jsrenderExtra.js
@@ -115,7 +115,7 @@ function setOrgAdminContent(divName) {
htmlVar += ' | ';
htmlVar += ' ' + doI18N("administration.link.add.product") + '';
htmlVar += ' | ';
- htmlVar += ' ' + doI18N("administration.link.view.offices") + '';
+ htmlVar += ' ' + doI18N("administration.link.view.offices") + '';
htmlVar += ' | ';
htmlVar += ' ' + doI18N("administration.link.add.office") + '';
htmlVar += ' | ';
@@ -1190,6 +1190,61 @@ function loadILLoan(baseApiUrl, loanId) {
}
+ function refreshOfficesView() {
+
+ var url = baseApiUrl + 'offices';
+ var successFunction = function(data, textStatus, jqXHR) {
+
+ var officelistParent = new Object();
+ officelistParent.offices = data;
+
+ var officeListHtml = $("#officeListTemplate").render(officelistParent);
+ $("#listplaceholder").html(officeListHtml);
+
+ $("a.edit").click( function(e) {
+ var linkId = this.id;
+ var entityId = linkId.replace("edit", "");
+ var getUrl = baseApiUrl + 'offices/' + entityId + '?template=true';
+ var putUrl = baseApiUrl + 'offices/' + entityId;
+
+ var templateSelector = "#officeFormTemplate";
+ var width = 600;
+ var height = 400;
+
+ var saveSuccessFunction = function(data, textStatus, jqXHR) {
+ $("#dialog-form").dialog("close");
+ refreshOfficesView();
+ }
+
+ popupDialogWithFormView(getUrl, putUrl, 'PUT', "dialog.title.office.details", templateSelector, width, height, saveSuccessFunction);
+ e.preventDefault();
+ });
+
+ $("a.delete").click( function(e) {
+ //var linkId = this.id;
+ //var entityId = linkId.replace("delete", "");
+ showNotAvailableDialog('dialog.title.functionality.not.available');
+ e.preventDefault();
+ });
+
+ var oTable = $("#officestable").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);
+
+ }
+