Ignore:
Timestamp:
Jan 28, 2010, 5:34:50 PM (10 years ago)
Author:
duh
Message:
  • wizard subjects page now build a table with features, does not work properly yet
  • youtube autoplay help items are possible now
  • development grouping page for selecting subjects and grouping them by dragging and dropping
Location:
trunk/grails-app/views/wizard
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/wizard/common/_navigation.gsp

    r101 r145  
    1515%>
    1616    <div class="navigation">
    17       <g:if test="${page>1}"><wizard:ajaxButton name="previous" value="&laquo; prev" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="attachHelpTooltips()" class="prevnext" /></g:if>
     17      <g:if test="${page>1}"><wizard:ajaxButton name="previous" value="&laquo; prev" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /></g:if>
    1818      <g:if test="${page>1 && page<pages.size}"> | </g:if>
    19       <g:if test="${page<pages.size}"><wizard:ajaxButton name="next" value="next &raquo;" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="attachHelpTooltips()" class="prevnext" /></g:if>
     19      <g:if test="${page<pages.size}"><wizard:ajaxButton name="next" value="next &raquo;" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /></g:if>
    2020    </div>
  • trunk/grails-app/views/wizard/common/_wizard.gsp

    r107 r145  
    1919        <g:form action="pages" name="wizardForm" id="wizardForm">
    2020                <div id="wizardPage">
    21                         <wizard:ajaxFlowRedirect form="form#wizardForm" name="next" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="attachHelpTooltips()" />
     21                        <wizard:ajaxFlowRedirect form="form#wizardForm" name="next" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" />
    2222                </div>
    2323        </g:form>
  • trunk/grails-app/views/wizard/index.gsp

    r98 r145  
    1919        <meta name="layout" content="main"/>
    2020        <link rel="stylesheet" href="${resource(dir: 'css', file: 'wizard.css')}"/>
     21        <script type="text/javascript" src="${resource(dir: 'js', file: 'development.js')}"></script>
    2122        <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.qtip-1.0.0-rc3.min.js')}"></script>
     23        <script type="text/javascript" src="${resource(dir: 'js', file: 'swfobject.js')}"></script>
    2224        <script type="text/javascript" src="${resource(dir: 'js', file: 'wizard.js')}"></script>
    2325</head>
  • trunk/grails-app/views/wizard/pages/_study.gsp

    r140 r145  
    1616%>
    1717<wizard:pageContent>
    18         <wizard:templateSelect />
    1918        <wizard:textFieldElement name="title" description="Title" error="title" value="${study?.title}">
    2019                The title of the study you are creating
     
    3130                The start date of the study     
    3231        </wizard:dateElement>
     32        <wizard:templateElement name="template" description="Template" value="${study?.template}">
     33                The meta data template to use for this study
     34        </wizard:templateElement>
    3335</wizard:pageContent>
  • trunk/grails-app/views/wizard/pages/_subjects.gsp

    r140 r145  
    1616%>
    1717<wizard:pageContent>
    18 <wizard:ajaxButton name="add" value="Add" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="attachHelpTooltips()" />
     18<wizard:ajaxButton name="add" value="Add" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" />
    1919<input name="addNumber" size="4" maxlength="4" value="1">
    2020subjects of species
    2121<wizard:speciesSelect name="addSpecies" />
    2222<g:if test="${subjects}">
    23 <div class="subjects">
     23<div class="table">
     24        <div class="header">
     25                <div class="firstColumn">#</div>
     26                <div class="column">name</div>
     27                <div class="column">species</div>
     28            <wizard:templateColumnHeaders/>
     29        </div>
    2430<g:each var="subject" status="i" in="${subjects}">
    25         <div class="subject<g:if test="${i>0}"> topborder</g:if>">
    26                 <div class="row">${i+1}</div>
    27                 <div class="row"><g:textField name="test" value="test" size="12" maxlength="12" /></div>
    28                 <div class="row">
    29                         <wizard:speciesSelect value="${subject.species}" name="species_${i}" />
     31        <div class="row">
     32                <div class="firstColumn">${i}</div>
     33                <div class="column"><g:textField name="subject_${i}_name" value="${subject.name}" size="12" maxlength="12" /></div>
     34                <div class="column">
     35                        <wizard:speciesSelect value="${subject.species}" name="subject_${i}_species" />
    3036                </div>
    31                 <div class="row">${subject.name}</div>
     37                <wizard:templateColumns id="${i}" />
    3238        </div>
    3339</g:each>
  • trunk/grails-app/views/wizard/pages/_three.gsp

    r138 r145  
    3131        </wizard:textFieldElement>
    3232        <wizard:dateElement name="startDate" description="Date element" error="startDate" value="${study?.startDate}">
    33                 <object width="320" height="265"><param name="movie" value="http://www.youtube.com/v/2WNrx2jq184&hl=en_US&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2WNrx2jq184&hl=en_US&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="265"></embed></object>
     33                [youtube:2WNrx2jq184]
    3434        </wizard:dateElement>
    3535</wizard:pageContent>
Note: See TracChangeset for help on using the changeset viewer.