X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Felements%2Fedit.html;h=a0023382e1b097346a2a0c218a3a8de63f780253;hb=ecd038f7ae5c1ffc929f3c928ecd161eeb45d9be;hp=4d5beee71a1aa631791f5f132bf11e8c2491a643;hpb=167dbdad01e2c1b62fd9be43cc05212e8c874a02;p=freeside.git diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html index 4d5beee71..a0023382e 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' => { @@ -118,6 +118,8 @@ Example: # display, no
, no hidden fields for table name or primary key, no # display of primary key, no submit button, no html_foot, no footer) 'embed' => $object, #need to pass the object + 'tablenum' => 4, #need to specify a table number when using multiple + #embedded edits on a page (and m2 stuff) #don't show the primary key label and value 'no_pkey_display' => 1, @@ -130,6 +132,11 @@ Example: 'html_init' => '', #after the header/menubar + 'form_init' => '', #after html_init, error and the opening , but + #before any other form contents + + 'html_table_class' => '', #HTML 'html_table_bottom' => '', @@ -240,7 +247,15 @@ Example: > - + + + <% defined($opt{'form_init'}) + ? ( ref($opt{'form_init'}) + ? &{$opt{'form_init'}}() + : $opt{'form_init'} + ) + : '' + %> % unless ( $opt{'no_pkey_display'} ) { @@ -256,8 +271,12 @@ Example: % } -% my $tablenum = 0; -
+% my $tablenum = $opt{'tablenum'} || 0; +
+> % my $g_row = 0; % my @g_row_stack = (); @@ -343,7 +362,7 @@ Example: % $include_common{$_} = $f->{$_} foreach grep exists($f->{$_}), % qw( js_only html_only select_only layers_only cell_style ),#selectlayers,? % qw( empty_label ), # select-* -% qw( value_col compare_sub order_by ), # select-table +% qw( value_col compare_sub order_by addl_from ), # select-table % qw( table name_col ), #(select,checkboxes)-table % qw( target_table link_table ), #checkboxes-table % qw( hashref agent_virt agent_null agent_null_right ),#*-table @@ -353,6 +372,7 @@ Example: % qw( alt_format ), #select-cust_location % qw( classnum ), # select-inventory_item % qw( aligned ), # columnstart +% qw( debug ), # select-table % ; % % #select-table @@ -405,6 +425,7 @@ Example: % 'value' => $opt{curr_value}, % 'label' => $label, % 'noinit' => $f->{noinit}, +% 'required' => $f->{'required'}, % } % ); % } @@ -630,7 +651,7 @@ Example: var newrow = <% include(@layer_opt, html_only=>1) |js_string %>; % #until the rest have html/js_only -% if ( $type eq 'selectlayers' || $type =~ /^select-cgp_rule_/ ) { +% if ( ($type eq 'selectlayers') || ($type eq 'selectlayersx') || ($type =~ /^select-cgp_rule_/) ) { var newfunc = <% include(@layer_opt, js_only=>1) |js_string %>; % } else { var newfunc = '';