-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(webui): edit character inventory
- Loading branch information
1 parent
000728c
commit bb7b68a
Showing
6 changed files
with
230 additions
and
27 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
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
31 changes: 31 additions & 0 deletions
31
...alentina/webui/blueprints/character_edit/templates/character_edit/InventoryItemForm.jinja
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,31 @@ | ||
{# def | ||
form:QuartForm, | ||
join_label:bool = False, | ||
floating_label:bool = False, | ||
post_url:str = "", | ||
character:Character, | ||
#} | ||
|
||
<div class="d-flex justify-content-center align-items-center my-3"> | ||
<div class="py-4 px-5 mt-5 rounded-3 border shadow-lg w-50" | ||
id="form-container"> | ||
<form method="post" | ||
id="profile-form" | ||
hx-post="{{ post_url }}" | ||
novalidate | ||
hx-indicator="#spinner" | ||
hx-target="#inventory" | ||
hx-swap="innerHTML" | ||
encoding="application/x-www-form-urlencoded"> | ||
<global.WTFormElements form={{ form }} join_label={{ join_label }} floating_label={{ floating_label }} /> | ||
|
||
<button class="btn btn-outline-secondary ms-2" | ||
hx-target="#main-content" | ||
hx-swap="innerHTML" | ||
hx-trigger="click" | ||
hx-get="{{ url_for('character_view.view', character_id=character.id, tab='inventory', info_msg='Cancelled') }}"> | ||
Cancel | ||
</button> | ||
</form> | ||
</div> | ||
</div> |
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