diff options
author | bie <bie@blekksprut.net> | 2017-06-02 08:38:39 +0000 |
---|---|---|
committer | bie <bie@blekksprut.net> | 2017-06-02 08:38:39 +0000 |
commit | f735ef5306fbf2ccdd3e1856a947d38305db6182 (patch) | |
tree | 7cd52048317a7a7c097d19bbc54b370afa657555 /blueprints/artikkel.lua | |
download | lupin-f735ef5306fbf2ccdd3e1856a947d38305db6182.tar.xz |
er dette the lupin of my dreams
Diffstat (limited to 'blueprints/artikkel.lua')
-rw-r--r-- | blueprints/artikkel.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/blueprints/artikkel.lua b/blueprints/artikkel.lua new file mode 100644 index 0000000..926f53c --- /dev/null +++ b/blueprints/artikkel.lua @@ -0,0 +1,19 @@ +local artikkel = blueprint("default") + +function artikkel.env(data) + data.bilde = os.getenv("POST_bilde") + data.publisert = os.getenv("POST_publisert") +end + +function artikkel.form(body, data) + html.p() + form.label("Overskrift:") + form.text('overskrift', data.overskrift, 32) + form.orz('bilde', data.bilde or '') + html.p() + form.textarea('tekst', body) + form.submit('Lagre') +end + +return artikkel + |