18 lines
1008 B
TypeScript
18 lines
1008 B
TypeScript
import m from "mithril"
|
|
import {Form, iForm} from "./widgets/form"
|
|
import { Input, iInput} from "./widgets/inputs"
|
|
|
|
export const Projekt: m.Component = {
|
|
view: (vnode) => {
|
|
return m("div.w3-container.w3-twothird",
|
|
m("h1", "Projekt-Stammblatt"),
|
|
m(Form, {showButtons: true, onsubmit: (null), oncancel: (null)} as iForm, [
|
|
m("label", "Kundenname", m(Input, {name: "kundenname", value: "Musterfirma GmbH", type: "text"} as iInput)),
|
|
m("label", "Projektname", m(Input, {name: "projektname", value: "Musterprojekt", type: "text"} as iInput)) ,
|
|
m("label", "Zweck", m(Input, {name: "zweck", value: "Musterzweck", type: "text"} as iInput)),
|
|
m("label", "Verantwortlicher", m(Input, {name: "verantwortlicher", value: "König Dickbauch", type: "text"} as iInput)),
|
|
m("label", "Startdatum", m(Input, {name: "startdatum", value: "2023-01-01", type: "date"} as iInput))
|
|
])
|
|
)
|
|
}
|
|
} |