source: trunk/grails-app/views/importer/common/_failedcells.gsp @ 1070

Last change on this file since 1070 was 1070, checked in by t.w.abma@…, 11 years ago
  • ' failed cells' page form with ontology chooser implemented
File size: 1.4 KB
Line 
1<%
2        /**
3         * Failed cells template
4         *
5         * @author Tjeerd Abma
6         * @since 20101103
7         * @package importer
8         *
9         * Revision information:
10         * $Rev$
11         * $Author$
12         * $Date$
13         */
14%>
15<g:if env="production">
16<script type="text/javascript" src="${resource(dir: 'js', file: 'ontology-chooser.min.js')}"></script>
17</g:if><g:else>
18<script type="text/javascript" src="${resource(dir: 'js', file: 'ontology-chooser.js')}"></script>
19</g:else>
20
21<script type="text/javascript">
22$(document).ready(function() {
23                // initialize the ontology chooser
24        new OntologyChooser().init();
25});
26</script>
27
28<table>
29  <tr>
30    <td>Column</td><td>Row</td><td>Ontology unknown</td><td>Corrected ontology</td>
31  </tr>
32<g:form>
33        <g:each var="record" in="${failedcells}">
34          <tr>
35            <td>${record.key.name}</td>
36            <td>${record.value.rownum}</td>
37            <td>${record.value.value}</td>
38            <td>
39                <input type="text" name="cell${record.value.rownum}" rel="ontology-all-name"/><br/>
40                <input type="hidden" name="cell${record.value.rownum}-concept_id" /><br/>
41                <input type="hidden" name="cell${record.value.rownum}-ontology_id" /><br/>
42                <input type="hidden" name="cell${record.value.rownum}-full_id" /><br/>
43            </td>
44          </tr>
45        </g:each>
46  <tr>
47    <td colspan="4">
48        <input type="submit" value="Accept changes">
49    </td>
50  </tr>
51
52</g:form>
53
54</table>
55
Note: See TracBrowser for help on using the repository browser.