pict-rs-aggregator/templates/index.rs.html

28 lines
728 B
HTML

@use crate::{ui::ButtonKind, State};
@use super::{layout, text_area, text_input, button};
@(state: &State)
@:layout(state, "Collection", None, {}, {
<section>
<article>
<form method="POST" action="@state.create_collection_path()">
<div class="content-group">
<h3>
<legend>Create Collection</legend>
</h3>
</div>
<div class="content-group">
@:text_input("title", Some("Title"), None, false)
@:text_area("description", Some("Description"), None, false)
</div>
<div class="content-group">
<div class="button-group">
@:button("Create Collection", ButtonKind::Submit)
</div>
</div>
</form>
</article>
</section>
})