hyaenidae/server/templates/profiles/create/bio.rs.html

32 lines
1.3 KiB
HTML
Raw Normal View History

2021-01-06 08:21:37 +00:00
@use crate::{templates::{layout, profiles::view}, profiles::Profile};
@use hyaenidae_toolkit::{templates::{button_group, card, card_body, text_input}, Button, Card, TextInput};
@(display_name_input: &TextInput, description_input: &TextInput, profile: &Profile)
@:layout("Create Profile", "Create a new profile on Hyaenidae", {}, {
@:card(&Card::full_width().classes(&["account-page"]), { Create a Bio }, {
<form method="POST" action="/profiles/create/bio">
@:card_body({
<p>
This is where you can talk a bit about yourself. the Display Name is the name
that will be featured on your profile page, and the Description will appear
underneath it.
</p>
@:text_input(display_name_input)
@:text_input(description_input)
})
@:card_body({
@:button_group(&[
&Button::primary("Next"),
Button::primary_outline("Skip").href("/profiles/create/icon"),
Button::primary_outline("Skip All").href("/profiles/create/done"),
])
})
</form>
})
@:card(&Card::full_width().classes(&["account-page"]), { Preview }, {
@:view("", profile)
2021-01-06 08:21:37 +00:00
})
})