From 38d101bb2f7afff5f1c83b37713ab0545bdaafd3 Mon Sep 17 00:00:00 2001 From: johnformio Date: Fri, 18 Jul 2025 15:20:53 +0000 Subject: [PATCH] $'syncing commit from monorepo. PR: 295, Title: FIO-10399 fixed currency display in html render mode' --- src/templates/bootstrap3/input/html.ejs | 2 +- src/templates/bootstrap4/input/html.ejs | 2 +- src/templates/bootstrap5/input/html.ejs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/templates/bootstrap3/input/html.ejs b/src/templates/bootstrap3/input/html.ejs index 82fffefce..391b6f131 100644 --- a/src/templates/bootstrap3/input/html.ejs +++ b/src/templates/bootstrap3/input/html.ejs @@ -1 +1 @@ -
{% if (ctx.value) { %}{{ctx.value}}{% } else { %}-{% } %}
+
{% if (ctx.value) { %}{{ctx.component.type === 'currency' ? ctx.input.attr.value : ctx.value}}{% } else { %}-{% } %}
\ No newline at end of file diff --git a/src/templates/bootstrap4/input/html.ejs b/src/templates/bootstrap4/input/html.ejs index 82fffefce..bdb65d4dc 100644 --- a/src/templates/bootstrap4/input/html.ejs +++ b/src/templates/bootstrap4/input/html.ejs @@ -1 +1 @@ -
{% if (ctx.value) { %}{{ctx.value}}{% } else { %}-{% } %}
+
{% if (ctx.value) { %}{{ctx.component.type === 'currency' ? ctx.input.attr.value : ctx.value}}{% } else { %}-{% } %}
diff --git a/src/templates/bootstrap5/input/html.ejs b/src/templates/bootstrap5/input/html.ejs index 82fffefce..391b6f131 100644 --- a/src/templates/bootstrap5/input/html.ejs +++ b/src/templates/bootstrap5/input/html.ejs @@ -1 +1 @@ -
{% if (ctx.value) { %}{{ctx.value}}{% } else { %}-{% } %}
+
{% if (ctx.value) { %}{{ctx.component.type === 'currency' ? ctx.input.attr.value : ctx.value}}{% } else { %}-{% } %}
\ No newline at end of file