diff options
author | bie <bie@blekksprut.net> | 2017-06-29 15:52:34 +0200 |
---|---|---|
committer | bie <bie@blekksprut.net> | 2017-06-29 15:52:34 +0200 |
commit | e1e6b653051119212c4c951096204160f3514f83 (patch) | |
tree | edab6155933d25915e66dc3e4f562d900753980a /lupin | |
parent | 61d54a847fe5dd79c945820bba5d42b8e357b4d3 (diff) | |
download | tears-e1e6b653051119212c4c951096204160f3514f83.tar.xz |
LAUNCH LAUNCH...launch?
Diffstat (limited to 'lupin')
-rw-r--r-- | lupin/anmeldelse.lua | 22 | ||||
-rw-r--r-- | lupin/artikkel.lua | 18 |
2 files changed, 0 insertions, 40 deletions
diff --git a/lupin/anmeldelse.lua b/lupin/anmeldelse.lua deleted file mode 100644 index 37a441b..0000000 --- a/lupin/anmeldelse.lua +++ /dev/null @@ -1,22 +0,0 @@ -local artikkel = blueprint("anmeldelse") - -function artikkel.env(data) - data.terningkast = os.getenv("POST_terningkast") or "" - data.publisert = os.getenv("POST_publisert") or "" -end - -function artikkel.form(body, data) - html.p() - html.label("Overskrift:") - html.text('title', data.title, 32) - html.p() - html.label("Terningkast:") - html.p(data.terningkast) - html.select('terningkast', { 1, 2, 3, 4, 5, 6 }, data.terningkast or 1) - html.p() - html.textarea('tekst', body) - html.hidden('type', 'anmeldelse') -end - -return artikkel - diff --git a/lupin/artikkel.lua b/lupin/artikkel.lua deleted file mode 100644 index 3ad2f4d..0000000 --- a/lupin/artikkel.lua +++ /dev/null @@ -1,18 +0,0 @@ -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() - html.label("Overskrift:") - html.text('title', data.title, 32) - html.orz('bilde', data.bilde or '') - html.p() - html.textarea('tekst', body) -end - -return artikkel - |