Added category pinning

This commit is contained in:
2021-07-07 23:04:25 +02:00
parent a2a5c55d80
commit 8acc8bc44e
3 changed files with 96 additions and 6 deletions
+9 -1
View File
@@ -1,4 +1,12 @@
<div class="todo-category" id="todo-category-{{ MAIN_CATEGORY_ID }}">
<h3>{{ MAIN_CATEGORY_TITLE }}</h3>
<h3>
{{ MAIN_CATEGORY_TITLE }}
<form style="float: right;" class="{{ MAIN_CATEGORY_EXTRA_PIN_BUTTON_CLASS }}" action="./" method="POST">
<input type="hidden" name="action" value="pin" />
<input type="hidden" name="category_name" value="{{ MAIN_CATEGORY_ID }}" />
<input type="submit" value="{{ MAIN_CATEGORY_PIN_OR_UNPIN }}" class="todo-button" />
</form>
</h3>
{{ MAIN_CATEGORY_ITEMS }}
</div>