root/trunk/grails-app/views/wizard/pages/_subjects.gsp @ 262

Revision 262, 2.9 KB (checked in by duh, 4 years ago)

- some bug fixes, improvements and comments

  • Property svn:keywords set to Author Rev Date
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$
13 * $Author$
14 * $Date$
15 */
16%>
17<wizard:pageContent>
18        <span class="info">
19                <span class="title">Add subjects to your study</span>
20                In this screen you can add subjects to your study based on a given template. Note that the 'species' select will probably
21                move to the template as an ontology reference and will not be asked anymore.
22        </span>
23
24        <wizard:ajaxButton name="add" value="Add" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" />
25        <input name="addNumber" size="4" maxlength="4" value="1">
26        subjects of species
27        <wizard:speciesSelect name="addSpecies" />
28        using the
29        <wizard:templateSelect name="template" description="Template" value="${study?.template}" entity="${dbnp.studycapturing.Subject}" />
30        template
31
32<g:if test="${subjects}">
33        <g:each var="subjectTemplate" in="${subjectTemplates}">
34                <h1>${subjectTemplate.getValue().name} template</h1>
35                <div class="table">
36                        <div class="header">
37                                <div class="firstColumn">#</div>
38                                <div class="column">name</div>
39                                <div class="column">species</div>
40                                <wizard:templateColumnHeaders template="${subjectTemplate.getValue().template}" class="column" />
41                        </div> 
42                <g:each var="subjectId" in="${subjectTemplate.getValue().subjects}">
43                        <div class="row">
44                                <div class="firstColumn">${subjectId}</div>
45                                <div class="column"><g:textField name="subject_${subjectId}_name" value="${subjects[ subjectId ].name}" size="12" maxlength="12" /></div>
46                                <div class="column">
47                                        <wizard:speciesSelect value="${subjects[ subjectId ].species}" name="subject_${subjectId}_species" />
48                                </div>
49                                <wizard:templateColumns id="${subjectId}" template="${subjects[ subjectId ].template}" name="subject_${subjectId}" class="column" subject="${subjects[ subjectId ]}" />                         
50                        </div>
51                </g:each>
52                </div>
53                <div class="sliderContainer">
54                        <div class="slider" ></div>
55                </div>
56        </g:each>
57</g:if>
58
59        <span class="info">
60                <span class="known">Known issues</span>
61                <ul>
62                        <li>autocomplete fields (like ontologies) deselect the selected rows and hence don't replicate</li>
63                        <li>ontology fields should replicate value <i>and</i> hidden fields</li>
64                        <li>no client-side validation is performed to check the type of an input field actually matched that of the datamodel</li>
65                        <li>table columns are randomized on view as they are currently not sorted</li>
66                        <li>ontology hidden fields should be processed by the back-end as well (not yet implemented)</li>
67                        <li>ontology fields now show suggestions for <i>all</i> available ontologies. This has to be narrowed down in the future.</li>
68                        <li>ontology hidden fields should be handled by the taglibrary / controller as well</li>
69                </ul>
70        </span>
71
72</wizard:pageContent>
Note: See TracBrowser for help on using the browser.