mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-21 13:24:16 +00:00
69 lines
4.1 KiB
HTML
69 lines
4.1 KiB
HTML
<modals:>
|
|
{{#if _loggedIn}}
|
|
<app:modals:modal modalId="reset-modal" header="Reset">
|
|
<p>This resets your entire account - your tasks will be deleted and your character will start over.</p>
|
|
<p>This is highly discouraged because you'll lose historical data, which is useful for graphing your progress over time. However, some people find it useful in the beginning after playing with the app for a while.</p>
|
|
<@footer>
|
|
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
|
|
<button data-dismiss="modal" x-bind=click:reset class="btn btn-danger">Reset</button>
|
|
</@footer>
|
|
</app:modals:modal>
|
|
|
|
<app:modals:modal modalId="restore-modal" header="Restore">
|
|
<p>HabitRPG is quite Beta-quality at present, and many find they need to restore character attributes as a result. Enter your numbers here and it will be applied automatically to your character. This will be removed once Habit is more stable.</p>
|
|
|
|
{#with _user}
|
|
<form id='restore-form' class="form-horizontal restore-options">
|
|
<h3>Stats</h3>
|
|
<div class="option-group option-medium">
|
|
<input class="option-content" type="number" data-for='stats.hp' value="{{.stats.hp}}">
|
|
<span class="input-suffix">HP</span>
|
|
</div>
|
|
<div class="option-group option-medium">
|
|
<input class="option-content" type="number" data-for='stats.exp' value="{{.stats.exp}}">
|
|
<span class="input-suffix">Exp</span>
|
|
</div>
|
|
<div class="option-group option-medium">
|
|
<input class="option-content" type="number" data-for='stats.gp' value="{{.stats.gp}}">
|
|
<span class="input-suffix">GP</span>
|
|
</div>
|
|
<div class="option-group option-medium">
|
|
<input class="option-content" type="number" data-for='stats.lvl' value="{{.stats.lvl}}">
|
|
<span class="input-suffix">Level</span>
|
|
</div>
|
|
|
|
<h3>Items</h3>
|
|
<div class="option-group option-medium">
|
|
<input class="option-content" type="number" data-for='items.weapon' value="{{.items.weapon}}">
|
|
<span class="input-suffix">Weapon</span>
|
|
</div>
|
|
<div class="option-group option-medium">
|
|
<input class="option-content" type="number" data-for='items.armor' value="{{.items.armor}}">
|
|
<span class="input-suffix">Armor</span>
|
|
</div>
|
|
<div class="option-group option-medium">
|
|
<input class="option-content" type="number" data-for='items.head' value="{{.items.head}}">
|
|
<span class="input-suffix">Helm</span>
|
|
</div>
|
|
<div class="option-group option-medium">
|
|
<input class="option-content" type="number" data-for='items.shield' value="{{.items.shield}}">
|
|
<span class="input-suffix">Shield</span>
|
|
</div>
|
|
|
|
</form>
|
|
{/}
|
|
|
|
<@footer>
|
|
<button class="btn" x-bind="click:restoreSave" data-dismiss="modal" aria-hidden="true">Save & Close</button>
|
|
</@footer>
|
|
</app:modals:modal>
|
|
|
|
<app:modals:modal modalId="delete-modal" header="Delete Account">
|
|
<p>Woa woa woa! Are you sure? This will seriously delete your account forever, and it can never be restored. If you're absolutely certain, type <strong>DELETE</strong> into the text-box below.</p>
|
|
<p><input type="text" value="{_deleteAccount}" /></p>
|
|
<@footer>
|
|
<button class="btn btn-large" data-dismiss="modal" aria-hidden="true">Cancel</button>
|
|
<button data-dismiss="modal" x-bind="click:deleteAccount" class="btn btn-danger btn-small {#unless equal(_deleteAccount,'DELETE')}disabled{/}">Delete Account</button>
|
|
</@footer>
|
|
</app:modals:modal>
|
|
{{/}}
|