Last change
on this file since 1430 was
1430,
checked in by work@…, 13 years ago
|
|
-
Property svn:keywords set to
Rev Author Date
|
File size:
1.2 KB
|
Line | |
---|
1 | <% |
---|
2 | /** |
---|
3 | * Wizard error template |
---|
4 | * |
---|
5 | * @author Jeroen Wesbeek |
---|
6 | * @since 20100114 |
---|
7 | * @package wizard |
---|
8 | * @see dbnp.studycapturing.WizardTagLib |
---|
9 | * @see dbnp.studycapturing.WizardController |
---|
10 | * |
---|
11 | * Revision information: |
---|
12 | * $Rev: 1430 $ |
---|
13 | * $Author: work@osx.eu $ |
---|
14 | * $Date: 2011-01-21 20:05:36 +0000 (vr, 21 jan 2011) $ |
---|
15 | */ |
---|
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> |
---|
36 | |
---|
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 | |
---|
Note: See
TracBrowser
for help on using the repository browser.