From 90c92c443fe4ea39ca0aa38eded7cd713088c7ef Mon Sep 17 00:00:00 2001 From: piumal1999 Date: Wed, 28 Jul 2021 21:54:27 +0530 Subject: [PATCH] DCM-55: Add user privileges to Automation UI and Run Reports UI --- omod/src/main/resources/config.xml | 2 +- omod/src/main/webapp/automation.jsp | 67 +++++++++++++------ omod/src/main/webapp/failedData.jsp | 2 + omod/src/main/webapp/runReports.jsp | 2 + omod/src/main/webapp/template/localHeader.jsp | 41 ++++++------ 5 files changed, 72 insertions(+), 42 deletions(-) diff --git a/omod/src/main/resources/config.xml b/omod/src/main/resources/config.xml index fa22ee7..6e0a9ab 100644 --- a/omod/src/main/resources/config.xml +++ b/omod/src/main/resources/config.xml @@ -121,7 +121,7 @@ Base privilege for running the reports - Run failed data + Run Failed Data Base privilege for pushing the failed data diff --git a/omod/src/main/webapp/automation.jsp b/omod/src/main/webapp/automation.jsp index 976a7fd..9da5a87 100644 --- a/omod/src/main/webapp/automation.jsp +++ b/omod/src/main/webapp/automation.jsp @@ -1,5 +1,7 @@ <%@ include file="/WEB-INF/template/include.jsp" %> <%@ include file="/WEB-INF/template/header.jsp" %> + <%@ include file="template/localHeader.jsp" %> @@ -12,45 +14,66 @@

- checked="checked"> -
+ checked="checked" + disabled> + + +


- - + + + + + + - + + + - - - - - - + + + + + + + + + + - - + + + + + + - + + +
- -
+ +
${fn:substringBefore(mpg.mapping, '.')} ${mpg.lastRun} ${mpg.lastRun}
- + + + diff --git a/omod/src/main/webapp/failedData.jsp b/omod/src/main/webapp/failedData.jsp index e335a88..e1a46da 100644 --- a/omod/src/main/webapp/failedData.jsp +++ b/omod/src/main/webapp/failedData.jsp @@ -1,5 +1,7 @@ <%@ include file="/WEB-INF/template/include.jsp" %> <%@ include file="/WEB-INF/template/header.jsp" %> + <%@ include file="template/localHeader.jsp" %> diff --git a/omod/src/main/webapp/runReports.jsp b/omod/src/main/webapp/runReports.jsp index ae64900..deeff75 100644 --- a/omod/src/main/webapp/runReports.jsp +++ b/omod/src/main/webapp/runReports.jsp @@ -1,5 +1,7 @@ <%@ include file="/WEB-INF/template/include.jsp" %> <%@ include file="/WEB-INF/template/header.jsp" %> + diff --git a/omod/src/main/webapp/template/localHeader.jsp b/omod/src/main/webapp/template/localHeader.jsp index 3345f9c..5fa1924 100644 --- a/omod/src/main/webapp/template/localHeader.jsp +++ b/omod/src/main/webapp/template/localHeader.jsp @@ -19,12 +19,13 @@ -
  • class="active"> - -
  • + +
  • class="active"> + + + +
  • +
  • class="active"> @@ -53,20 +54,22 @@ href="${pageContext.request.contextPath}/module/dhisconnector/manageMappings.form">
  • - -
  • class="active"> - -
  • -
  • class="active"> - -
  • + +
  • class="active"> + + + +
  • +
    + + +
  • class="active"> + + + +
  • +