Changeset 1070


Ignore:
Timestamp:
Nov 3, 2010, 8:29:55 PM (6 years ago)
Author:
t.w.abma@…
Message:
  • ' failed cells' page form with ontology chooser implemented
Location:
trunk
Files:
1 deleted
1 edited

Legend:

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

    r1058 r1070  
    1313         */
    1414%>
     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>
    1532<g:form>
    1633        <g:each var="record" in="${failedcells}">
    17                 Column: ${record.value.rownum}
    18                 ${record.key.name} -
    19                 ${record.value.value}<br/>
     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>
    2045        </g:each>
     46  <tr>
     47    <td colspan="4">
     48        <input type="submit" value="Accept changes">
     49    </td>
     50  </tr>
    2151
    22         <input type="submit" value="Accept changes">
    23    
    24 </g:form>   
    25 </div>
     52</g:form>
    2653
     54</table>
     55
Note: See TracChangeset for help on using the changeset viewer.