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

26 lines
792 B
HTML
Raw Normal View History

2020-12-08 21:59:55 +00:00
@use crate::{ui::ButtonKind, State};
@use super::{layout, text_area, text_input, button};
@(state: &State)
@:layout(state, "Collection", None, {}, {
2020-12-08 21:59:55 +00:00
<section>
<article>
<form method="POST" action="@state.create_collection_path()">
2020-12-08 21:59:55 +00:00
<div class="content-group">
<h3><legend>Create Collection</legend></h3>
2020-12-08 21:59:55 +00:00
</div>
<div class="content-group">
@:text_input("title", Some("Title"), None)
@:text_area("description", Some("Description"), None)
</div>
<div class="content-group">
<div class="button-group">
@:button("Create Collection", ButtonKind::Submit)
2020-12-14 20:23:02 +00:00
</div>
2020-12-08 21:59:55 +00:00
</div>
</form>
</article>
</section>
})