mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Show better label for second description field
This commit is contained in:
@@ -31,7 +31,8 @@ if (!$in{'new'}) {
|
||||
|
||||
# Description, text and HTML
|
||||
print &ui_table_row(&hlink($text{'edit_desc'}, "desc"),
|
||||
&ui_textbox("desc", $cmd->{'desc'}, 60)."<br>".
|
||||
&ui_textbox("desc", $cmd->{'desc'}, 60), 3);
|
||||
print &ui_table_row(&hlink($text{'edit_desc2'}, "desc2"),
|
||||
&ui_textarea("html", $cmd->{'html'}, 2, 60), 3);
|
||||
|
||||
# Command to run
|
||||
|
||||
@@ -29,7 +29,8 @@ if (!$in{'new'}) {
|
||||
|
||||
# Description, text and HTML
|
||||
print &ui_table_row(&hlink($text{'edit_desc'}, "desc"),
|
||||
&ui_textbox("desc", $edit->{'desc'}, 60)."<br>".
|
||||
&ui_textbox("desc", $edit->{'desc'}, 60));
|
||||
print &ui_table_row(&hlink($text{'edit_desc2'}, "desc2"),
|
||||
&ui_textarea("html", $edit->{'html'}, 2, 60));
|
||||
|
||||
# File to edit, and environment checkbox
|
||||
|
||||
@@ -42,7 +42,8 @@ if (!$in{'new'}) {
|
||||
print &ui_table_row($text{'edit_id'}, "<tt>$cmd->{'id'}</tt>");
|
||||
}
|
||||
print &ui_table_row($text{'edit_desc'},
|
||||
&ui_textbox("desc", $cmd->{'desc'}, 50)."<br>\n".
|
||||
&ui_textbox("desc", $cmd->{'desc'}, 50));
|
||||
print &ui_table_row($text{'edit_desc2'},
|
||||
&ui_textarea("html", $cmd->{'html'}, 2, 50));
|
||||
|
||||
# Show databse type and name
|
||||
|
||||
7
custom/help/desc2.html
Normal file
7
custom/help/desc2.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<header>HTML description</header>
|
||||
|
||||
This field can be used to enter an optional longer HTML-format description for the command, which will also appear on the module's main page. <p>
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ create_title=Create Command
|
||||
edit_ecannot=You are not allowed to edit commands
|
||||
edit_details=Command details
|
||||
edit_desc=Description
|
||||
edit_desc2=HTML description
|
||||
edit_id=Command ID
|
||||
edit_cmd=Command
|
||||
edit_dir=Run in directory
|
||||
|
||||
Reference in New Issue
Block a user