Changeset 454 for trunk/grails-app/views/study
- Timestamp:
- May 21, 2010, 10:04:49 AM (12 years ago)
- Location:
- trunk/grails-app/views/study
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/study/show.gsp
r453 r454 39 39 <table> 40 40 <!-- only show the head section if there are multiple studies --> 41 <g:if test="${ studyList.size()>1}">41 <g:if test="${multipleStudies}"> 42 42 <thead> 43 43 <tr> … … 144 144 <thead> 145 145 <tr> 146 <th></th> 146 <g:if test="${multipleStudies}"> 147 <th></th> 148 </g:if> 147 149 <g:each in="${new dbnp.studycapturing.Subject().giveDomainFields()}" var="field"> 148 150 <th>${field}</th> … … 187 189 } 188 190 } 189 190 191 %> 191 192 … … 208 209 <g:each in="${sortedSubjects}" var="subject" status="j"> 209 210 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 210 <g:if test="${ j==0}">211 <g:if test="${multipleStudies && j==0}"> 211 212 <td class="studytitle" rowspan="${sortedSubjects.size()}"> 212 213 ${studyInstance.title} … … 245 246 <thead> 246 247 <tr> 247 <th></th> 248 <g:if test="${multipleStudies}"> 249 <th></th> 250 </g:if> 248 251 <th>Start time</th> 249 252 <th>Duration</th> … … 269 272 <g:each in="${sortedEvents}" var="event" status="j"> 270 273 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 271 <g:if test="${ j==0}">274 <g:if test="${multipleStudies && j==0}"> 272 275 <td class="studytitle" rowspan="${sortedEvents.size()}"> 273 276 ${studyInstance.title} … … 321 324 <thead> 322 325 <tr> 323 <th></th> 326 <g:if test="${multipleStudies}"> 327 <th></th> 328 </g:if> 324 329 <th>Name</th> 325 330 <th colspan="${groupTemplates.size()}">Events</th> … … 327 332 </tr> 328 333 <tr> 329 <th></th> 334 <g:if test="${multipleStudies}"> 335 <th></th> 336 </g:if> 330 337 <th></th> 331 338 <g:each in="${groupTemplates}" var="eventTemplate"> … … 342 349 <g:each in="${studyInstance.eventGroups}" var="eventGroup" status="j"> 343 350 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 344 <g:if test="${ j==0}">351 <g:if test="${multipleStudies && j==0}"> 345 352 <td class="studytitle" rowspan="${studyInstance.eventGroups.size()}"> 346 353 ${studyInstance.title} … … 389 396 <thead> 390 397 <tr> 391 <th></th> 398 <g:if test="${multipleStudies}"> 399 <th></th> 400 </g:if> 392 401 <th width="100">Assay Name</th> 393 402 <th width="100">Module</th> … … 403 412 <g:each in="${studyInstance.assays}" var="assay" status="j"> 404 413 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 405 <g:if test="${ j==0}">414 <g:if test="${multipleStudies && j==0}"> 406 415 <td class="studytitle" rowspan="${studyInstance.assays.size()}"> 407 416 ${studyInstance.title} … … 442 451 <th>Phone</th> 443 452 <th>Email</th> 444 <g:each in="${studyList}" var="studyInstance"> 445 <th>${studyInstance.title}</th> 446 </g:each> 453 <g:if test="${multipleStudies}"> 454 <g:each in="${studyList}" var="studyInstance"> 455 <th>${studyInstance.title}</th> 456 </g:each> 457 </g:if> 458 <g:else> 459 <th>Role</th> 460 </g:else> 447 461 </thead> 448 462 </tr> … … 487 501 <th>Authors</th> 488 502 <th>Comments</th> 489 <g:each in="${studyList}" var="studyInstance"> 490 <th>${studyInstance.title}</th> 491 </g:each> 503 504 <g:if test="${multipleStudies}"> 505 <g:each in="${studyList}" var="studyInstance"> 506 <th>${studyInstance.title}</th> 507 </g:each> 508 </g:if> 492 509 </thead> 493 510 </tr> … … 499 516 </td> 500 517 <td>${publication.comments}</td> 501 <g:each in="${studyList}" var="studyInstance"> 502 <td> 503 <g:if test="${publication in studyInstance.publications}"> 504 x 505 </g:if> 506 </td> 507 </g:each> 518 <g:if test="${multipleStudies}"> 519 <g:each in="${studyList}" var="studyInstance"> 520 <td> 521 <g:if test="${publication in studyInstance.publications}"> 522 x 523 </g:if> 524 </td> 525 </g:each> 526 </g:if> 508 527 </tr> 509 528 </g:each>
Note: See TracChangeset
for help on using the changeset viewer.