This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"Name":"SAMPLE showing IF ELSE inline html","Active":true,"Notes":"","Roles":124927,"ObjectType":2,"Template":"<html>\n\n<body>\n\t<h2>Example: custom fields usage </h2>\n\t<p>this is an examle report template that shows value of Count <span class='redFont'>in red if has 0 or null</span>, or shows <span class='greenFont'>green if has ANY value</span></p>\n\n\t<div>\n\t\t{{#each ayReportData}}\n\t\t<h3>Name: {{ Name }} </h3>\n\t\t{{#if Count}}<p class='greenFont'>Count is: {{ Count }}</p>{{else}} <p class='redFont'>has 0 or null</p>{{/if}}\n\t\t<hr>\t\t\n\t\t{{/each}}\n\t</div>\n</body>\n\n</html>","Style":".redFont {\r\n color: red;\r\n}\r\n\r\n.greenFont {\r\n color: green;\r\n}\r\n","JsPrerender":"async function ayPrepareData(reportData){ \n return reportData;\n}","JsHelpers":"","RenderType":0,"HeaderTemplate":null,"FooterTemplate":null,"DisplayHeaderFooter":false,"PaperFormat":0,"Landscape":false,"MarginOptionsBottom":null,"MarginOptionsLeft":null,"MarginOptionsRight":null,"MarginOptionsTop":null,"PageRanges":null,"PreferCSSPageSize":false,"PrintBackground":false,"Scale":1.0000}
|
||||
Reference in New Issue
Block a user