summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/views/rule/_ruleDetails.gsp
diff options
context:
space:
mode:
authorBartosz Bosak <bbosak@man.poznan.pl>2013-11-18 13:26:33 (GMT)
committer Bartosz Bosak <bbosak@man.poznan.pl>2013-11-18 13:26:33 (GMT)
commita6dabdba1fd650b849ee6ead4ffc000662ed7a14 (patch)
treeb2482c909cf9e508c9ebe296cfdd5b6032731c14 /idrop-web/grails-app/views/rule/_ruleDetails.gsp
parent47428502f9feaf1b3a898f50061e7e9bc92c8c1f (diff)
parent9300b5f96fdc3989d232051a68e765d376200cf3 (diff)
downloadQCG-Data-idrop-black.zip
QCG-Data-idrop-black.tar.gz
QCG-Data-idrop-black.tar.bz2
Merge of Mike changesidrop-black
Diffstat (limited to 'idrop-web/grails-app/views/rule/_ruleDetails.gsp')
-rw-r--r--idrop-web/grails-app/views/rule/_ruleDetails.gsp95
1 files changed, 95 insertions, 0 deletions
diff --git a/idrop-web/grails-app/views/rule/_ruleDetails.gsp b/idrop-web/grails-app/views/rule/_ruleDetails.gsp
new file mode 100644
index 0000000..96c526d
--- /dev/null
+++ b/idrop-web/grails-app/views/rule/_ruleDetails.gsp
@@ -0,0 +1,95 @@
+
+<g:if test="${flash.error}">
+ <script>
+ $(function() { setErrorMessage("${flash.error}"); });
+ </script>
+ </g:if>
+
+ <g:if test="${flash.message}">
+ <script>
+ $(function() { setMessage("${flash.message}");});
+ </script>
+ </g:if>
+
+
+<div id="addParamDialogDiv">
+<!-- area for hanging dialogs -->
+</div>
+
+<g:form name="ruleDetailsForm" id="ruleDetailsForm">
+ <fieldset>
+ <label></label>
+ <g:textArea id="ruleBody" name="ruleBody" value="${rule.ruleBody}" rows="80" cols="100"/>
+
+ <g:hiddenField name="ruleAbsPath" value="${absPath}" id="ruleAbsPath"/>
+
+ <table class="table alert alert-info">
+ <caption><g:message code="text.input.parameters"/></caption>
+
+ <g:each in="${rule.inputParameters}">
+
+ <tr>
+ <g:hiddenField name="inputParamName" value="${it.uniqueName}" id="inputParamName"/>
+ <td>${it.uniqueName}</td>
+ <td><g:textField name="inputParamValue" id="inputParamValue" value="${it.getStringValue()}" size="80"/></td>
+ <td><i class='icon-remove' onclick='deleteInputParam(${"\"" + it.uniqueName + "\""})'></i></td>
+ </tr>
+
+ </g:each>
+ </table>
+ <div id="inputParamsToolbar" >
+ <button type="button" id="addInputParameterButton"
+ value="addInputParameter"
+ onclick="callAddInputParameter()">
+ <i class="icon-plus"></i><g:message code="text.add.input.parm" />
+ </button>
+ </div>
+
+
+ <br/>
+ <table class="table alert alert-info">
+ <caption><g:message code="text.output.parameters"/></caption>
+
+ <g:each in="${rule.outputParameters}">
+ <tr>
+ <g:hiddenField name="outputParamName" value="${it.uniqueName}" id="outputParamName"/>
+ <td>${it.uniqueName}</td>
+ <td><i class='icon-remove' onclick='deleteOutputParam(${"\"" + it.uniqueName + "\""})'></i></td>
+ </tr>
+
+ </g:each>
+
+ </table>
+ <div id="outputParamsToolbar" >
+ <button type="button" id="addOutputParameterButton"
+ value="addOutputParameter"
+ onclick="callAddOutputParameter()">
+ <i class="icon-plus"></i><g:message code="text.add.output.parm" />
+ </button>
+ </div>
+
+ </fieldset>
+</g:form>
+<script type="text/javascript">
+
+var editor = null;
+$(function() {
+ /* var myCodeMirror = CodeMirror.fromTextArea(document.getElementById('ruleBody'),{
+ mode: 'clike',
+ lineNumbers: true,
+ theme: "blackboard"
+ }); */
+
+ var uiOptions = { path : 'js/', searchMode: 'popup' }
+ var codeMirrorOptions = {
+ mode: 'text/x-rule',
+ lineNumbers: true,
+ theme: "eclipse"
+ }
+
+ //then create the editor
+ editor = new CodeMirrorUI(document.getElementById('ruleBody'),uiOptions,codeMirrorOptions);
+
+});
+</script>
+ \ No newline at end of file