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

Last change on this file since 1207 was 1207, checked in by t.w.abma@…, 12 years ago
  • added an initial simple overview in last step of import wizard showing entities which failed to be persisted
  • Property svn:keywords set to Author Date Rev
File size: 1.3 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: 1207 $
11         * $Author: t.w.abma@umcutrecht.nl $
12         * $Date: 2010-11-26 12:02:51 +0000 (vr, 26 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      </tr>
45      </g:each>
46      </table>
47    </g:if>
48
49
50    <g:if test="${referer}">
51      <p>Click <a href="${referer}">here</a> to return to the page you came from.</p>
52    </g:if>
53  </body>
54</html>
Note: See TracBrowser for help on using the repository browser.