projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
24d450c
)
no need for a one-choice "Add new location" location dropdown on prospect add, RT...
author
Ivan Kohler
<ivan@freeside.biz>
Mon, 15 May 2017 23:18:19 +0000
(16:18 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Mon, 15 May 2017 23:18:19 +0000
(16:18 -0700)
httemplate/elements/select-cust_location.html
patch
|
blob
|
history
diff --git
a/httemplate/elements/select-cust_location.html
b/httemplate/elements/select-cust_location.html
index
29563c5
..
24df352
100644
(file)
--- a/
httemplate/elements/select-cust_location.html
+++ b/
httemplate/elements/select-cust_location.html
@@
-1,3
+1,13
@@
+% my @pre_options = $opt{pre_options} ? @{ $opt{pre_options} } : ();
+% if ( ! @pre_options
+% && ! $cust_main
+% && ! $opt{is_optional}
+% && ! @{ $opt{cust_location} }
+% && $addnew
+% ) {
+ <INPUT NAME="locationnum" ID="locationnum" TYPE="hidden" VALUE="-1">
+% } else {
+
<SELECT NAME = "locationnum"
ID = "locationnum"
% if ( $opt{onchange} ) {
<SELECT NAME = "locationnum"
ID = "locationnum"
% if ( $opt{onchange} ) {
@@
-6,7
+16,6
@@
>
% #false laziness w/select-table.html
>
% #false laziness w/select-table.html
-% my @pre_options = $opt{pre_options} ? @{ $opt{pre_options} } : ();
% while ( @pre_options ) {
% my $pre_opt = shift(@pre_options);
% my $pre_label = shift(@pre_options);
% while ( @pre_options ) {
% my $pre_opt = shift(@pre_options);
% my $pre_label = shift(@pre_options);
@@
-48,6
+57,7
@@
% }
</SELECT>
% }
</SELECT>
+% }
<%init>
my $conf = new FS::Conf;
<%init>
my $conf = new FS::Conf;