diff options
author | Aaron Parecki <aaron@parecki.com> | 2023-10-08 10:10:40 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2023-10-08 10:10:40 -0700 |
commit | 17c5d57fd05cb4ee5b0b189bd4cbf519fb636d41 (patch) | |
tree | a082fd06c900860c50b7921434c320dce6565f3e /views/settings.php | |
parent | 88509de125bd382832228cdd2efcf7b259dcab2b (diff) | |
parent | 1c0432939a5381ffe1453e05401ec8e3b2ba4826 (diff) |
Merge branch 'Zegnat-add-weight-posts'
Diffstat (limited to 'views/settings.php')
-rw-r--r-- | views/settings.php | 16 |
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() + }); + }); }); |