[prev in list] [next in list] [prev in thread] [next in thread]
List: rt-commit
Subject: [Rt-commit] rt 04/04: Add placeholder to distinguish JSON and MultilineString textareas
From: sunnavy <sunnavy () bestpractical ! com>
Date: 2021-06-29 21:33:51
Message-ID: 20210629213347.E1D1543D6F () bps-git ! bestpractical ! com
[Download RAW message or body]
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@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@bestpractical.com.
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic