reordered number settings for consistency with the other fields
This commit is contained in:
File diff suppressed because one or more lines are too long
2
ui/dist/index.html
vendored
2
ui/dist/index.html
vendored
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<!-- prism -->
|
<!-- prism -->
|
||||||
<script src="./libs/prism/prism.js" data-manual></script>
|
<script src="./libs/prism/prism.js" data-manual></script>
|
||||||
<script type="module" crossorigin src="./assets/index-Un2FA106.js"></script>
|
<script type="module" crossorigin src="./assets/index-DutYB2pz.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="./assets/pocketbase.es-B_4DUNUU.js">
|
<link rel="modulepreload" crossorigin href="./assets/pocketbase.es-B_4DUNUU.js">
|
||||||
<link rel="stylesheet" crossorigin href="./assets/index-BiRi5YY3.css">
|
<link rel="stylesheet" crossorigin href="./assets/index-BiRi5YY3.css">
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -69,25 +69,6 @@ export function settings(data) {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
footer: () => [
|
footer: () => [
|
||||||
t.div(
|
|
||||||
{ className: "field" },
|
|
||||||
t.input({
|
|
||||||
className: "sm",
|
|
||||||
type: "checkbox",
|
|
||||||
id: uniqueId + ".onlyInt",
|
|
||||||
name: () => `fields.${data.fieldIndex}.onlyInt`,
|
|
||||||
checked: () => !!data.field.onlyInt,
|
|
||||||
onchange: (e) => (data.field.onlyInt = e.target.checked),
|
|
||||||
}),
|
|
||||||
t.label(
|
|
||||||
{ htmlFor: uniqueId + ".onlyInt" },
|
|
||||||
t.span({ className: "txt" }, "No decimals"),
|
|
||||||
t.i({
|
|
||||||
className: "ri-information-line link-hint",
|
|
||||||
ariaDescription: app.attrs.tooltip("Existing decimal numbers will not be affected."),
|
|
||||||
}),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
t.div(
|
t.div(
|
||||||
{ className: "field" },
|
{ className: "field" },
|
||||||
t.input({
|
t.input({
|
||||||
@@ -108,6 +89,25 @@ export function settings(data) {
|
|||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
t.div(
|
||||||
|
{ className: "field" },
|
||||||
|
t.input({
|
||||||
|
className: "sm",
|
||||||
|
type: "checkbox",
|
||||||
|
id: uniqueId + ".onlyInt",
|
||||||
|
name: () => `fields.${data.fieldIndex}.onlyInt`,
|
||||||
|
checked: () => !!data.field.onlyInt,
|
||||||
|
onchange: (e) => (data.field.onlyInt = e.target.checked),
|
||||||
|
}),
|
||||||
|
t.label(
|
||||||
|
{ htmlFor: uniqueId + ".onlyInt" },
|
||||||
|
t.span({ className: "txt" }, "No decimals"),
|
||||||
|
t.i({
|
||||||
|
className: "ri-information-line link-hint",
|
||||||
|
ariaDescription: app.attrs.tooltip("Existing decimal numbers will not be affected."),
|
||||||
|
}),
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user