Ignore:
Timestamp:
Mar 17, 2010, 12:35:31 PM (12 years ago)
Author:
duh
Message:
  • initial version of wizard storing data; known issue: while everything is saved properly, linked elements (subjects, events, etc) are not properly stored. I think it might be caused by the transaction in which everything is being done...
  • added date/year select to datepickers
  • added delete option to subjects view and controller logic
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/wizard/pages/_subjects.gsp

    r262 r275  
    1919                <span class="title">Add subjects to your study</span>
    2020                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.
     21                move to the template as an ontology reference and will not be asked anymore.<br/>
     22                <i>Note that you can edit multiple subjects at once by selecting multpiple rows by either ctrl-clicking them or dragging a selection over them.</i>
    2223        </span>
    2324
     
    3637                        <div class="header">
    3738                                <div class="firstColumn">#</div>
     39                                <div class="firstColumn"></div>
    3840                                <div class="column">name</div>
    3941                                <div class="column">species</div>
     
    4244                <g:each var="subjectId" in="${subjectTemplate.getValue().subjects}">
    4345                        <div class="row">
    44                                 <div class="firstColumn">${subjectId}</div>
     46                                <div class="firstColumn">${subjectId + 1}</div>
     47                                <div class="firstColumn">
     48                                        <wizard:ajaxButton name="delete" src="../images/icons/famfamfam/delete.png" alt="delete this subject" class="famfamfam" value="-" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" before="\$(\'input[name=do]\').val(${subjectId});" afterSuccess="onWizardPage()" />
     49                                </div>
    4550                                <div class="column"><g:textField name="subject_${subjectId}_name" value="${subjects[ subjectId ].name}" size="12" maxlength="12" /></div>
    4651                                <div class="column">
Note: See TracChangeset for help on using the changeset viewer.