summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/views
diff options
context:
space:
mode:
authormconway <michael_conway@unc.edu>2013-10-24 13:51:30 (GMT)
committer mconway <michael_conway@unc.edu>2013-10-24 13:51:30 (GMT)
commitfb7a7bbd0d617ab1e112d3c4e2bef935c90632a7 (patch)
tree1b1f5e9b3d621998c7b0f0f62eaefc565c0ff676 /idrop-web/grails-app/views
parentbcf2e70710d03692b9c5f77e71d3fbf7a1c5493b (diff)
downloadQCG-Data-fb7a7bbd0d617ab1e112d3c4e2bef935c90632a7.zip
QCG-Data-fb7a7bbd0d617ab1e112d3c4e2bef935c90632a7.tar.gz
QCG-Data-fb7a7bbd0d617ab1e112d3c4e2bef935c90632a7.tar.bz2
[#1458] rule editor
Diffstat (limited to 'idrop-web/grails-app/views')
-rw-r--r--idrop-web/grails-app/views/rule/_ruleDetails.gsp22
-rwxr-xr-xidrop-web/grails-app/views/rule/index.gsp9
2 files changed, 28 insertions, 3 deletions
diff --git a/idrop-web/grails-app/views/rule/_ruleDetails.gsp b/idrop-web/grails-app/views/rule/_ruleDetails.gsp
index a63f2d2..743c1c1 100644
--- a/idrop-web/grails-app/views/rule/_ruleDetails.gsp
+++ b/idrop-web/grails-app/views/rule/_ruleDetails.gsp
@@ -53,10 +53,26 @@
</g:form>
<script type="text/javascript">
$(function() {
- var myCodeMirror = CodeMirror.fromTextArea(document.getElementById('ruleBody'),{
+ /* var myCodeMirror = CodeMirror.fromTextArea(document.getElementById('ruleBody'),{
mode: 'clike',
- lineNumbers: true
- });
+ lineNumbers: true,
+ theme: "blackboard"
+ }); */
+
+ var uiOptions = { path : 'js/', searchMode: 'popup' }
+ var codeMirrorOptions = {
+ mode: 'clike',
+ lineNumbers: true,
+ theme: "blackboard"
+ }
+
+ //then create the editor
+ var editor = new CodeMirrorUI(document.getElementById('ruleBody'),uiOptions,codeMirrorOptions);
+
+
+
+
+
});
</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 415491b..1ad5a0a 100755
--- a/idrop-web/grails-app/views/rule/index.gsp
+++ b/idrop-web/grails-app/views/rule/index.gsp
@@ -1,7 +1,16 @@
<head>
+
<g:javascript library="codemirror" />
+<g:javascript library="addon/search/searchcursor" />
+<g:javascript library="codemirror-ui" />
+
+
<g:javascript library="clike" />
<link rel="stylesheet" href="${resource(dir:'css',file:'codemirror.css')}" />
+<link rel="stylesheet" href="${resource(dir:'css',file:'codemirror-ui.css')}" />
+
+<link rel="stylesheet" href="${resource(dir:'css',file:'blackboard.css')}" />
+
</head>
<h3><a ><g:message code="text.rule" /></a></h3>
<div id="detailsTopSection">