summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/views/rule
diff options
context:
space:
mode:
authormconway <michael_conway@unc.edu>2013-10-23 20:53:22 (GMT)
committer mconway <michael_conway@unc.edu>2013-10-23 20:53:22 (GMT)
commitbcf2e70710d03692b9c5f77e71d3fbf7a1c5493b (patch)
treeebeb7ef13a0993b8736966827b587ee565316960 /idrop-web/grails-app/views/rule
parentfa2e0df3a94d0df7d7ddaacefe0d97e832b30bfd (diff)
downloadQCG-Data-bcf2e70710d03692b9c5f77e71d3fbf7a1c5493b.zip
QCG-Data-bcf2e70710d03692b9c5f77e71d3fbf7a1c5493b.tar.gz
QCG-Data-bcf2e70710d03692b9c5f77e71d3fbf7a1c5493b.tar.bz2
[#1458] rule editor
Diffstat (limited to 'idrop-web/grails-app/views/rule')
-rw-r--r--idrop-web/grails-app/views/rule/_ruleDetails.gsp8
-rwxr-xr-xidrop-web/grails-app/views/rule/index.gsp8
2 files changed, 14 insertions, 2 deletions
diff --git a/idrop-web/grails-app/views/rule/_ruleDetails.gsp b/idrop-web/grails-app/views/rule/_ruleDetails.gsp
index cc1cc18..a63f2d2 100644
--- a/idrop-web/grails-app/views/rule/_ruleDetails.gsp
+++ b/idrop-web/grails-app/views/rule/_ruleDetails.gsp
@@ -51,4 +51,12 @@
</fieldset>
</g:form>
+<script type="text/javascript">
+$(function() {
+ var myCodeMirror = CodeMirror.fromTextArea(document.getElementById('ruleBody'),{
+ mode: 'clike',
+ lineNumbers: true
+ });
+});
+</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 2853b01..415491b 100755
--- a/idrop-web/grails-app/views/rule/index.gsp
+++ b/idrop-web/grails-app/views/rule/index.gsp
@@ -1,4 +1,8 @@
-<g:javascript library="mydrop/rule" />
+<head>
+<g:javascript library="codemirror" />
+<g:javascript library="clike" />
+<link rel="stylesheet" href="${resource(dir:'css',file:'codemirror.css')}" />
+</head>
<h3><a ><g:message code="text.rule" /></a></h3>
<div id="detailsTopSection">
@@ -39,7 +43,7 @@
</div>
<script type="text/javascript">
-
+
function deleteInputParam(param) {
alert("input param:" + param);