diff options
author | ivan <ivan> | 2002-09-05 13:50:35 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-09-05 13:50:35 +0000 |
commit | 3566041f835ed1e823f0b949c01153a6c6fa1739 (patch) | |
tree | 15958e125d107bb5c9c98effaa7d91fa19fe3bf9 /httemplate | |
parent | 10ffb6447a6e045b379f38bb78a7cb154076c2fd (diff) |
don't show "clone an existing service definition" if there aren't any yet
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/browse/part_svc.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/browse/part_svc.cgi b/httemplate/browse/part_svc.cgi index 9fb359d1d..0a06d8ddb 100755 --- a/httemplate/browse/part_svc.cgi +++ b/httemplate/browse/part_svc.cgi @@ -25,11 +25,13 @@ function part_export_areyousure(href) { Services are items you offer to your customers.<BR><BR> -<FORM METHOD="POST" ACTION="<%= $p %>edit/part_svc.cgi"><A HREF="<%= $p %>edit/part_svc.cgi"><I>Add a new service definition</I></A> or <SELECT NAME="clone"><OPTION></OPTION> +<FORM METHOD="POST" ACTION="<%= $p %>edit/part_svc.cgi"> +<A HREF="<%= $p %>edit/part_svc.cgi"><I>Add a new service definition</I></A><% if ( @part_svc ) { %> or <SELECT NAME="clone"><OPTION></OPTION> <% foreach my $part_svc ( @part_svc ) { %> <OPTION VALUE="<%= $part_svc->svcpart %>"><%= $part_svc->svc %></OPTION> <% } %> </SELECT><INPUT TYPE="submit" VALUE="Clone existing service"> +<% } %> </FORM><BR> <%= $total %> services |