default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / httemplate / elements / select-realestate_location.html
1 <%doc>
2
3   Displays a selectbox populated with values from realestate_location.
4   key:   realestate_location.realestatenum
5   value: realestate_location.location_title
6
7 </%doc>
8
9 <% include( '/elements/select-table.html',
10     %opt,
11     table         => 'realestate_location',
12     name_col      => 'location_title',
13     hashref       => { 'disabled' => '' },
14     value         => $select_value,
15     disable_empty => 1,
16   )
17 %>
18
19 <%init>
20
21 #
22 # possible todo:
23 # I'd like to change the behavior of this select based on if
24 # a new item is being created, or an existing item being edited
25
26 my %opt = @_;
27 my $select_value = $opt{'curr_value'} || $opt{'value'};
28
29 # use Data::Dumper qw(Dumper);
30 # print Dumper(\%opt);
31
32 </%init>