mirror of
https://github.com/lazuscripts/users.git
synced 2024-11-17 03:14:22 +00:00
users formsss
This commit is contained in:
parent
e070a0d180
commit
4d4a070abc
43
users.moon
43
users.moon
@ -27,13 +27,15 @@ class extends lapis.Application
|
|||||||
enctype: "multipart/form-data"
|
enctype: "multipart/form-data"
|
||||||
class: "pure-form"
|
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: "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: =>
|
POST: =>
|
||||||
csrf.assert_token @
|
csrf.assert_token @
|
||||||
@ -73,9 +75,12 @@ class extends lapis.Application
|
|||||||
enctype: "multipart/form-data"
|
enctype: "multipart/form-data"
|
||||||
class: "pure-form"
|
class: "pure-form"
|
||||||
}, ->
|
}, ->
|
||||||
|
input type: "hidden", name: "csrf_token", value: csrf_token
|
||||||
|
p ->
|
||||||
text "Change username? "
|
text "Change username? "
|
||||||
input type: "text", name: "name", placeholder: user.name
|
input type: "text", name: "name", placeholder: user.name
|
||||||
input type: "hidden", name: "csrf_token", value: csrf_token
|
p ->
|
||||||
|
input class: "pure-button", type: "submit"
|
||||||
hr!
|
hr!
|
||||||
|
|
||||||
form {
|
form {
|
||||||
@ -84,14 +89,16 @@ class extends lapis.Application
|
|||||||
enctype: "multipart/form-data"
|
enctype: "multipart/form-data"
|
||||||
class: "pure-form"
|
class: "pure-form"
|
||||||
}, ->
|
}, ->
|
||||||
|
input type: "hidden", name: "csrf_token", value: csrf_token
|
||||||
p "Change password?"
|
p "Change password?"
|
||||||
|
p ->
|
||||||
text "Old password: "
|
text "Old password: "
|
||||||
input type: "password", name: "oldpassword"
|
input type: "password", name: "oldpassword"
|
||||||
br!
|
p ->
|
||||||
text "New password: "
|
text "New password: "
|
||||||
input type: "password", name: "password"
|
input type: "password", name: "password"
|
||||||
input type: "hidden", name: "csrf_token", value: csrf_token
|
p ->
|
||||||
input type: "submit"
|
input class: "pure-button", type: "submit"
|
||||||
hr!
|
hr!
|
||||||
|
|
||||||
form {
|
form {
|
||||||
@ -101,10 +108,11 @@ class extends lapis.Application
|
|||||||
class: "pure-form"
|
class: "pure-form"
|
||||||
onsubmit: "return confirm('Are you sure you want to do this?');"
|
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: "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: =>
|
POST: =>
|
||||||
csrf.assert_token @
|
csrf.assert_token @
|
||||||
@ -150,14 +158,15 @@ class extends lapis.Application
|
|||||||
enctype: "multipart/form-data"
|
enctype: "multipart/form-data"
|
||||||
class: "pure-form"
|
class: "pure-form"
|
||||||
}, ->
|
}, ->
|
||||||
|
input type: "hidden", name: "csrf_token", value: csrf_token
|
||||||
|
p ->
|
||||||
text "Username: "
|
text "Username: "
|
||||||
input type: "text", name: "name"
|
input type: "text", name: "name"
|
||||||
br!
|
p ->
|
||||||
text "Password: "
|
text "Password: "
|
||||||
input type: "password", name: "password"
|
input type: "password", name: "password"
|
||||||
br!
|
p ->
|
||||||
input type: "hidden", name: "csrf_token", value: csrf_token
|
input class: "pure-button", type: "submit"
|
||||||
input type: "submit"
|
|
||||||
|
|
||||||
POST: =>
|
POST: =>
|
||||||
csrf.assert_token @
|
csrf.assert_token @
|
||||||
|
Loading…
Reference in New Issue
Block a user