scripts and tools to administer the lingy.in public unix / tilde
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
633B

  1. {%extends "main_layout.html"%}
  2. {%block content%}
  3. <p>
  4. <form action="/req/signup" method="post">
  5. <table>
  6. {% for key, value in req_tab.items() %}
  7. <tr><td>{{ key }}</td><td>
  8. {%if value.w_type != "choice" %}
  9. <{{ widg_fun(value) }}></{{value.w_type}}>
  10. {%elif value.w_type == "choice" %}
  11. <select id="id_{{value.w_name}}" name="{{value.w_name}}" required="">
  12. {% for opt in value.w_opt %}
  13. <option value="{{opt[0]}}">{{opt[1]}}</option>
  14. {% endfor %}
  15. </select>
  16. {% endif %}
  17. </td></tr>
  18. {% endfor %}
  19. <tr><td><input type="submit" value="sign up"></td></tr>
  20. </table>
  21. </form>
  22. </p>
  23. <p>
  24. {%endblock%}