aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/preferences_form.php
diff options
context:
space:
mode:
authorwinter2025-03-16 00:53:52 +0000
committerwinter2025-03-16 00:53:52 +0000
commit145b5db9474e32ca3430fe35eaa7498d7f26ff95 (patch)
treedf1da516a05cd382e19a815d4e7e6bee314e3007 /templates/preferences_form.php
parenta0a86c3a98a6af158ecd2f1923feb752c82907db (diff)
implement poking and such
Diffstat (limited to 'templates/preferences_form.php')
-rw-r--r--templates/preferences_form.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/preferences_form.php b/templates/preferences_form.php
index d1694eb..afd487b 100644
--- a/templates/preferences_form.php
+++ b/templates/preferences_form.php
@@ -15,14 +15,15 @@ function _user_pref(string $id, mixed $value, string $type) {
}
?>
-<form class="settings" method="post" action="/todo" hx-post="/fragment/preferences" hx-disabled-elt="find button"
- hx-swap="outerHTML">
+<form class="settings" method="post" action="/todo" hx-post="/fragment/preferences"
+ hx-disabled-elt="find <button[type='submit']/>" hx-swap="outerHTML">
<?php
_user_pref('requestToFollow', $user->actor->requestToFollow, 'boolean');
_user_pref('smallIndicators', $settings->getBool('interface.smallUnreadIndicators'), 'boolean');
_user_pref('timezone', $settings->get('locale.timezone'), 'timezone');
_user_pref('rssEnabled', $settings->getBool('profile.rssEnabled'), 'boolean');
+ _user_pref('pokeable', $user->actor->isPokeable(), 'boolean');
?>
<div class="row">
@@ -31,7 +32,7 @@ function _user_pref(string $id, mixed $value, string $type) {
<span class="temporaryIndicator"><?= __('form.saved') ?></span>
<?php endif; ?>
</div>
- <button class="primary"><?= __('form.saveChanges') ?></button>
+ <button class="primary" type="submit"><?= __('form.saveChanges') ?></button>
</div>
</form> \ No newline at end of file