Ignore:
Timestamp:
Mar 17, 2010, 12:35:31 PM (10 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
Location:
trunk/grails-app/views/wizard/pages
Files:
1 added
4 edited

Legend:

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

    r262 r275  
    1616%>
    1717<wizard:pageContent>
    18 You are done!
    1918
    2019        <span class="info">
    21                 <span class="todo">TODO</span>
    22                 <ul>
    23                         <li>persist the data to the database :) nothing is currently being saved...</li>
    24                 </ul>
     20                <span class="todo">Finished!</span>
     21                The study you have just created has been properly saved.
    2522        </span>
     23
    2624</wizard:pageContent>
  • trunk/grails-app/views/wizard/pages/_eventDescriptions.gsp

    r262 r275  
    4545                        <div class="column">protocol</div>
    4646                        <div class="column">sampling event</div>
    47                         <div class="column">protocol</div>
    4847                </div>
    4948        <g:each var="eventDescription" status="i" in="${eventDescriptions}">
     
    5756                        <div class="column"><wizard:protocolSelect name="eventDescription_${i}_protocol" value="${eventDescription.protocol}" /></div>
    5857                        <div class="column"><g:checkBox name="eventDescription_${i}_isSamplingEvent" value="${eventDescription.isSamplingEvent}" /></div>
    59                         <div class="column"><g:if test="${eventDescription.protocol}">${eventDescription.protocol}</g:if><g:else>-</g:else></div>
    6058                </div>
    6159        </g:each>
  • trunk/grails-app/views/wizard/pages/_events.gsp

    r262 r275  
    7979        </div>
    8080        <div class="sliderContainer">
    81                 <div class="slider"/>
     81                <div class="slider"></div>
    8282        </div>
    8383</g:if>
    8484
    85         <span class="info">
    86                 <span class="todo">TODO</span>
    87                 <ul>
    88                         <li>parameter values should still be asked and implemented</li>
    89                 </ul>
    90         </span>
     85<span class="info">
     86        <span class="todo">TODO</span>
     87        <ul>
     88                <li>parameter values should still be asked and implemented</li>
     89        </ul>
     90</span>
     91       
    9192</wizard:pageContent>
  • 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.