Ignore:
Timestamp:
Nov 26, 2010, 1:02:51 PM (10 years ago)
Author:
t.w.abma@…
Message:
  • added an initial simple overview in last step of import wizard showing entities which failed to be persisted
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/importer/step4.gsp

    r1142 r1207  
    2525    <h1>Step 5: import wizard finished</h1>
    2626    <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
    2750    <g:if test="${referer}">
    2851      <p>Click <a href="${referer}">here</a> to return to the page you came from.</p>
Note: See TracChangeset for help on using the changeset viewer.