14 lines
325 B
HTML
14 lines
325 B
HTML
@use crate::Button;
|
|
@use super::button_inner;
|
|
|
|
@(button: &Button)
|
|
|
|
@if let Some(action) = button.action.as_ref() {
|
|
<form class="@button.class_string()" method="POST" action="@action">
|
|
@:button_inner(button)
|
|
</form>
|
|
} else {
|
|
<div class="@button.class_string()">
|
|
@:button_inner(button)
|
|
</div>
|
|
}
|