[Bps-public-commit] rt-extension-configindatabase branch, master, updated. 23f39ee6c9a6ef25d5b75b3955dc8eaa574190eb

Shawn Moore shawn at bestpractical.com
Fri Sep 8 17:51:47 EDT 2017


The branch, master has been updated
       via  23f39ee6c9a6ef25d5b75b3955dc8eaa574190eb (commit)
      from  2585fafd5832a9d8739e38adf285cd7877e75f58 (commit)

Summary of changes:
 html/Admin/Tools/EditConfig.html | 5 +++++
 1 file changed, 5 insertions(+)

- Log -----------------------------------------------------------------
commit 23f39ee6c9a6ef25d5b75b3955dc8eaa574190eb
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Tue Sep 5 18:55:42 2017 +0000

    Render config with EditLink as readonly
    
    That way you can still easily export the settings to another RT

diff --git a/html/Admin/Tools/EditConfig.html b/html/Admin/Tools/EditConfig.html
index 8e4d171..982c365 100644
--- a/html/Admin/Tools/EditConfig.html
+++ b/html/Admin/Tools/EditConfig.html
@@ -184,6 +184,11 @@ foreach my $key ( RT->Config->Options( Overridable => undef, Sorted => 0 ) ) {
 <td class="collection-as-table">
 
 % if ( $meta->{EditLink} ) {
+% if ($widget eq '/Widgets/Form/MultilineString' || $widget eq '/Widgets/Form/Code') {
+<textarea disabled class="<% $is_code ? 'code' : '' %>" rows="6" cols="80"><% $current_value %></textarea><br>
+% } else {
+<input type="text" disabled width="80" value="<% $current_value %>"></input><br>
+% }
 <&|/l_unsafe, "<a href=\"$meta->{EditLink}\">", loc($meta->{EditLinkLabel}), "</a>" &>Visit [_1][_2][_3] to manage this setting</&>
 % } elsif ( $key =~ /Plugins/) {
 <ul class="plugins">

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list