mirror of
https://github.com/lazuscripts/users.git
synced 2024-11-17 03:14:22 +00:00
pure forms!
This commit is contained in:
parent
9164180f1d
commit
e070a0d180
@ -25,6 +25,7 @@ class extends lapis.Application
|
||||
action: @url_for "user_new"
|
||||
method: "POST"
|
||||
enctype: "multipart/form-data"
|
||||
class: "pure-form"
|
||||
}, ->
|
||||
p "Username: "
|
||||
input type: "text", name: "name"
|
||||
@ -70,6 +71,7 @@ class extends lapis.Application
|
||||
action: @url_for "user_edit"
|
||||
method: "POST"
|
||||
enctype: "multipart/form-data"
|
||||
class: "pure-form"
|
||||
}, ->
|
||||
text "Change username? "
|
||||
input type: "text", name: "name", placeholder: user.name
|
||||
@ -80,6 +82,7 @@ class extends lapis.Application
|
||||
action: @url_for "user_edit"
|
||||
method: "POST"
|
||||
enctype: "multipart/form-data"
|
||||
class: "pure-form"
|
||||
}, ->
|
||||
p "Change password?"
|
||||
text "Old password: "
|
||||
@ -95,6 +98,7 @@ class extends lapis.Application
|
||||
action: @url_for "user_edit"
|
||||
method: "POST"
|
||||
enctype: "multipart/form-data"
|
||||
class: "pure-form"
|
||||
onsubmit: "return confirm('Are you sure you want to do this?');"
|
||||
}, ->
|
||||
text "Delete user? "
|
||||
@ -144,6 +148,7 @@ class extends lapis.Application
|
||||
action: @url_for "user_login"
|
||||
method: "POST"
|
||||
enctype: "multipart/form-data"
|
||||
class: "pure-form"
|
||||
}, ->
|
||||
text "Username: "
|
||||
input type: "text", name: "name"
|
||||
|
Loading…
Reference in New Issue
Block a user