summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/views/rule
diff options
context:
space:
mode:
authormconway <michael_conway@unc.edu>2013-10-21 16:44:14 (GMT)
committer mconway <michael_conway@unc.edu>2013-10-21 16:44:14 (GMT)
commitf891433d0a168c8f8936360d43bfd3165ab16db0 (patch)
tree3bc47eea7d448a0a95cbb19fd593300f835c7110 /idrop-web/grails-app/views/rule
parent2e6c75bfab6ca8fa0a59fe6e0e757427e65847c2 (diff)
downloadQCG-Data-f891433d0a168c8f8936360d43bfd3165ab16db0.zip
QCG-Data-f891433d0a168c8f8936360d43bfd3165ab16db0.tar.gz
QCG-Data-f891433d0a168c8f8936360d43bfd3165ab16db0.tar.bz2
[#1458] rule edit panel
Diffstat (limited to 'idrop-web/grails-app/views/rule')
-rwxr-xr-xidrop-web/grails-app/views/rule/index.gsp31
1 files changed, 17 insertions, 14 deletions
diff --git a/idrop-web/grails-app/views/rule/index.gsp b/idrop-web/grails-app/views/rule/index.gsp
index 806310b..d29a0c7 100755
--- a/idrop-web/grails-app/views/rule/index.gsp
+++ b/idrop-web/grails-app/views/rule/index.gsp
@@ -5,13 +5,13 @@
<div id="detailsToolbar" >
<button type="button" id="reloadRuleButton"
value="reloadRule"
- onclick="callReloadForRule()")>
+ onclick="callReloadForRule()">
<g:message code="default.button.reload.label" />
</button>
<span id="saveRuleButton"><button type="button" id="saveRuleButton"
value="saveRule"
- onclick="callSaveRule()")>
- <g:message code="text.save" />
+ onclick="callSaveRule()">
+ <g:message code="text.update" />
</button></span>
</div>
</div>
@@ -22,24 +22,19 @@
<g:form name="ruleDetailsForm" id="ruleDetailsForm">
<fieldset>
<label><g:message code="text.rule.body" /></label>
- <g:textArea name="ruleBody" value=" ${rule.ruleBody}" rows="40" cols="200"/>
+ <g:textArea name="ruleBody" value="${rule.ruleBody}" rows="40" cols="100"/>
<table class="table">
- <g:each in="rule.inputPaameters">
+ <g:each in="${rule.inputParameters}">
- <td>
<tr>
- <g:hidden name="paramName" value="it.uniqueName" id="paramName"/>
+ <g:hiddenField name="paramName" value="${it.uniqueName}" id="paramName"/>
<td>${it.uniqueName}</td>
-
-
-
+ <td><g:textField name="parmValue" id="parmValue" value="${it.getValueAsStringWithQuotesStripped()}" size="80"/></td>
+ <td><i class='icon-remove' onclick='deleteParam(${it.stringValue})'></i></td>
</tr>
- </td>
-
-
</g:each>
@@ -49,4 +44,12 @@
</g:form>
</div>
-</div>
+ <script type="text/javascript">
+
+
+ function deleteParam(param) {
+ alert("param:" + param);
+ }
+
+
+ </script>