X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-agent.html;h=986bbc0b1d9c6fcd0be59f503765fc43eb8e0561;hp=69cd95cb04fa474c06ddb33814f354f900987fa1;hb=dac9051f94d03903c00a46117f6edf8315ec57dc;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;ds=sidebyside diff --git a/httemplate/elements/tr-select-agent.html b/httemplate/elements/tr-select-agent.html index 69cd95cb0..986bbc0b1 100644 --- a/httemplate/elements/tr-select-agent.html +++ b/httemplate/elements/tr-select-agent.html @@ -1,18 +1,62 @@ -% if ( scalar(@agents) == 1 ) { +<%doc> - +Example: + include( '/elements/tr-select-agent.html', + + #recommended to keep things "sticky" on errors + 'curr_value' => $curr_value, + + ## + # optional + ## + + 'label' => 'Agent for this thing', + 'empty_label' => 'Select agent', #override default + 'disable_empty' => 1, + + #set to 'None' or something to override default of showing all agents + #for employees w/ 'View customers of all agents' right + viewall_right => 'None', + + ); + +%doc> + +% $required = '*' if $opt{'required'}; + +% if ( scalar(@agents) == 1 || $opt{'fixed'} ) { + + + +% if ( scalar(@agents) != 1 ) { +