From 48236680ca82071fa23c72f2c6daad58bd4b9683 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 10 Aug 2015 17:44:35 +0300 Subject: [PATCH] Tidied print templates --- rigForms/templates/rigForms/print/render-array.xml | 2 -- rigForms/templates/rigForms/print/render-boolean.xml | 1 - rigForms/templates/rigForms/print/render-object.xml | 2 -- rigForms/templates/rigForms/print/render-string.xml | 3 +-- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/rigForms/templates/rigForms/print/render-array.xml b/rigForms/templates/rigForms/print/render-array.xml index 6f410cfe..611594f4 100644 --- a/rigForms/templates/rigForms/print/render-array.xml +++ b/rigForms/templates/rigForms/print/render-array.xml @@ -1,5 +1,3 @@ -{# "field" context should have "title", "description" and "value" #} -{# "children" context should be a string of inner XML #} diff --git a/rigForms/templates/rigForms/print/render-boolean.xml b/rigForms/templates/rigForms/print/render-boolean.xml index 74474b0a..6f09a551 100644 --- a/rigForms/templates/rigForms/print/render-boolean.xml +++ b/rigForms/templates/rigForms/print/render-boolean.xml @@ -1,4 +1,3 @@ -{# "field" context should have "title", "description"} diff --git a/rigForms/templates/rigForms/print/render-object.xml b/rigForms/templates/rigForms/print/render-object.xml index a7769fe5..162402e6 100644 --- a/rigForms/templates/rigForms/print/render-object.xml +++ b/rigForms/templates/rigForms/print/render-object.xml @@ -1,5 +1,3 @@ -{# "field" context should have "title", "description" and "value" #} -{# "children" context should be a string of inner XML #} diff --git a/rigForms/templates/rigForms/print/render-string.xml b/rigForms/templates/rigForms/print/render-string.xml index d05758fd..2055eb45 100644 --- a/rigForms/templates/rigForms/print/render-string.xml +++ b/rigForms/templates/rigForms/print/render-string.xml @@ -1,4 +1,3 @@ -{# "field" context should have "title", "description" and "value"} @@ -7,6 +6,6 @@ {{field.description}} - {{value}} + {{value|default_if_none:""}} \ No newline at end of file