Created
November 6, 2023 07:34
-
-
Save mleonhard/68e0b2ba5467f84b099e999bc5ca5db3 to your computer and use it in GitHub Desktop.
new_account.applin.jbuilder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
json.page Applin::nav_page(title: "New Account") { | |
Applin::scroll { | |
Applin::form(widgets: [ | |
Applin::textfield( | |
label: "Username", var_name: "username"), | |
Applin::nav_button( | |
text: "Terms", | |
actions: [Applin::push("/terms")], | |
), | |
Applin::nav_button( | |
text: "Privacy", | |
actions: [Applin::push("/privacy")], | |
), | |
Applin::checkbox( | |
text: "I agree", | |
var_name: "agree", | |
), | |
Applin::form_button( | |
text: "Create Account", | |
actions: [ | |
Applin::rpc("/create_account"), | |
Applin::replace_all("/"), | |
], | |
), | |
]) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment