PageRenderTime 49ms CodeModel.GetById 43ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/admin/requests/view_sample_dataset.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 79 lines | 74 code | 5 blank | 0 comment | 2 complexity | 408f0d1986e9f7aa59031c931fa69fd5 MD5 | raw file
 1<%inherit file="/base.mako"/>
 2<%namespace file="/message.mako" import="render_msg" />
 3
 4%if message:
 5    ${render_msg( message, status )}
 6%endif
 7
 8<br/><br/>
 9
10<%
11    sample = sample_dataset.sample
12    is_admin = cntrller == 'requests_admin' and trans.user_is_admin()
13    can_manage_datasets = is_admin and sample.untransferred_dataset_files
14%>
15
16<ul class="manage-table-actions">
17    %if can_manage_datasets:
18        <li><a class="action-button" href="${h.url_for( controller='requests_admin', action='manage_datasets', cntrller=cntrller, sample_id=trans.security.encode_id( sample.id ) )}">Manage sample datasets</a></li>
19    %endif
20    <li><a class="action-button" href="${h.url_for( controller='requests_common', action='view_request', cntrller=cntrller, id=trans.security.encode_id( sample.request.id ) )}">Browse this request</a></li>
21</ul>
22
23<div class="toolForm">
24    <div class="toolFormTitle">"${sample.name}" Dataset</div>
25    <div class="toolFormBody">
26        <div class="form-row">
27            <label>Name:</label>
28            <div style="float: left; width: 250px; margin-right: 10px;">
29                ${sample_dataset.name}
30            </div>
31            <div style="clear: both"></div>
32        </div>
33        <div class="form-row">
34            <label>External service:</label>
35            <div style="float: left; width: 250px; margin-right: 10px;">
36                ${sample_dataset.external_service.name} (${sample_dataset.external_service.get_external_service_type( trans ).name})
37            </div>
38            <div style="clear: both"></div>
39        </div>
40        <div class="form-row">
41            <label>File path:</label>
42            <div style="float: left; width: 250px; margin-right: 10px;">
43                ${sample_dataset.file_path}
44            </div>
45            <div class="toolParamHelp" style="clear: both;">
46                This file is contained in a sub-directory of the data directory configured for the external service.
47            </div>
48            <div style="clear: both"></div>
49        </div>
50        <div class="form-row">
51            <label>Size:</label>
52            <div style="float: left; width: 250px; margin-right: 10px;">
53                ${sample_dataset.size}
54            </div>
55            <div style="clear: both"></div>
56        </div>
57        <div class="form-row">
58            <label>Date this dataset was selected for this sample:</label>
59            <div style="float: left; width: 250px; margin-right: 10px;">
60                ${sample_dataset.create_time}
61            </div>
62            <div style="clear: both"></div>
63        </div>
64        <div class="form-row">
65            <label>Transfer status:</label>
66            <div style="float: left; width: 250px; margin-right: 10px;">
67                ${sample_dataset.status}
68            </div>
69            <div style="clear: both"></div>
70        </div>
71        %if sample_dataset.status == trans.app.model.SampleDataset.transfer_status.ERROR:
72            <div class="form-row">
73                 <label>Transfer error:</label>
74                ${sample_dataset.error_msg}
75            </div>
76            <div style="clear: both"></div>
77        %endif
78    </div>
79</div>