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