Last change
on this file since 103 was
103,
checked in by duh, 13 years ago
|
- added error handling to the wizard
- changed jquery-ui interface style to Redmond
|
File size:
829 bytes
|
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$ |
---|
13 | * $Author$ |
---|
14 | * $Date$ |
---|
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.key} → ${error.value} |
---|
23 | </p> |
---|
24 | </g:each> |
---|
25 | </div> |
---|
26 | <script type="text/javascript"> |
---|
27 | $(function() { |
---|
28 | $("div#wizardError").dialog({ |
---|
29 | bgiframe: true, |
---|
30 | modal: true, |
---|
31 | width: 600, |
---|
32 | buttons: { |
---|
33 | Ok: function() { |
---|
34 | $(this).dialog('close'); |
---|
35 | } |
---|
36 | } |
---|
37 | }); |
---|
38 | }); |
---|
39 | </script> |
---|
40 | </g:if> |
---|
Note: See
TracBrowser
for help on using the repository browser.