From 87d5677497d27089fe90072c0069961172b86cf7 Mon Sep 17 00:00:00 2001 From: johnformio Date: Tue, 8 Jul 2025 17:27:38 +0000 Subject: [PATCH] $'syncing commit from monorepo. PR: 269, Title: Fix/fio 10281 adding hyperlink to file comp description error' --- src/templates/bootstrap4/file/form.ejs | 1 - src/templates/bootstrap5/file/form.ejs | 1 - 2 files changed, 2 deletions(-) diff --git a/src/templates/bootstrap4/file/form.ejs b/src/templates/bootstrap4/file/form.ejs index b0bf2d1f8..81c106e9b 100644 --- a/src/templates/bootstrap4/file/form.ejs +++ b/src/templates/bootstrap4/file/form.ejs @@ -174,7 +174,6 @@ {{ctx.t('browse')}} {{ctx.t('browseToAttachFileFor') + ' ' + ctx.t(ctx.component.label, { _userInput: true }) + '. ' + - (ctx.component.description ? ctx.t(ctx.component.description, { _userInput: true }) + '. ' : '') + ((!ctx.component.filePattern || ctx.component.filePattern === '*') ? ctx.t('anyFileTypesAllowed') : ctx.t('allowedFileTypes') + ': ' + ctx.component.filePattern)}} diff --git a/src/templates/bootstrap5/file/form.ejs b/src/templates/bootstrap5/file/form.ejs index eb2f05937..636e9bf4a 100644 --- a/src/templates/bootstrap5/file/form.ejs +++ b/src/templates/bootstrap5/file/form.ejs @@ -188,7 +188,6 @@ {% } %} {{ctx.t('browseToAttachFileFor') + ' ' + ctx.t(ctx.component.label, { _userInput: true }) + '. ' + - (ctx.component.description ? ctx.t(ctx.component.description, { _userInput: true }) + '. ' : '') + ((!ctx.component.filePattern || ctx.component.filePattern === '*') ? ctx.t('anyFileTypesAllowed') : ctx.t('allowedFileTypes') + ': ' + ctx.component.filePattern)}}