summaryrefslogtreecommitdiff
path: root/views/settings.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2023-10-08 10:10:13 -0700
committerAaron Parecki <aaron@parecki.com>2023-10-08 10:10:13 -0700
commit1c0432939a5381ffe1453e05401ec8e3b2ba4826 (patch)
treea082fd06c900860c50b7921434c320dce6565f3e /views/settings.php
parent88509de125bd382832228cdd2efcf7b259dcab2b (diff)
parentd6e03455453e83768b53dc23379680f6ef83abca (diff)
Merge branch 'add-weight-posts' of github.com:Zegnat/Quill into Zegnat-add-weight-posts
# Conflicts: # controllers/controllers.php # schema/migrations/0011.sql
Diffstat (limited to 'views/settings.php')
-rw-r--r--views/settings.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/views/settings.php b/views/settings.php
index 55cbd17..f51e69c 100644
--- a/views/settings.php
+++ b/views/settings.php
@@ -61,6 +61,17 @@
</tr>
</table>
+ <h3>Post Format Settings</h3>
+ <table class="table table-condensed" width="100%">
+ <tr>
+ <td>Weight Unit</td>
+ <td width="160">
+ <div style="margin-bottom:4px;"><input type="text" id="weight-unit" value="<?= $this->user->weight_unit ?>" class="form-control"></div>
+ <div><input type="button" class="btn btn-primary" value="Save" id="save-weight-unit"></div>
+ </td>
+ <td>The unit to be used for <a href="/weight">weight posts</a>.</td>
+ </tr>
+ </table>
<h3>Syndication Targets</h3>
@@ -206,6 +217,11 @@ $(function(){
});
+ $("#save-weight-unit").click(function(){
+ $.post("/settings/save", {
+ weight_unit: $("#weight-unit").val()
+ });
+ });
});