Make non-editable action nicer
authorJamie Cameron <jcameron@webmin.com>
Mon, 13 Sep 2010 23:57:35 +0000 (16:57 -0700)
committerJamie Cameron <jcameron@webmin.com>
Mon, 13 Sep 2010 23:57:35 +0000 (16:57 -0700)
init/edit_action.cgi

index 0b8d769..a5bdef2 100755 (executable)
@@ -63,7 +63,6 @@ else {
                            &ui_textbox("name", $ac, 30));
        }
 
-$fs = "<font size=-1>"; $fe = "</font>";
 if ($ty == 2) {
        # Display fields for a template for a new action
        print &ui_table_row($text{'edit_desc'},
@@ -86,7 +85,8 @@ if ($ty == 2) {
 elsif ($access{'bootup'} == 2) {
        # Just show current script
        print &ui_table_row($text{'edit_script'},
-               "$fs<pre>".&html_escape($data)."</pre>$fe");
+               &ui_textarea("data", $data, 15, 80, undef, undef,
+                            "readonly=true"));
        }
 else {
        # Allow direct editing of the script