From d6e03455453e83768b53dc23379680f6ef83abca Mon Sep 17 00:00:00 2001 From: Martijn van der Ven Date: Sun, 20 Oct 2019 09:30:33 +0200 Subject: Add new weight posting interface --- views/dashboard.php | 3 +++ views/new-weight.php | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ views/settings.php | 16 ++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 views/new-weight.php (limited to 'views') diff --git a/views/dashboard.php b/views/dashboard.php index 7b8af63..e2b5963 100644 --- a/views/dashboard.php +++ b/views/dashboard.php @@ -18,6 +18,9 @@ user, 'like')): ?>
  • 👍
  • + user, 'weight')): ?> +
  • ⚖️
  • + user, 'repost')): ?>
  • diff --git a/views/new-weight.php b/views/new-weight.php new file mode 100644 index 0000000..36e68ae --- /dev/null +++ b/views/new-weight.php @@ -0,0 +1,52 @@ +
    + + +
    + + +
    + +
    + +
    + + +
    + +
    + +
    +
    + +
    + +
    + 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 @@ +

    Post Format Settings

    + + + + + + +
    Weight Unit +
    +
    +
    The unit to be used for weight posts.

    Syndication Targets

    @@ -182,6 +193,11 @@ $(function(){ }); + $("#save-weight-unit").click(function(){ + $.post("/settings/save", { + weight_unit: $("#weight-unit").val() + }); + }); }); -- cgit v1.2.3