X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-table.html;h=c0dde74147eb1df67743b574f610326942c73c52;hb=ea3ce8d7f076e7fecff4be7ae63bc413adb0adf5;hp=8bcbf2504291f99679e2da970b2757e231fab614;hpb=8e2487662e3555c1efbb7b8ed90e4bda0f8b6cd2;p=freeside.git diff --git a/httemplate/elements/select-table.html b/httemplate/elements/select-table.html index 8bcbf2504..c0dde7414 100644 --- a/httemplate/elements/select-table.html +++ b/httemplate/elements/select-table.html @@ -4,7 +4,9 @@ Example: include( '/elements/select-table.html', - #required + ## + # required + ## 'table' => 'table_name', 'name_col' => 'name_column', @@ -12,85 +14,167 @@ Example: 'curr_value' => 'current_value', #'value' => #deprecated form of 'curr_value', - #opt - 'empty_label' => '', #better specify it though, the default might change - 'hashref' => {}, - 'extra_sql' => '', - 'records' => \@records, #instead of hashref + ## + # optional + ## + + #search params + 'hashref' => {}, + 'addl_from' => '', + 'extra_sql' => '', + 'agent_virt' => 0, #set true and make sure the result is JOINed to + #something with agentnum (usually cust_main) + 'agent_null' => 0, #set true to always show un-agented entries + 'agent_null_right' => '', #right to see un-agented entries + #or + 'records' => \@records, #instead of search params + + #instead of the primary key... only for special cases + 'value_col' => 'columnname', + + #basic params controlling the resulting 'element_name' => '', #HTML element name, defaults to the name of # the primary key column 'field' => '', #synonym for element_name 'element_etc' => '', #additional attributes (i.e. "DISABLED") for the # NAME = "<% $opt{'element_name'} || $opt{'field'} || $key %>" + ID = "<% $opt{'id'} || $key %>" <% $onchange %> <% $opt{'element_etc'} %> > % while ( @pre_options ) { -