Web-1/HTML formulieren/NodeRed-login-1: verschil tussen versies
< Web-1 | HTML formulieren
Naar navigatie springen
Naar zoeken springen
Geen bewerkingssamenvatting |
k (Eelco heeft de pagina Web1/HTML formulieren/NodeRed-login-1 hernoemd naar Web-1/HTML formulieren/NodeRed-login-1 zonder een doorverwijzing achter te laten) |
(Een tussenliggende versie door dezelfde gebruiker niet weergegeven) | |
(geen verschil)
|
Huidige versie van 18 jan 2018 om 19:51
[{"id":"282bf5a7.7791ea","type":"tab","label":"Login-1","disabled":false,"info":""},{"id":"75edb86c.fe75f8","type":"http in","z":"282bf5a7.7791ea","name":"","url":"/login","method":"get","upload":false,"swaggerDoc":"","x":100,"y":240,"wires":[["17e91c22.bf6e04"]]},{"id":"47e1e066.7654d","type":"http in","z":"282bf5a7.7791ea","name":"","url":"/login-form","method":"post","upload":false,"swaggerDoc":"","x":120,"y":300,"wires":[["444bbc5.b739244"]]},{"id":"8c23798b.dc4cf8","type":"template","z":"282bf5a7.7791ea","name":"login-formulier","field":"pagecontents","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<h3>Welkom op mijn website</h3>\n<form method=\"post\" action=\"/login-form\">\n Login:\n <input type=\"text\" name=\"username\">\n <button type=\"submit\">Verstuur</button>\n</form>\n","output":"str","x":480,"y":240,"wires":[["d4c69329.16b14"]]},{"id":"33aec7e5.d39188","type":"template","z":"282bf5a7.7791ea","name":"welkom","field":"pagecontents","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<p>Welkom {{payload.username}}!</p>\n\n","output":"str","x":480,"y":300,"wires":[["d4c69329.16b14"]]},{"id":"710886d1.1e4f08","type":"http in","z":"282bf5a7.7791ea","name":"/","url":"/","method":"get","upload":false,"swaggerDoc":"","x":90,"y":120,"wires":[["a50a9461.d16468"]]},{"id":"985f24d4.128278","type":"http in","z":"282bf5a7.7791ea","name":"/about","url":"/about","method":"get","upload":false,"swaggerDoc":"","x":90,"y":180,"wires":[["e51418bb.5df648"]]},{"id":"d4c69329.16b14","type":"template","z":"282bf5a7.7791ea","name":"Page-template","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<!doctype html>\n<html>\n <head>\n <title>{{pagetitle}}</title> \n </head>\n <body>\n <header>\n <h2>Mijn eerste NodeRed website</h2>\n </header>\n {{{pagecontents}}}\n <nav>\n <a href=\"/\">Home</a>\n <a href=\"/about\">Over deze website</a>\n <a href=\"/login\">Login</a>\n </nav>\n </body>\n</html>","output":"str","x":640,"y":120,"wires":[["8092b686.a40098"]]},{"id":"8092b686.a40098","type":"http response","z":"282bf5a7.7791ea","name":"","statusCode":"","headers":{},"x":790,"y":120,"wires":[]},{"id":"a9528009.fc72d","type":"template","z":"282bf5a7.7791ea","name":"Home","field":"pagecontents","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<h3>Welkom</h3>\n<p>\n Welkom! Dit is de eerste pagina.\n</p>\n","output":"str","x":450,"y":120,"wires":[["d4c69329.16b14"]]},{"id":"db87cf7c.ae491","type":"template","z":"282bf5a7.7791ea","name":"About","field":"pagecontents","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<h3>Pagina 2</h3>\n<p>\n Dit is het vervolg.\n</p>\n","output":"str","x":450,"y":180,"wires":[["d4c69329.16b14"]]},{"id":"a50a9461.d16468","type":"function","z":"282bf5a7.7791ea","name":"process-home","func":"msg.pagetitle = \"Home\";\nreturn msg;","outputs":1,"noerr":0,"x":260,"y":120,"wires":[["a9528009.fc72d"]]},{"id":"e51418bb.5df648","type":"function","z":"282bf5a7.7791ea","name":"process-about","func":"msg.pagetitle = \"About\";\nreturn msg;","outputs":1,"noerr":0,"x":260,"y":180,"wires":[["db87cf7c.ae491"]]},{"id":"17e91c22.bf6e04","type":"function","z":"282bf5a7.7791ea","name":"process-login","func":"msg.pagetitle = \"Login\";\nreturn msg;","outputs":1,"noerr":0,"x":260,"y":240,"wires":[["8c23798b.dc4cf8"]]},{"id":"444bbc5.b739244","type":"function","z":"282bf5a7.7791ea","name":"process-login-form","func":"msg.pagetitle = \"Login\";\nreturn msg;","outputs":1,"noerr":0,"x":310,"y":300,"wires":[["33aec7e5.d39188"]]}]