Changeset 135


Ignore:
Timestamp:
Jan 26, 2010, 10:09:30 AM (8 years ago)
Author:
ademcan
Message:

"compare selected studies" option, with some examples studies, accordion view TODO

Location:
trunk/grails-app
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrap.groovy

    r106 r135  
    6464                        // studies
    6565                        new Study(title:"test",code:"code",researchQuestion:"Rquestion",description:"description",ecCode:"ecCode",dateCreated:new Date(),lastUpdated:new Date(),startDate:new Date()).save()
    66                 }
     66                        new Study(title:"example",code:"Excode",researchQuestion:"ExRquestion",description:"Exdescription",ecCode:"ExecCode",dateCreated:new Date(),lastUpdated:new Date(),startDate:new Date()).save()
     67                        new Study(title:"testAgain",code:"testcode",researchQuestion:"testRquestion",description:"testdescription",ecCode:"testCode",dateCreated:new Date(),lastUpdated:new Date(),startDate:new Date()).save()
     68                        new Study(title:"Exampletest",code:"Examplecode",researchQuestion:"ExampleRquestion",description:"Exampledescription",ecCode:"ExampleecCode",dateCreated:new Date(),lastUpdated:new Date(),startDate:new Date()).save()
     69                }
    6770        }
    6871
  • trunk/grails-app/views/study/list.gsp

    r91 r135  
    99</head>
    1010<body>
    11  
    12  <!--g:form url="[action:'see',controller:'study']"-->
    13   <g:form action="show.gsp">
     11
     12 <!--g:form url="[action:'list_extended',controller:'study']"-->
     13  <g:form action="list_extended.gsp">
    1414
    1515  <div class="nav">
     
    2323    </g:if>
    2424    <div class="list">
     25
    2526      <g:each in="${studyInstanceList}" status="i" var="studyInstance">
    2627        <br>
    2728        <table>
    2829          <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
    29             <td><input type="checkbox" name="${studyInstance.id}" id="${studyInstance.id}"></td>
     30            <td>
     31              <input type="checkbox" name="${studyInstance.title}" id="${studyInstance.title}"></td>
    3032
    3133            <td width=200>
  • trunk/grails-app/views/study/show.gsp

    r132 r135  
    1414</head>
    1515<body>
     16
    1617<div class="nav">
    1718  <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
     
    3132      <a href="#"> Template </a> <div> <g:link controller="template" action="show" id="${studyInstance?.template?.id}">${studyInstance?.template?.encodeAsHTML()}</g:link> </div>
    3233      <a href="#"> Start Date </a> <div> <g:formatDate date="${studyInstance?.startDate}" /> </div>
    33       <a href="#"> Sampling Events </a> <div>  <ul>
     34      <a href="#"> Sampling Events </a> <div> <ul>
    3435          <g:each in="${studyInstance.samplingEvents}" var="s">
    3536            <li><g:link controller="samplingEvent" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
Note: See TracChangeset for help on using the changeset viewer.