shopping order sort. maybe needs some fine tuning

This commit is contained in:
ville rantanen
2017-07-04 09:50:54 +03:00
parent 96c35d836d
commit 57abc49f1b
2 changed files with 43 additions and 7 deletions

View File

@@ -52,9 +52,9 @@
<form action="{{ url_for('sort_flip') }}" method=post>
<input type=hidden name=shopid value="{{ shopid }}">
{% if autosort %}
<input class=submit type=submit name=toggleAll value="Autosort: On">
<input class=submit type=submit name=toggleAll value="Auto order: On">
{% else %}
<input class=submit type=submit name=toggleAll value="Autosort: Off">
<input class=submit type=submit name=toggleAll value="Auto order: Off">
{% endif %}
</form>
</span>
@@ -99,6 +99,6 @@
<dl><input type=hidden name=shopid value={{ shopid }}><input class="submit notify" type=submit value=Delete onclick="return confirm('Do you really want to remove shop {{ shop }}?');">
</dl></form>
{% if autosort %}
<script language=javascript>sortMarkdown();</script>
<script language=javascript>sortMarkdown(boughtOrder=true);</script>
{% endif %}
{% endblock %}