1 | <% |
---|
2 | /** |
---|
3 | * Missing properties template which shows missing properties |
---|
4 | * |
---|
5 | * @author Tjeerd Abma |
---|
6 | * @since 20100623 |
---|
7 | * @package importer |
---|
8 | * |
---|
9 | * Revision information: |
---|
10 | * $Rev: 1467 $ |
---|
11 | * $Author: work@osx.eu $ |
---|
12 | * $Date: 2011-02-01 14:40:17 +0000 (di, 01 feb 2011) $ |
---|
13 | */ |
---|
14 | %> |
---|
15 | <script type="text/javascript"> |
---|
16 | $(document).ready(function() { |
---|
17 | // mark error fields |
---|
18 | <g:each in="${importer_failedcells}" var="record"> |
---|
19 | <g:each in="${record.importcells}" var="cell"> |
---|
20 | var element = $("select[name=entity_${cell.entityidentifier}_${cell.mappingcolumn.property}]"); |
---|
21 | |
---|
22 | element.addClass('error') |
---|
23 | element.append( new Option("Invalid: ${cell.value}","#invalidterm", true, true) ); |
---|
24 | |
---|
25 | </g:each> |
---|
26 | </g:each> |
---|
27 | }); |
---|
28 | </script> |
---|
29 | |
---|
30 | <g:if test="${importer_invalidentities}"><br/><br/> |
---|
31 | <b>There are ${importer_invalidentities} entities which could not be validated, they are indicated by a red color, please correct them before continuing.</b> |
---|
32 | </g:if> |
---|
33 | |
---|
34 | <div class="wizard" id="wizard"> |
---|
35 | <div class="tableEditor"> |
---|
36 | <g:set var="showHeader" value="${true}"/> |
---|
37 | <g:each status="index" var="table" in="${datamatrix}"> |
---|
38 | <g:each status="i" var="entity" in="${table}"> |
---|
39 | <g:if test="${showHeader}"> |
---|
40 | <g:set var="showHeader" value="${false}"/> |
---|
41 | <div class="header"> |
---|
42 | <div class="firstColumn"></div> |
---|
43 | <af:templateColumnHeaders entity="${entity}" class="column" /> |
---|
44 | </div> |
---|
45 | <input type="hidden" name="entity" value="${entity.getClass().getName()}"> |
---|
46 | </g:if> |
---|
47 | <div class="row"> |
---|
48 | <div class="firstColumn"></div> |
---|
49 | <af:templateColumns id="${entity.hashCode()}" entity="${entity}" template="${entity.template}" name="entity_${entity.getIdentifier()}" class="column" subject="${entity.hashCode()}" addDummy="true" /> |
---|
50 | </div> |
---|
51 | </g:each> |
---|
52 | </g:each> |
---|
53 | </div> |
---|
54 | <div class="sliderContainer"> |
---|
55 | <div class="slider"></div> |
---|
56 | </div> |
---|
57 | <div> |
---|
58 | <br/> |
---|
59 | </div> |
---|
60 | </div> |
---|