forked from mirrors/thatmattlove-hyperglass
rename index template to form
This commit is contained in:
parent
a16b4c55a9
commit
1984f0a48b
2 changed files with 5 additions and 4 deletions
|
|
@ -171,7 +171,7 @@ async def clear_cache():
|
|||
@limiter.limit(rate_limit_site, error_message="Site")
|
||||
async def site(request):
|
||||
"""Main front-end web application"""
|
||||
return response.html(render_html("index", primary_asn=params.general.primary_asn))
|
||||
return response.html(render_html("form", primary_asn=params.general.primary_asn))
|
||||
|
||||
|
||||
@app.route("/test", methods=["GET"])
|
||||
|
|
|
|||
|
|
@ -17,9 +17,10 @@
|
|||
{% for (netname, loc_params) in networks.items() %}
|
||||
<optgroup label="{{ netname }}">
|
||||
{% for param in loc_params %}
|
||||
<option data-tokens='{{ netname }} {{param["hostname"]}}' value='{{param["hostname"]}}'
|
||||
data-display-name='{{param["display_name"]}}' data-netname="{{ netname }}" id='{{param["hostname"]}}'>
|
||||
{{ param["display_name"] }}</option>
|
||||
<option id='{{ param.hostname }}' value='{{ param.hostname }}'
|
||||
data-tokens='{{ netname }} {{param.hostname}}' data-display-name="{{ param.display_name }}"
|
||||
data-netname="{{ netname }}">
|
||||
{{ param.display_name }}</option>
|
||||
{% endfor %}
|
||||
</optgroup>
|
||||
{% endfor %}
|
||||
Loading…
Add table
Reference in a new issue