summaryrefslogtreecommitdiff
path: root/server/xml/macros/test_resume.xml
blob: c3e3cbefbe567ac4692960147d64f4e99a12adb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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>
  <widgets 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>
  </widgets>
</macro>