We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a9b54 commit 7037011Copy full SHA for 7037011
templates/index.html
@@ -59,6 +59,15 @@ <h1>Flask User Level XP System</h1>
59
<input type="hidden" name="amount" value="10" />
60
<button type="submit">Add 10 XP</button>
61
</form>
62
+ {% endif %} {% if user.level >= 15 %}<!--show if user has reached level 15-->
63
+ <form
64
+ action="{{ url_for('add_xp', user_id=user.id, amount=15) }}"
65
+ method="post"
66
+ >
67
+ <!--form to add XP-->
68
+ <input type="hidden" name="amount" value="15" />
69
+ <button type="submit">Add 15 XP</button>
70
+ </form>
71
{% endif %} {% if user.level >= 20 %}<!--show if user has reached level 20-->
72
<form
73
action="{{ url_for('add_xp', user_id=user.id, amount=20) }}"
0 commit comments