lyadmin/templates/req.html

30 lines
633 B
HTML
Raw Permalink Normal View History

{%extends "main_layout.html"%}
2020-11-22 01:24:41 -05:00
{%block content%}
<p>
2020-11-22 02:42:56 -05:00
<form action="/req/signup" method="post">
2020-11-22 01:24:41 -05:00
<table>
{% for key, value in req_tab.items() %}
2020-11-22 02:42:56 -05:00
<tr><td>{{ key }}</td><td>
{%if value.w_type != "choice" %}
<{{ widg_fun(value) }}></{{value.w_type}}>
{%elif value.w_type == "choice" %}
<select id="id_{{value.w_name}}" name="{{value.w_name}}" required="">
{% for opt in value.w_opt %}
<option value="{{opt[0]}}">{{opt[1]}}</option>
{% endfor %}
</select>
{% endif %}
</td></tr>
2020-11-22 01:24:41 -05:00
{% endfor %}
2020-11-22 02:42:56 -05:00
<tr><td><input type="submit" value="sign up"></td></tr>
2020-11-22 01:24:41 -05:00
</table>
2020-11-22 02:42:56 -05:00
</form>
2020-11-22 01:24:41 -05:00
</p>
<p>
2020-11-22 02:42:56 -05:00
2020-11-22 01:24:41 -05:00
{%endblock%}