summaryrefslogtreecommitdiff
path: root/httemplate/edit/elements
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-06-14 14:56:51 -0700
committerIvan Kohler <ivan@freeside.biz>2015-06-14 14:56:51 -0700
commit5b507bd1cb845ef44a49f84d4f0ae20ec80118d5 (patch)
tree0a646991e659b684ca60796f56164934512e65e4 /httemplate/edit/elements
parenta5ebbe70342d11b17754ac95d00d6b71df0cd632 (diff)
UI spring cleaning: customer edit
Diffstat (limited to 'httemplate/edit/elements')
-rw-r--r--httemplate/edit/elements/edit.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html
index 7b02994d1..c6d45531e 100644
--- a/httemplate/edit/elements/edit.html
+++ b/httemplate/edit/elements/edit.html
@@ -7,7 +7,7 @@ Example:
# (preferred, will be pluralized automatically)
'name' => #name for the record
# (deprecated, will be pluralized simplistically)
- 'table' =>
+ 'table' => #database table
#? 'primary_key' => #required when the dbdef doesn't know...???
'labels' => {
@@ -135,6 +135,8 @@ Example:
'form_init' => '', #after html_init, error and the opening <FORM>, but
#before any other form contents
+ 'html_table_class' => '', #HTML <TABLE CLASS=
+
#string or coderef of additional HTML to add before </TABLE>
'html_table_bottom' => '',
@@ -270,7 +272,11 @@ Example:
% }
% my $tablenum = $opt{'tablenum'} || 0;
-<TABLE ID="TableNumber<% $tablenum++ %>" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
+<TABLE ID="TableNumber<% $tablenum++ %>"
+ <% $opt{html_table_class} ? 'CLASS="'. $opt{html_table_class}. '"'
+ : 'BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0'
+ %>
+>
% my $g_row = 0;
% my @g_row_stack = ();