PageRenderTime 12ms CodeModel.GetById 10ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/tracks/index.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 38 lines | 37 code | 1 blank | 0 comment | 0 complexity | 02167db3e2da0010e6d85beef3244405 MD5 | raw file
 1<form id="form" method="POST">
 2    <div class="form-row">
 3        <label for="dbkey">Browser name:</label>
 4        <div class="form-row-input">
 5            <input type="text" name="title" id="title" value="Unnamed Browser"></input>
 6        </div>
 7        <div style="clear: both;"></div>
 8    </div>
 9    <div class="form-row">
10        <label for="dbkey">Reference genome build (dbkey): </label>
11        <div class="form-row-input">
12            <select name="dbkey" id="dbkey" refresh_on_change="true">
13                %for tmp_dbkey in dbkey_set:
14                <option value="${tmp_dbkey}"
15                %if tmp_dbkey == dbkey:
16                selected="selected"
17                %endif
18                >${tmp_dbkey}</option>
19                %endfor
20            </select>
21        </div>
22        <div style="clear: both;"></div>
23    </div>
24    <div class="form-row">
25        <label for="dataset_ids">Datasets to visualize: (${", ".join(available_tracks)} files are supported)</label>
26        %for dataset_id, (dataset_ext, dataset_name) in datasets.iteritems():
27        <div>
28            <input type="checkbox" id="${dataset_id}" name="dataset_ids" value="${dataset_id}" />
29            <label style="display:inline; font-weight: normal" for="${dataset_id}">[${dataset_ext}] ${dataset_name}</label>
30        </div>
31        %endfor
32
33        <div style="clear: both;"></div>
34    </div>
35    <div class="form-row">
36        <input type="submit" name="browse" value="Browse"/>
37    </div>
38</form>