main.html 1.5 KB

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