Skip to content

Instantly share code, notes, and snippets.

@mleonhard
Created November 6, 2023 07:34
Show Gist options
  • Save mleonhard/68e0b2ba5467f84b099e999bc5ca5db3 to your computer and use it in GitHub Desktop.
Save mleonhard/68e0b2ba5467f84b099e999bc5ca5db3 to your computer and use it in GitHub Desktop.
new_account.applin.jbuilder
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