summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/views/rule
diff options
context:
space:
mode:
authormconway <michael_conway@unc.edu>2013-10-31 20:32:30 (GMT)
committer mconway <michael_conway@unc.edu>2013-10-31 20:32:30 (GMT)
commitaea45b0d3747163e5466630a6a5d8e989b85dfdc (patch)
treecfc52ad18f90bba948bb9c7d7467b59e84a93c1d /idrop-web/grails-app/views/rule
parentc7ee3e425ae7b77524265d57e1e49db044724ae4 (diff)
downloadQCG-Data-aea45b0d3747163e5466630a6a5d8e989b85dfdc.zip
QCG-Data-aea45b0d3747163e5466630a6a5d8e989b85dfdc.tar.gz
QCG-Data-aea45b0d3747163e5466630a6a5d8e989b85dfdc.tar.bz2
[#1776] add rule queue processing views
Diffstat (limited to 'idrop-web/grails-app/views/rule')
-rw-r--r--idrop-web/grails-app/views/rule/_ruleDelayExecQueueDetails.gsp61
-rw-r--r--idrop-web/grails-app/views/rule/delayExecQueue.gsp39
-rw-r--r--[-rwxr-xr-x]idrop-web/grails-app/views/rule/index.gsp0
3 files changed, 100 insertions, 0 deletions
diff --git a/idrop-web/grails-app/views/rule/_ruleDelayExecQueueDetails.gsp b/idrop-web/grails-app/views/rule/_ruleDelayExecQueueDetails.gsp
new file mode 100644
index 0000000..9e9afa9
--- /dev/null
+++ b/idrop-web/grails-app/views/rule/_ruleDelayExecQueueDetails.gsp
@@ -0,0 +1,61 @@
+ <form id="delayExecForm" name="delayExecForm">
+
+<table id="delayExecQueueTable" class="table table-striped table-hover"
+ cellspacing="0" cellpadding="0" border="0">
+ <thead>
+ <tr>
+ <th>
+ <div class="btn-group">
+ <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Action<span
+ class="caret"></span></a>
+ <ul class="dropdown-menu">
+ <li id="menuDeleteDetails"><a href="#deleteAllDetails"
+ onclick="deleteRulesBulkAction()"><g:message code="text.delete.all" /></a></li>
+ <!-- dropdown menu links -->
+ </ul>
+ </div>
+
+ </th>
+ <th><g:message code="text.name" /></th>
+ <th><g:message code="text.user" /></th>
+ <th><g:message code="text.last.exec.time" /></th>
+ <th><g:message code="text.frequency" /></th>
+
+ </tr>
+ </thead>
+ <tbody>
+ <g:each in="${rules}" var="rule">
+
+ <tr id="rule-${rule.id}">
+
+ <td><g:checkBox name="selectDetail"
+ value="select-${rule.id}" checked="false" />
+ </td>
+ <td>
+ ${rule.name}
+ </td>
+ <td>
+ ${rule.userName}
+ </td>
+ <td>
+ ${rule.lastExecTime}
+ </td>
+ <td>
+ ${rule.frequency}
+ </td>
+ </tr>
+ </g:each>
+
+ </tbody>
+
+ <tfoot>
+ <tr>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+ </tfoot>
+ </table>
+ </form> \ No newline at end of file
diff --git a/idrop-web/grails-app/views/rule/delayExecQueue.gsp b/idrop-web/grails-app/views/rule/delayExecQueue.gsp
new file mode 100644
index 0000000..8ad4dec
--- /dev/null
+++ b/idrop-web/grails-app/views/rule/delayExecQueue.gsp
@@ -0,0 +1,39 @@
+<head>
+<meta name="layout" content="mainNoSidebar" />
+</head>
+<div id="delayExecQueueDiv">
+ <g:render template="ruleDelayExecQueueDetails" />
+</div>
+<script>
+$(document).ready(function() {
+
+ $.ajaxSetup({
+ cache : false
+ });
+ $("#topbarTools").addClass("active");
+ });
+
+
+function deleteRulesBulkAction() {
+
+ var formData = $("#delayExecForm").serializeArray();
+ showBlockingPanel();
+
+ var jqxhr = $.post(context + "/rule/deleteDelayExecQueue", formData, "html")
+ .success(function(returnedData, status, xhr) {
+ var continueReq = checkForSessionTimeout(returnedData, xhr);
+ if (!continueReq) {
+ return false;
+ }
+
+ setMessage("Delete action successful");
+ $("#delayExecQueueDiv").html(returnedData);
+ unblockPanel();
+ }).error(function(xhr, status, error) {
+ setErrorMessage(xhr.responseText);
+ unblockPanel();
+ });
+
+}
+
+</script> \ No newline at end of file
diff --git a/idrop-web/grails-app/views/rule/index.gsp b/idrop-web/grails-app/views/rule/index.gsp
index 8ee551f..8ee551f 100755..100644
--- a/idrop-web/grails-app/views/rule/index.gsp
+++ b/idrop-web/grails-app/views/rule/index.gsp