summaryrefslogtreecommitdiff
path: root/lib/template/qprf.haml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/template/qprf.haml')
-rw-r--r--lib/template/qprf.haml25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/template/qprf.haml b/lib/template/qprf.haml
new file mode 100644
index 0000000..1634a0d
--- /dev/null
+++ b/lib/template/qprf.haml
@@ -0,0 +1,25 @@
+!!!
+%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
+ %body
+ %h1= self["singleCalculations"]["Title"]
+ %p
+ = self["singleCalculations"]["Disclaimer and Instructions"]
+ %ul
+ %li
+ Date: #{self["singleCalculations"]["Date"]}
+ %li
+ Version: #{self["singleCalculations"]["Version"]}
+ - self["arrayCalculations"].each do |block|
+ %h2= block[0]
+ - block[1]["values"].each do |val|
+ - if val[0] == "General" && val[1][0] == "Instructions"
+ %p #{val[1][1]}
+ - else
+ - if val[0].match(/\d\.\d \w\./)
+ %h4
+ #{val[0]} #{val[1][0]}
+ -else
+ %h3
+ #{val[0]} #{val[1][0]}
+ %p #{val[1][1]}
+