You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
561 B
25 lines
561 B
"use strict";
|
|
|
|
const React = require("react");
|
|
|
|
const Layout = require("./layout");
|
|
|
|
function Field({ id, type, name, label, children }) {
|
|
return (
|
|
<div className="formField">
|
|
<label htmlFor={`field_${id}`}>{label}</label>
|
|
<input type={type} name={name} id={`field_${id}`} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
module.exports = function Index() {
|
|
return (
|
|
<Layout>
|
|
<form method="get" action="/show-rooms">
|
|
<Field label="Homeserver" type="text" name="hostname" id="homeserver" />
|
|
<button type="submit">Show rooms</button>
|
|
</form>
|
|
</Layout>
|
|
);
|
|
};
|
|
|