-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add perk fulfillment toggle to Admin UI
- Loading branch information
1 parent
5964b7a
commit baec179
Showing
4 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
microsetta_interface/templates/admin_perk_fulfillment_state.jinja2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends "sitebase.jinja2" %} | ||
{% set page_title = _("Perk Fulfillment State") %} | ||
{% set show_breadcrumbs = False %} | ||
{% block content %} | ||
<div class="container"> | ||
Current state of perk_fulfillment_active setting: {{ pf_state }} | ||
|
||
<hr /> | ||
|
||
<form action="/admin/perk_fulfillment_state?perk_fulfillment_state={{ not pf_state }}" method="post"> | ||
<input type="submit" value="Switch perk_fulfillment_active to {{ not pf_state }}" /> | ||
</form> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters