12 lines
292 B
JavaScript
12 lines
292 B
JavaScript
import m from "mithril";
|
|
|
|
export const LoginForm = {
|
|
view: function() {
|
|
return m("form", { action: "/login" }, [
|
|
m("label", { for: "username" }, "Username"),
|
|
m("input", { type: "text", name: "username" }),
|
|
m("input", { type: "submit", value: "Login" })
|
|
]);
|
|
}
|
|
};
|