source: trunk/grails-app/views/wizard/pages/_subjects.gsp @ 172

Last change on this file since 172 was 172, checked in by duh, 10 years ago
  • added table-editor.js which makes tables multi editable (see the wizard subjects page and drag a selection over table rows and start editting)
  • updated css and templates
  • Property svn:keywords set to Rev Author Date
File size: 1.3 KB
RevLine 
[86]1<%
2/**
[138]3 * Subjects page
[86]4 *
5 * @author  Jeroen Wesbeek
6 * @since   20100113
7 * @package wizard
8 * @see     dbnp.studycapturing.WizardTagLib::previousNext
9 * @see     dbnp.studycapturing.WizardController
10 *
11 * Revision information:
12 * $Rev: 172 $
13 * $Author: duh $
14 * $Date: 2010-02-04 16:50:31 +0000 (do, 04 feb 2010) $
15 */
16%>
[88]17<wizard:pageContent>
[145]18<wizard:ajaxButton name="add" value="Add" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" />
[138]19<input name="addNumber" size="4" maxlength="4" value="1">
20subjects of species
21<wizard:speciesSelect name="addSpecies" />
22<g:if test="${subjects}">
[145]23<div class="table">
24        <div class="header">
25                <div class="firstColumn">#</div>
26                <div class="column">name</div>
27                <div class="column">species</div>
[157]28                <wizard:templateColumnHeaders template="${study.template}" class="column" />
[145]29        </div>
[138]30<g:each var="subject" status="i" in="${subjects}">
[145]31        <div class="row">
32                <div class="firstColumn">${i}</div>
33                <div class="column"><g:textField name="subject_${i}_name" value="${subject.name}" size="12" maxlength="12" /></div>
34                <div class="column">
35                        <wizard:speciesSelect value="${subject.species}" name="subject_${i}_species" />
[140]36                </div>
[157]37                <wizard:templateColumns id="${i}" template="${study.template}" class="column" />
[138]38        </div>
39</g:each>
40</div>
[157]41<div class="sliderContainer">
42        <div class="slider"/>
43</div>
[138]44</g:if>
[88]45</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.