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

Last change on this file since 260 was 260, checked in by duh, 13 years ago
  • upgraded jquery-ui to latest version
  • implemented ontology chooser using jquery-ui's autocomplete functionality. The NCBO ontology chooser was not properly implemented to be used with other functionality like the table editor, etcetera. Hence the rewritten version. Example usage: <input type="text" name="..." rel="ontology-all-name" />
  • ontology chooser dynamically inserts three hidden fields if they are not present (concept_id, ontology_id and full_id) using the naming convention of inputname-ontology_id etc
  • updated the jquery-ui style to the latest version
  • added 'known issues' boxes to wizard pages
  • updated CSS to format ontology chooser results
  • updated wizard javascript
  • some changes to the wizard controller
  • Property svn:keywords set to Author Rev Date
File size: 2.8 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: 260 $
13 * $Author: duh $
14 * $Date: 2010-03-12 15:12:53 +0000 (vr, 12 mrt 2010) $
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="title">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                </ul>
69        </span>
70
71</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.