diff options
Diffstat (limited to 'server/xml/macros/B.2.3.xml')
-rw-r--r-- | server/xml/macros/B.2.3.xml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/server/xml/macros/B.2.3.xml b/server/xml/macros/B.2.3.xml index 04f80ca..5895a5e 100644 --- a/server/xml/macros/B.2.3.xml +++ b/server/xml/macros/B.2.3.xml @@ -12,9 +12,13 @@ Tilføjede et datofelt. --> <macro name="B.2.3" version="1.0"> - <resume>I henhold til øjenafdelingens retningslinier dryppes der med: -${ocgtt.preparation} -Drypning er foretaget af: ${ocgtt.initials}, den ${ocgtt.date}</resume> + <resume language="lua"> + out = 'I henhold til øjenafdelingens retningslinier dryppes der med:\n' + out = out .. getValue('ocgtt.preparation') .. '\n' + out = out .. 'Drypning er foretaget af: ' .. getValue('ocgtt.initials') + .. ', den ' .. os.date('%e. %b %Y %k:%M', tonumber(getValue('ocgtt.date'))) + return out +</resume> <queries> </queries> <maps> @@ -55,7 +59,7 @@ Drypning er foretaget af: ${ocgtt.initials}, den ${ocgtt.date}</resume> <label width="200" caption="Drypning foretaget af (initialer):"/> <lineedit name="ocgtt.initials" regexp="[a-zæøåA-ZÆØÅ]{2,5}" value=""/> <label width="50" caption=" den "/> - <datetime name="ocgtt.date" map="now" value=""/> + <datetime name="ocgtt.date" fuzziness="5" map="now" value=""/> </frame> <!-- Knapper --> |