From 4d4a070abc3ce2c769257c7cb0a25c8bb09324bb Mon Sep 17 00:00:00 2001 From: Paul Liverman III Date: Mon, 1 Aug 2016 23:48:23 -0700 Subject: [PATCH] users formsss --- users.moon | 59 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 25 deletions(-) diff --git a/users.moon b/users.moon index 2df2116..d41b5d9 100644 --- a/users.moon +++ b/users.moon @@ -27,13 +27,15 @@ class extends lapis.Application enctype: "multipart/form-data" class: "pure-form" }, -> - p "Username: " - input type: "text", name: "name" - p "Password: " - input type: "password", name: "password" - br! input type: "hidden", name: "csrf_token", value: csrf_token - input type: "submit" + p -> + text "Username: " + input type: "text", name: "name" + p -> + text "Password: " + input type: "password", name: "password" + p -> + input class: "pure-button", type: "submit" POST: => csrf.assert_token @ @@ -73,9 +75,12 @@ class extends lapis.Application enctype: "multipart/form-data" class: "pure-form" }, -> - text "Change username? " - input type: "text", name: "name", placeholder: user.name input type: "hidden", name: "csrf_token", value: csrf_token + p -> + text "Change username? " + input type: "text", name: "name", placeholder: user.name + p -> + input class: "pure-button", type: "submit" hr! form { @@ -84,14 +89,16 @@ class extends lapis.Application enctype: "multipart/form-data" class: "pure-form" }, -> - p "Change password?" - text "Old password: " - input type: "password", name: "oldpassword" - br! - text "New password: " - input type: "password", name: "password" input type: "hidden", name: "csrf_token", value: csrf_token - input type: "submit" + p "Change password?" + p -> + text "Old password: " + input type: "password", name: "oldpassword" + p -> + text "New password: " + input type: "password", name: "password" + p -> + input class: "pure-button", type: "submit" hr! form { @@ -101,10 +108,11 @@ class extends lapis.Application class: "pure-form" onsubmit: "return confirm('Are you sure you want to do this?');" }, -> - text "Delete user? " - input type: "checkbox", name: "delete" input type: "hidden", name: "csrf_token", value: csrf_token - input type: "submit" + p -> + input class: "pure-checkbox", type: "checkbox", name: "delete" + text "Delete user?" + input class: "pure-button", type: "submit" POST: => csrf.assert_token @ @@ -150,14 +158,15 @@ class extends lapis.Application enctype: "multipart/form-data" class: "pure-form" }, -> - text "Username: " - input type: "text", name: "name" - br! - text "Password: " - input type: "password", name: "password" - br! input type: "hidden", name: "csrf_token", value: csrf_token - input type: "submit" + p -> + text "Username: " + input type: "text", name: "name" + p -> + text "Password: " + input type: "password", name: "password" + p -> + input class: "pure-button", type: "submit" POST: => csrf.assert_token @