X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Felements%2Fedit.html;h=c6d45531e80a43082cc1c92f5a0555e70bfe73d3;hp=54d6768499bbb717857bd77fd286f2d3b26e98f7;hb=9aee669886202be7035e6c6049fc71bc99dd3013;hpb=4289ed53f86f18d6107339db5b7cee38f64533c0 diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html index 54d676849..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' => { @@ -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' => '', @@ -196,7 +203,7 @@ Example: &> - +% % unless ( $opt{embed} ) { % % my $title = $opt{action}. ' '. ( $opt{name} || $opt{'name_singular'} ); @@ -213,14 +220,13 @@ Example: % "View all $items" => $viewall_url, % ); % } - - - <% include('/elements/header'. ( $opt{popup} ? '-popup' : '' ). '.html', +% +<% include('/elements/header'. ( $opt{popup} ? '-popup' : '' ). '.html', $title, include( '/elements/menubar.html', @menubar ), $opt{'body_etc'}, ) - %> +%> <% defined($opt{'html_init'}) ? ( ref($opt{'html_init'}) @@ -243,6 +249,14 @@ Example: + <% defined($opt{'form_init'}) + ? ( ref($opt{'form_init'}) + ? &{$opt{'form_init'}}() + : $opt{'form_init'} + ) + : '' + %> + % unless ( $opt{'no_pkey_display'} ) { @@ -257,8 +271,12 @@ Example: % } -% my $tablenum = 0; -
+% my $tablenum = $opt{'tablenum'} || 0; +
+> % my $g_row = 0; % my @g_row_stack = (); @@ -315,22 +333,30 @@ Example: % 'disable_empty' => $f->{'disable_empty'}, % #select-reason % 'reason_class' => $f->{'reason_class'}, +% #select-agent +% 'viewall_right' => $f->{'viewall_right'}, % % #selectlayers % 'layer_fields' => $f->{'layer_fields'}, % 'layer_values' => $layer_values, % 'html_between' => $f->{'html_between'}, % -% #umm. for select-agent_types at least +% #umm. for select-agent_type at least % 'disabled' => $f->{'disabled'}, % 'fixed' => $f->{'fixed'}, -% -% #umm. for select-agent_types at least % 'label_callback'=> $f->{'label_callback'}, +% 'element_etc' => $f->{'element_etc'}, +% +% #for select-ticketing_queueid at least +% 'post_options' => $f->{'post_options'}, % % #any? % 'colspan' => $f->{'colspan'}, % 'required' => $f->{'required'}, +% +% #contact +% 'custnum' => $f->{'custnum'}, +% 'prospectnum' => $f->{'prospectnum'}, % ); % % $include_common{$_} = $f->{$_} foreach grep exists($f->{$_}), @@ -398,6 +424,7 @@ Example: % 'value' => $opt{curr_value}, % 'label' => $label, % 'noinit' => $f->{noinit}, +% 'required' => $f->{'required'}, % } % ); % }