Move form to cardbody instead of classing

This commit is contained in:
Christoph Kluge 2025-06-06 16:17:42 +02:00
parent f946e7e6ab
commit c22d869aa7

View File

@ -3,7 +3,7 @@
--> -->
<script> <script>
import { Row, Col, Card, CardTitle, Button} from "@sveltestrap/sveltestrap"; import { Row, Col, Card, CardTitle, CardBody, Button} from "@sveltestrap/sveltestrap";
import { fade } from "svelte/transition"; import { fade } from "svelte/transition";
export let config; export let config;
@ -43,9 +43,7 @@
<Col> <Col>
<Card class="h-100"> <Card class="h-100">
<!-- Svelte 'class' directive only on DOMs directly, normal 'class="xxx"' does not work, so style-array it is. --> <!-- Svelte 'class' directive only on DOMs directly, normal 'class="xxx"' does not work, so style-array it is. -->
<CardTitle <CardTitle class="m-3 d-flex align-items-center">
style="margin-bottom: 1em; display: flex; align-items: center;"
>
<div>Node List Paging Type</div> <div>Node List Paging Type</div>
{#if displayMessage && message.target == "npag"}<div {#if displayMessage && message.target == "npag"}<div
style="margin-left: auto; font-size: 0.9em;" style="margin-left: auto; font-size: 0.9em;"
@ -55,11 +53,11 @@
> >
</div>{/if} </div>{/if}
</CardTitle> </CardTitle>
<CardBody>
<form <form
id="node-paging-form" id="node-paging-form"
method="post" method="post"
action="/frontend/configuration/" action="/frontend/configuration/"
class="card-body"
on:submit|preventDefault={() => handleSettingSubmit("#node-paging-form", "npag")}> on:submit|preventDefault={() => handleSettingSubmit("#node-paging-form", "npag")}>
<input type="hidden" name="key" value="node_list_usePaging" /> <input type="hidden" name="key" value="node_list_usePaging" />
<div class="mb-3"> <div class="mb-3">
@ -82,6 +80,7 @@
</div> </div>
<Button color="primary" type="submit">Submit</Button> <Button color="primary" type="submit">Submit</Button>
</form> </form>
</CardBody>
</Card> </Card>
</Col> </Col>
</Row> </Row>