Ignore:
Timestamp:
Nov 10, 2010, 9:37:02 AM (10 years ago)
Author:
adem.bilican@…
Message:

SimpleTox? exporter + ZIP file for multiple studies + error handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/exporter/index.gsp

    r1051 r1112  
    77    <g:set var="entityName" value="${message(code: 'study.label', default: 'Study')}" />
    88    <title>SimpleTox Exporter</title>
     9
     10   
     11
     12
    913</head>
    1014<body>
    1115
    12   <g:form action="export">
     16  <g:formRemote url="[controller:'exporter',action:'export']" name="simpleToxForm" onComplete="file://" onFailure="alert('Error while exporting the file');" >
    1317
    1418  <div class="body">
    1519    <h1>Export as SimpleTox</h1>
    16     <br> Select the study you want to export in SimpleTox format.<br><br>
     20    <br> Select the study you want to export in SimpleTox format.<br>
     21    If you choose multiple studies, a ZIP file will be created.
     22    <br><br>
    1723    <g:if test="${flash.message}">
    1824      <div class="message">${flash.message}</div>
     
    3541              <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
    3642
    37                   <td><input type="checkbox" name="${studyInstance.title}" id="${studyInstance.title}"></td>
     43                  <td><input type="checkbox" name="${studyInstance.title}" id="checked_studies"></td>
    3844
    39                   <td><g:link action="show" id="${studyInstance.id}">${fieldValue(bean: studyInstance, field: "code")}</g:link></td>
     45                  <td><g:link controller="study" action="show" id="${studyInstance.id}">${fieldValue(bean: studyInstance, field: "code")}</g:link></td>
    4046                      <td>
    4147                              ${fieldValue(bean: studyInstance, field: "title")}
     
    7177                    </g:else>
    7278                  </td>
    73 
    7479              </tr>
    7580          </g:each>
     
    8186    <div class="paginateButtons" id="button">
    8287    </div>
    83    
    84     <INPUT TYPE=submit name=submit Value="Export">
     88
     89    <input type="submit" value="Export"/>
    8590
    8691  </div>
    87     <div id="result">  </div>
    8892
    89 </g:form>
     93</g:formRemote>
    9094
    9195</body>
Note: See TracChangeset for help on using the changeset viewer.