/
header.html
72 lines (70 loc) · 3.48 KB
/
header.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{% block content %}
<form action="{{ url_for('sample_comment') }}" method="post">
<div class="vertical-center">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Sample: {{sample.sample_id}}</h1>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
<h5>Info Box</h5>
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-bordered ">
<tr>
<td><strong>Batch:</strong></td>
<td><a href={{ url_for('batch', batch_id=batch.batch_id) }}>{{ batch.batch_id }}</a></td>
<td><strong># QCFlags:</strong></td>
<td>{{ sample.QCFlag}}</td>
</tr>
<tr>
<td><strong>Sequencing Date:</strong></td>
<td>{{batch.date }} </td>
<td><strong>Sex (NCV-classified):</strong></td>
<td>{{NCV_sex}}</td>
</tr>
<tr>
<td><strong>Sample Type:</strong></td>
<td>{{sample.SampleType}}</td>
<td><strong>Abn (NCV-classified):</strong></td>
<td>{{NCV_warn}}</td>
</tr>
<tr>
<td><strong>NonExcludedSites:</strong></td>
<td>{{ sample.NonExcludedSites}}</td>
<td><strong>Included in Validation Data Set:</strong></td>
<td>{{sample.include}}</td>
</tr>
</table>
</div>
</div>
</div>
{% if current_user.role=='RW' %}
<div class="form-group">
<textarea class="form-control" rows="2" name = "comment">{{sample.comment}}</textarea>
</div>
<td>
<input type=text name="form_id" value="set_sample_comment" hidden>
<input type=text name="sample_id" value="{{sample.sample_id}}" hidden>
</td>
<td>
<p align="right">
<input type="submit" class="btn btn-warning" value="Save comment">
</p>
</td>
{% else %}
<div class="panel panel-default">
<div class="panel-heading">Comment</div>
<div class="panel-body">{{sample.comment}}</div>
</div>
{% endif %}
</div>
</div>
</div>
</form>
{% endblock %}