[Rt-commit] rt 04/04: Add placeholder to distinguish JSON and MultilineString textareas
sunnavy
sunnavy at bestpractical.com
Tue Jun 29 17:33:51 EDT 2021
This is an automated email from the git hooks/post-receive script.
sunnavy pushed a commit to branch 5.0/db-config-missing-widgets
in repository rt.
commit a6589294150247d6cf29ee29513b67d1bd9c830f
Author: sunnavy <sunnavy at bestpractical.com>
AuthorDate: Wed Jun 30 05:24:02 2021 +0800
Add placeholder to distinguish JSON and MultilineString textareas
---
share/html/Widgets/Form/JSON | 4 ++--
share/html/Widgets/Form/MultilineString | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/share/html/Widgets/Form/JSON b/share/html/Widgets/Form/JSON
index dff3c2d263..10089bed65 100644
--- a/share/html/Widgets/Form/JSON
+++ b/share/html/Widgets/Form/JSON
@@ -48,9 +48,9 @@
<%DOC>
see docs/extending/using_forms_widgets.pod
</%DOC>
-<& /Widgets/Form/MultilineString, Class => 'json', %ARGS &>
+<& /Widgets/Form/MultilineString, Class => 'json', Placeholder => loc('JSON'), %ARGS &>
<%METHOD InputOnly>
-<& /Widgets/Form/MultilineString:InputOnly, %ARGS &>
+<& /Widgets/Form/MultilineString:InputOnly, Placeholder => loc('JSON'), %ARGS &>
</%METHOD>
<%METHOD Process>
<& /Widgets/Form/MultilineString:Process, %ARGS &>
diff --git a/share/html/Widgets/Form/MultilineString b/share/html/Widgets/Form/MultilineString
index 925795b5d5..c74b5313ef 100644
--- a/share/html/Widgets/Form/MultilineString
+++ b/share/html/Widgets/Form/MultilineString
@@ -84,12 +84,13 @@ $CloseRowDiv => 1
</%ARGS>
<%METHOD InputOnly>
-<textarea name="<% $Name %>" class="form-control" cols="<% $Cols %>" rows="<% $Rows %>"><% $CurrentValue %></textarea>
+<textarea placeholder="<% $Placeholder %>" name="<% $Name %>" class="form-control" cols="<% $Cols %>" rows="<% $Rows %>"><% $CurrentValue %></textarea>
<%ARGS>
$Name
$Cols => 80
$Rows => 6
$CurrentValue => '',
+$Placeholder => loc('String')
</%ARGS>
</%METHOD>
--
To stop receiving notification emails like this one, please contact
sysadmin at bestpractical.com.
More information about the rt-commit
mailing list