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

Last change on this file since 213 was 213, checked in by duh, 10 years ago
  • restructured wizard
  • added information boxes
  • improved error feedback (highlighted error fields)
  • added confirmation page
  • several smaller bugfixes and improvements
  • Property svn:keywords set to Rev Author Date
File size: 2.0 KB
Line 
1<%
2/**
3 * Subjects page
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: 213 $
13 * $Author: duh $
14 * $Date: 2010-02-25 15:18:22 +0000 (do, 25 feb 2010) $
15 */
16%>
17<wizard:pageContent>
18        <span class="info">
19                <span class="title">Add subjects to your study</span>
20                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce laoreet leo nec leo vehicula quis scelerisque elit pulvinar. Vivamus arcu dui, adipiscing eu vestibulum id, consectetur et erat. Aenean risus mauris, placerat et lacinia vulputate, commodo eget ligula. Pellentesque ornare blandit metus ac dictum. Donec scelerisque feugiat quam, a congue ipsum malesuada nec. Donec vulputate, diam eget porta rhoncus, est mauris ullamcorper turpis, vitae dictum risus justo quis justo. Aenean blandit feugiat accumsan. Donec porttitor bibendum elementum.
21        </span>
22
23        <wizard:ajaxButton name="add" value="Add" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" />
24        <input name="addNumber" size="4" maxlength="4" value="1">
25        subjects of species
26        <wizard:speciesSelect name="addSpecies" />
27<g:if test="${subjects}">
28        <div class="table">
29                <div class="header">
30                        <div class="firstColumn">#</div>
31                        <div class="column">name</div>
32                        <div class="column">species</div>
33                        <wizard:templateColumnHeaders template="${study.template}" class="column" />
34                </div>
35        <g:each var="subject" status="i" in="${subjects}">
36                <div class="row">
37                        <div class="firstColumn">${i}</div>
38                        <div class="column"><g:textField name="subject_${i}_name" value="${subject.name}" size="12" maxlength="12" /></div>
39                        <div class="column">
40                                <wizard:speciesSelect value="${subject.species}" name="subject_${i}_species" />
41                        </div>
42                        <wizard:templateColumns id="${i}" template="${study.template}" name="subject_${i}" class="column" subject="${subject}" />
43                </div>
44        </g:each>
45        </div>
46        <div class="sliderContainer">
47                <div class="slider"/>
48        </div>
49</g:if>
50</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.