Show better label for second description field

This commit is contained in:
Jamie Cameron
2011-09-11 21:57:31 -07:00
parent c0cf45836b
commit 34c0506eea
5 changed files with 14 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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
View 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>

View File

@@ -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