Changeset 316 for trunk/grails-app/views/query/common
- Timestamp:
- Mar 26, 2010, 1:02:39 PM (13 years ago)
- Location:
- trunk/grails-app/views/query/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/query/common/_error.gsp
r315 r316 15 15 */ 16 16 %> 17 <g:if test="${errors}"> 18 <div id="wizardError" class="error" title="errors"> 19 <g:each in="${errors}" var="error" status="e"> 20 <p> 21 <g:if test="${!e}"><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 50px 0;"></span></g:if> 22 ${error.value['key']} → ${error.value['value']} 23 ${error.value['dynamic']} 24 </p> 25 </g:each> 26 </div> 27 <script type="text/javascript"> 28 // mark error fields 29 <g:each in="${errors}" var="error"> 30 <g:if test="${error.value['dynamic']}"> 31 $("input:[name='${error.key}'], select:[name='${error.key}']").addClass('error'); 32 </g:if><g:else> 33 $("input:[name='${error.key}'], select:[name='${error.key}']").parent().parent().addClass('error'); 34 </g:else> 35 </g:each> 17 36 18 error... 37 // show error dialog 38 var we = $("div#wizardError"); 39 we.dialog({ 40 modal: true, 41 width: 600, 42 buttons: { 43 Ok: function() { 44 $(this).dialog('close'); 45 we.remove(); 46 } 47 } 48 }); 49 </script> 50 </g:if> 51 -
trunk/grails-app/views/query/common/_query.gsp
r315 r316 16 16 %> 17 17 <div id="wizard" class="wizard"> 18 <h1> Create a new study</h1>18 <h1>Query</h1> 19 19 <g:form action="pages" name="wizardForm" id="wizardForm"> 20 20 <g:hiddenField name="do" value="" />
Note: See TracChangeset
for help on using the changeset viewer.