2020-12-08 21:59:55 +00:00
|
|
|
@use crate::{ui::ButtonKind, State};
|
2023-01-29 19:51:04 +00:00
|
|
|
@use super::{layout_html, text_area_html, text_input_html, button_html};
|
2020-12-08 21:59:55 +00:00
|
|
|
|
|
|
|
@(state: &State)
|
|
|
|
|
2023-01-29 19:51:04 +00:00
|
|
|
@:layout_html(state, "Collection", None, {}, {
|
2020-12-08 21:59:55 +00:00
|
|
|
<section>
|
2022-06-21 15:44:39 +00:00
|
|
|
<article>
|
|
|
|
<form method="POST" action="@state.create_collection_path()">
|
|
|
|
<div class="content-group">
|
|
|
|
<h3>
|
|
|
|
<legend>Create Collection</legend>
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="content-group">
|
2023-01-29 19:51:04 +00:00
|
|
|
@:text_input_html("title", Some("Title"), None, false)
|
|
|
|
@:text_area_html("description", Some("Description"), None, false)
|
2022-06-21 15:44:39 +00:00
|
|
|
</div>
|
|
|
|
<div class="content-group">
|
|
|
|
<div class="button-group">
|
2023-01-29 19:51:04 +00:00
|
|
|
@:button_html("Create Collection", ButtonKind::Submit)
|
2022-06-21 15:44:39 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</article>
|
2020-12-08 21:59:55 +00:00
|
|
|
</section>
|
|
|
|
})
|