X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Felements%2Fpart_svc_column.html;h=64901a80f20a3a2acffb7885c2b7f1bf66ba292b;hb=ec9b0f903dfa57efc0c82791b9efa74f0c746bc0;hp=1c5b453146353430c2262b4b1bfbd36aa18ba44a;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;p=freeside.git diff --git a/httemplate/edit/elements/part_svc_column.html b/httemplate/edit/elements/part_svc_column.html index 1c5b45314..64901a80f 100644 --- a/httemplate/edit/elements/part_svc_column.html +++ b/httemplate/edit/elements/part_svc_column.html @@ -183,8 +183,8 @@ that field. 'curr_value' => $value, &> % } -% } elsif ( $def->{'type'} =~ /select-(.*?).html/ ) { - <& '/elements/'.$def->{'type'}, +% } elsif ( $def->{'type'} =~ /^select-(.*?)(.html)?$/ && $1 ne 'hardware' ) { + <& "/elements/select-$1.html", 'field' => $name, 'id' => $name.'_select', 'multiple' => $def->{'multiple'}, @@ -220,7 +220,7 @@ that field. 'name_col' => 'classname', 'curr_value' => $value, 'empty_label' => "Select $mode class", - 'multiple' => 0, + 'multiple' => $multiple, &> % } @@ -248,6 +248,19 @@ that field. % } +% # special case: services with attached routers (false laziness...) +% if ( $svcdb eq 'svc_acct' or $svcdb eq 'svc_broadband' or $svcdb eq 'svc_dsl' ) { +% push @fields, 'has_router'; + + + <% emt('This service has an attached router') %> + + + has_router ? 'CHECKED' : '' %>> + + +% } <& /elements/progress-init.html, $svcdb, #form name