diff options
author | Martijn van der Ven <martijn@vanderven.se> | 2019-10-20 09:30:33 +0200 |
---|---|---|
committer | Martijn van der Ven <martijn@vanderven.se> | 2019-10-20 09:30:33 +0200 |
commit | d6e03455453e83768b53dc23379680f6ef83abca (patch) | |
tree | c19717b1ef0f58211c645dfac0c60f02843ef066 /views/settings.php | |
parent | 6c7a254f6b152b6dc2c68554de2bfb52d9ecdffb (diff) |
Add new weight posting interface
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 3ddbcc5..72028c1 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> @@ -182,6 +193,11 @@ $(function(){ }); + $("#save-weight-unit").click(function(){ + $.post("/settings/save", { + weight_unit: $("#weight-unit").val() + }); + }); }); |