[Rt-commit] rt branch, 4.6/config-in-database, updated. rt-4.4.1-255-g8f8cfd0

Shawn Moore shawn at bestpractical.com
Tue Sep 5 14:57:24 EDT 2017


The branch, 4.6/config-in-database has been updated
       via  8f8cfd0002d7ca0d05ab6eb3065c20cfa561fb96 (commit)
      from  48edf64f2d1391ca1188d175f4e4175fa56b0632 (commit)

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

- Log -----------------------------------------------------------------
commit 8f8cfd0002d7ca0d05ab6eb3065c20cfa561fb96
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Tue Sep 5 14:56:57 2017 -0400

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

diff --git a/share/html/Admin/Tools/EditConfig.html b/share/html/Admin/Tools/EditConfig.html
index 1bf194a..12a3d69 100644
--- a/share/html/Admin/Tools/EditConfig.html
+++ b/share/html/Admin/Tools/EditConfig.html
@@ -182,6 +182,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 rt-commit mailing list