summaryrefslogtreecommitdiff
path: root/server/xml/macros/test_resume.xml
diff options
context:
space:
mode:
authorbertho <bertho>2009-02-04 11:26:58 +0000
committerbertho <bertho>2009-02-04 11:26:58 +0000
commit1bce9e4ebb9521c26fdbc586d4eadd6f2a52b618 (patch)
tree497e277a15390025db1158c7a39776cdbd1645f4 /server/xml/macros/test_resume.xml
parent4497bea2b68a883d1bed72797f27275c833843ea (diff)
Add macros and templates to repository
Diffstat (limited to 'server/xml/macros/test_resume.xml')
-rw-r--r--server/xml/macros/test_resume.xml36
1 files changed, 36 insertions, 0 deletions
diff --git a/server/xml/macros/test_resume.xml b/server/xml/macros/test_resume.xml
new file mode 100644
index 0000000..a0916e7
--- /dev/null
+++ b/server/xml/macros/test_resume.xml
@@ -0,0 +1,36 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<macro name="test_resume" version="1.0">
+ <resume language="lua">
+ -- This is a LUA program!
+ if getValue('test2') == 'ja'
+ then
+ return getValue('dims') .. ' made out of ' .. getValue('test1') .. ' and ' .. getValue('test2')
+ else
+ return 'niksen'
+ end
+ </resume>
+ <queries>
+ </queries>
+ <maps>
+ </maps>
+ <scripts>
+ </scripts>
+ <window caption="Test Resume"
+ layout="vbox">
+
+ <metawidget layout="vbox" name="dims"
+ format="${test1}: ${test2}"
+ storechildren="true">
+ <lineedit name="test1" value="test"/>
+ <checkbox caption="Og svaret er?"
+ name="test2" value="ja"
+ truevalue="ja" falsevalue="nej"/>
+ </metawidget>
+
+ <frame layout="hbox">
+ <spacer />
+ <button caption="Reset" action="reset"/>
+ <button caption="Gem" action="commit"/>
+ </frame>
+ </window>
+</macro>