Web-1/HTML formulieren/NodeRed-forms test

Uit Inf2019
< Web-1‎ | HTML formulieren
Versie door Eelco (overleg | bijdragen) op 18 jan 2018 om 19:51 (Eelco heeft de pagina Web1/HTML formulieren/NodeRed-forms test hernoemd naar Web-1/HTML formulieren/NodeRed-forms test zonder een doorverwijzing achter te laten)
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Naar navigatie springen Naar zoeken springen
[{"id":"f0a27865.ad0ff8","type":"tab","label":"Forms test","disabled":true,"info":""},{"id":"8105c88c.4a8b08","type":"http in","z":"f0a27865.ad0ff8","name":"","url":"/login","method":"get","upload":false,"swaggerDoc":"","x":120,"y":120,"wires":[["e04472d9.091f1"]]},{"id":"40c35a90.350ea4","type":"http in","z":"f0a27865.ad0ff8","name":"","url":"/login-form","method":"post","upload":false,"swaggerDoc":"","x":140,"y":200,"wires":[["20384293.79251e"]]},{"id":"e04472d9.091f1","type":"template","z":"f0a27865.ad0ff8","name":"login-formulier","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<!doctype html>\n<html>\n    <head>\n        <title>Welkom</title>\n    </head>\n    <body>\n        <h1>Welkom op mijn website</h1>\n        <form method=\"post\" action=\"/login-form\">\n            Login:\n            <input type=\"text\" name=\"username\">\n            <button type=\"submit\">Verstuur</button>\n        </form>\n    </body>\n</html>","output":"str","x":380,"y":120,"wires":[["a4529752.6ad8a8"]]},{"id":"20384293.79251e","type":"template","z":"f0a27865.ad0ff8","name":"login response","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<!doctype html>\n<html>\n    <head>\n        <title>Welkom!</title>\n    </head>\n    <body>\n        <p>Welkom {{payload.username}}!</p>\n        <a href=\"/login\">Login</a>\n    </body>\n</html>","output":"str","x":380,"y":200,"wires":[["9607a698.18ba08"]]},{"id":"a4529752.6ad8a8","type":"http response","z":"f0a27865.ad0ff8","name":"","statusCode":"","headers":{},"x":570,"y":120,"wires":[]},{"id":"9607a698.18ba08","type":"http response","z":"f0a27865.ad0ff8","name":"","statusCode":"","headers":{},"x":570,"y":200,"wires":[]}]