2023-04-19 22:44:06 +02:00
|
|
|
import { PageHeader } from "./components/index.js";
|
|
|
|
|
|
|
|
const FormsPreview = ({ widgetsFor, widgetFor, entry }) => {
|
2023-05-29 16:22:34 +02:00
|
|
|
return [
|
|
|
|
PageHeader(entry),
|
|
|
|
h(
|
|
|
|
"section",
|
2023-06-11 21:13:11 +02:00
|
|
|
{ className: "section" },
|
2023-05-29 16:22:34 +02:00
|
|
|
h(
|
|
|
|
"div",
|
|
|
|
{ className: "container" },
|
|
|
|
h(
|
|
|
|
"div",
|
|
|
|
{ className: "row" },
|
|
|
|
h(
|
|
|
|
"div",
|
|
|
|
{ className: "col-12" },
|
2023-06-11 21:13:11 +02:00
|
|
|
h("h2", { className: "mb-4" }, entry.data.title)
|
2023-05-29 16:22:34 +02:00
|
|
|
)
|
|
|
|
),
|
|
|
|
h(
|
|
|
|
"div",
|
|
|
|
{ className: "row" },
|
|
|
|
h(
|
|
|
|
"div",
|
|
|
|
{ className: "col-12 content" },
|
|
|
|
widgetsFor("files").map((file) =>
|
|
|
|
h(
|
|
|
|
"div",
|
|
|
|
{ className: "container mb-0" },
|
|
|
|
h(
|
|
|
|
"div",
|
|
|
|
{
|
|
|
|
className:
|
|
|
|
"card border-primary rounded-0 hover-shadow mb-5",
|
|
|
|
},
|
|
|
|
h(
|
|
|
|
"div",
|
|
|
|
{ className: "card-body mb-0" },
|
|
|
|
h("h4", { className: "card-title" }, file.data.title),
|
|
|
|
h(
|
|
|
|
"a",
|
|
|
|
{
|
|
|
|
className:
|
|
|
|
"text-decoration-none btn btn-primary btn-sm mb-0",
|
|
|
|
},
|
|
|
|
h("i", {
|
|
|
|
className: "mdi mdi-tray-arrow-down mb-0 me-2",
|
|
|
|
}),
|
|
|
|
"Download"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
widgetFor("body")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
];
|
2023-04-19 22:44:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default FormsPreview;
|