main.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {% extends 'base.html' %}
  2. {% block content %}
  3. {% if conf_error %}
  4. <table bgcolor='#d98797'>
  5. <tr>
  6. <td>
  7. {{ conf_error }}
  8. </td>
  9. </tr>
  10. </table>
  11. {% endif %}
  12. <br>
  13. <form class="pure-form pure-form-aligned">
  14. <fieldset>
  15. {% for section in sections %}
  16. <h1>Configuration Section <i>{{ section }}</i></h1>
  17. {% for confval in config[section] %}
  18. <div class="pure-control-group">
  19. <label for="[{{ section }}][{{ confval }}]">{{ confval }}</label>
  20. <input id="[{{ section }}][{{ confval }}]" value="{{ config[section][confval] }}" placeholder="{{ confval }}">
  21. </div>
  22. {% endfor %}
  23. {% endfor %}
  24. </fieldset>
  25. </form>
  26. <button formmethod='post' name='configsend' value='nosave' class="pure-button"><img src='{{ url_for('static', filename='img/nosave.png') }}' width='30px' height='30px'></button>
  27. <button formmethod='post' name='configsend' value='save' class="pure-button"><img src='{{ url_for('static', filename='img/save.png') }}' width='30px' height='30px'></button>
  28. {% endblock %}