aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/dbupdate_hidden_fields.html
blob: ccbc299396f2082d5465eadf0c729a08ec759611 (plain)
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
{%macro hidden_fields(filename, filetype):%}

<!-- {{kwargs}}: mostly for accessing the kwargs in macro -->

<input type="hidden" name="filename" value="{{filename}}" />
<input type="hidden" name="filetype" value="{{filetype}}" />
{%if kwargs.get("totallines")%}
<input type="hidden" name="totallines" value="{{kwargs['totallines']}}" />
{%endif%}
{%if kwargs.get("species"):%}
<input type="hidden" name="species" value="{{kwargs['species']}}" />
{%endif%}
{%if kwargs.get("genechipid"):%}
<input type="hidden" name="genechipid" value="{{kwargs['genechipid']}}" />
{%endif%}
{%if kwargs.get("inbredsetid"):%}
<input type="hidden" name="inbredsetid" value="{{kwargs['inbredsetid']}}" />
{%endif%}
{%if kwargs.get("tissueid"):%}
<input type="hidden" name="tissueid" value="{{kwargs['tissueid']}}" />
{%endif%}
{%if kwargs.get("studyid"):%}
<input type="hidden" name="studyid" value="{{kwargs['studyid']}}" />
{%endif%}
{%if kwargs.get("datasetid"):%}
<input type="hidden" name="datasetid" value="{{kwargs['datasetid']}}" />
{%endif%}

{%endmacro%}