Made the session handle the active list
This commit is contained in:
1 parent
7082dc86fe
commit
a3254343cc
3 files changed
+29
-15
No files matched your search
@@ -1,14 +1,14 @@
|
||||
{% include "header.html" %}
|
||||
|
||||
<body>
|
||||
<h1 class="container" style="text-align: center">{{ data["title"] }}, {{data["username"].title()}}
|
||||
<h1 class="container" style="text-align: center">{{ data["title"] }}, {{data["session"]["username"].title()}}
|
||||
<div class="dropdown">
|
||||
<form action="/" method="get" id="test">
|
||||
<form action="/post" method="post" id="test">
|
||||
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Lists
|
||||
{{data["session"]["active_id"]}}
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenu2">
|
||||
<button class="dropdown-item" type="submit" value="" id="" name="list">All</button>
|
||||
<button class="dropdown-item" type="submit" value="0" id="" name="list">All</button>
|
||||
{% for id, name in data["list_ids"] %}
|
||||
<button class="dropdown-item" type="submit" value="{{id}}" id="{{id}}" name="list">{{name}}</button>
|
||||
{% endfor %}
|
||||
|
||||
Reference in new issue
Block a user