Changeset 565 for trunk/grails-app/views


Ignore:
Timestamp:
Jun 15, 2010, 5:45:16 PM (13 years ago)
Author:
duh
Message:
  • upon adding a term the termEditorController now also adds the ontology when the ontologies doest not exist
  • extended the Ontology domain class with functionality to instantiate the Ontology class using the versioned ncboId
  • added 'addDummy' support to termElements and templateElements which caused the study and subject page not to work properly on an empty database (these fields were not rendered so exceptions were thrown).
  • this fixed bug # 107 in half... now the species select (ONTOLOGYTERM) somehow does not show the species in the database, still needs to be fixed
File:
1 edited

Legend:

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

    r526 r565  
    2525        </span>
    2626
    27         <wizard:textFieldElement name="addNumber" description="Number of subjects to add" error="addNumber" value="1" size="4" maxlength="4">
     27        <wizard:textFieldElement name="addNumber" description="Number of subjects to add" error="addNumber" value="${values.addNumber}" size="4" maxlength="4">
    2828                The number of subjects to add to your study
    2929        </wizard:textFieldElement>
    30         <wizard:termElement name="species" description="of species" value="" ontologies="1132">
     30        <wizard:termElement name="species" description="of species" value="${values.species}" ontologies="1132" addDummy="true">
    3131                The species of the subjects you would like to add to your study
    3232        </wizard:termElement>
    33         <wizard:templateElement name="template" description="with template" value="" error="template" entity="${dbnp.studycapturing.Subject}" >
     33        <wizard:templateElement name="template" description="with template" value="${values.template}" error="template" entity="${dbnp.studycapturing.Subject}" addDummy="true">
    3434                The template to use for these subjects
    3535        </wizard:templateElement>
    3636        <wizard:ajaxButtonElement name="add" value="Add" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()">
    3737        </wizard:ajaxButtonElement>
    38 
    3938
    4039<g:if test="${subjects}">
     
    6059                                        <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()" />
    6160                                </div>
    62                                 <wizard:templateColumns id="${subjectId}" entity="${subjects[ subjectId ]}" template="${subjects[ subjectId ].template}" name="subject_${subjectId}" class="column" subject="${subjects[ subjectId ]}" />
     61                                <wizard:templateColumns id="${subjectId}" entity="${subjects[ subjectId ]}" template="${subjects[ subjectId ].template}" name="subject_${subjectId}" class="column" subject="${subjects[ subjectId ]}" addDummy="true" />
    6362                        </div>
    6463                  </g:if>
Note: See TracChangeset for help on using the changeset viewer.