diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-07-26 15:41:26 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-07-26 15:41:26 -0700 |
commit | 9aee669886202be7035e6c6049fc71bc99dd3013 (patch) | |
tree | 2fd5bf6de74f3d99270587ffb1833e4188a6373d /httemplate/edit/elements/edit.html | |
parent | ac20214d38d9af00430423f147b5a0e50751b050 (diff) | |
parent | 1add633372bdca3cc7163c2ce48363fed3984437 (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/edit/elements/edit.html')
-rw-r--r-- | httemplate/edit/elements/edit.html | 10 |
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 = (); |