main.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <center>
  14. <form class="pure-form pure-form-aligned">
  15. <fieldset>
  16. {% for section in sections %}
  17. <h1>Configuration Section <i>{{ section }}</i></h1>
  18. {% for confval in config[section] %}
  19. <div class="pure-control-group">
  20. <label for="[{{ section }}][{{ confval }}]">{{ confval }}</label>
  21. <input id="[{{ section }}][{{ confval }}]" value="{{ config[section][confval] }}" placeholder="{{ confval }}">
  22. </div>
  23. {% endfor %}
  24. {% endfor %}
  25. </fieldset>
  26. </form>
  27. <button formmethod='post' name='configsend' value='nosave' class="pure-button"><img src='{{ url_for('static', filename='img/nosave.png') }}' width='30px' height='30px'></button>
  28. <button formmethod='post' name='configsend' value='save' class="pure-button"><img src='{{ url_for('static', filename='img/save.png') }}' width='30px' height='30px'></button>
  29. </center>
  30. {% endblock %}