source: trunk/grails-app/views/importer/step4.gsp @ 1223

Last change on this file since 1223 was 1223, checked in by t.w.abma@…, 11 years ago
  • improved error messaging in the last step of the wizard
  • Property svn:keywords set to Author Date Rev
File size: 1.5 KB
Line 
1<%
2        /**
3         * Thirds step in the importer, showing the imported data
4         *
5         * @author Tjeerd Abma
6         * @since 20100318
7         * @package importer
8         *
9         * Revision information:
10         * $Rev: 1223 $
11         * $Author: t.w.abma@umcutrecht.nl $
12         * $Date: 2010-11-30 14:56:07 +0000 (di, 30 nov 2010) $
13         */
14%>
15
16<%@ page contentType="text/html;charset=UTF-8" %>
17
18<html>
19  <head>
20    <meta name="layout" content="main"/>
21    <link rel="stylesheet" href="${resource(dir: 'css', file: 'importer.css')}"/>
22    <title>Step 5: import wizard finished</title>
23  </head>
24  <body>
25    <h1>Step 5: import wizard finished</h1>
26    <p>${validatedSuccesfully} of ${totalrows} rows were imported succesfully.</p>
27
28
29
30    <g:if test="${failedtopersist}">
31      <p>The following entities could not be persisted:</p>
32      <table>     
33      <g:each var="entity" in="${failedtopersist}">       
34        <tr>
35        <g:each var="field" in="${entity.giveFields()}">
36          <td>
37            <g:if test="${entity.getFieldValue(field.name)!=null}">
38              <b>${field.name}</b> ${entity.getFieldValue(field.name)}
39            </g:if>
40           <g:else><b>${field.name}</b> &#215;
41            </g:else>
42          </td>
43        </g:each>
44        <td>
45           <g:each var="error" in="${entity.errors.allErrors}">
46             <b>error</b>: field `${error.getField()}` rejected value: ${error.getRejectedValue()}</b>
47        </g:each>
48        </td>
49      </tr>
50      </g:each>
51      </table>
52    </g:if>
53
54
55    <g:if test="${referer}">
56      <p>Click <a href="${referer}">here</a> to return to the page you came from.</p>
57    </g:if>
58  </body>
59</html>
Note: See TracBrowser for help on using the repository browser.