X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-table.html;h=1632b596adc1f7e77622666889d37802454c4cec;hb=8ad827f9de1dd45c354381a58a2609f0d59fd8e7;hp=d24c9abe4602b64bd576ce95002906733d997710;hpb=a1871d3d13c1dafa93b956762c0d23728d261da7;p=freeside.git diff --git a/httemplate/elements/select-table.html b/httemplate/elements/select-table.html index d24c9abe4..1632b596a 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,24 +14,47 @@ 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 #