Last change
on this file since 13 was
13,
checked in by robert@…, 12 years ago
|
Improved user interface and implemented basic export functionality
|
File size:
1.7 KB
|
Line | |
---|
1 | <html> |
---|
2 | <head> |
---|
3 | <meta name="layout" content="main" /> |
---|
4 | <title>List assays | Metagenomics | dbNP</title> |
---|
5 | </head> |
---|
6 | <body> |
---|
7 | <h1>List of metagenomics assays</h1> |
---|
8 | <g:if test="${studies.size() == 0}"> |
---|
9 | <p> |
---|
10 | Currently there are no studies available in the database. Please use <a href="${gscfAddUrl}">GSCF</a> to add new studies. |
---|
11 | </p> |
---|
12 | </g:if> |
---|
13 | <g:else> |
---|
14 | <form id="assayForm"> |
---|
15 | </form> |
---|
16 | <table id="assays" class="paginate"> |
---|
17 | <thead> |
---|
18 | <tr> |
---|
19 | <th class="nonsortable"></th> |
---|
20 | <th>Assay</th> |
---|
21 | <th>Study</th> |
---|
22 | <th># samples</th> |
---|
23 | <th>avg sequences / sample</th> |
---|
24 | </tr> |
---|
25 | </thead> |
---|
26 | <tbody> |
---|
27 | <g:each in="${studies}" var="study"> |
---|
28 | <g:if test="${study.assays != null && study.assays.size() > 0}"> |
---|
29 | <g:each in="${study.assays}" var="assay"> |
---|
30 | <tr> |
---|
31 | <td><g:checkBox name="ids" value="${assay.id}" checked="${false}" /></td> |
---|
32 | |
---|
33 | <td><g:link controller="assay" action="show" id="${assay.id}">${assay.name}</g:link></td> |
---|
34 | <td><a href="${study.viewUrl()}">${study.name}</a></td> |
---|
35 | <td>${assay.assaySamples?.size()}</td> |
---|
36 | <td> |
---|
37 | <g:if test="${assay.assaySamples?.size()}"> |
---|
38 | <g:formatNumber number="${assay.numSequences() / assay.assaySamples?.size()}" format="0"/> |
---|
39 | </g:if> |
---|
40 | <g:else> |
---|
41 | - |
---|
42 | </g:else> |
---|
43 | </td> |
---|
44 | </tr> |
---|
45 | </g:each> |
---|
46 | </g:if> |
---|
47 | </g:each> |
---|
48 | </tbody> |
---|
49 | </table> |
---|
50 | <p class="options"> |
---|
51 | <a class="fasta" href="#" onClick="submitPaginatedForm( $( '#assayForm' ), '<g:createLink action="exportAsFasta" />', '#assays', 'Please select an assay to export' ); return false;">Export as fasta</a> |
---|
52 | </p> |
---|
53 | |
---|
54 | </g:else> |
---|
55 | </body> |
---|
56 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.