1 | <form id="new-browser-form" action="javascript:void(0);" method="post" onsubmit="return false;"> |
---|
2 | <div class="form-row"> |
---|
3 | <label for="new-title">Browser name:</label> |
---|
4 | <div class="form-row-input"> |
---|
5 | <input type="text" name="title" id="new-title" value="Unnamed"></input> |
---|
6 | </div> |
---|
7 | <div style="clear: both;"></div> |
---|
8 | </div> |
---|
9 | <div class="form-row"> |
---|
10 | <label for="new-dbkey">Reference genome build (dbkey): </label> |
---|
11 | <div class="form-row-input"> |
---|
12 | <select name="dbkey" id="new-dbkey"> |
---|
13 | %for dbkey in dbkeys: |
---|
14 | <option value="${dbkey[1]}">${dbkey[0]}</option> |
---|
15 | %endfor |
---|
16 | </select> |
---|
17 | </div> |
---|
18 | <div style="clear: both;"></div> |
---|
19 | </div> |
---|
20 | <div class="form-row"> |
---|
21 | Is your build not listed here? |
---|
22 | <a href="${h.url_for( controller='user', action='dbkeys', panels=True )}">Add a Custom Build</a> |
---|
23 | </div> |
---|
24 | %if default_dbkey is not None: |
---|
25 | <script type="text/javascript"> |
---|
26 | console.log("${default_dbkey}"); |
---|
27 | $("#new-dbkey option[value='${default_dbkey}']").attr("selected", true); |
---|
28 | </script> |
---|
29 | %endif |
---|
30 | </form> |
---|