[freeside-commits] freeside/httemplate/edit part_svc.cgi, 1.79.2.1, 1.79.2.2
Ivan,,,
ivan at wavetail.420.am
Wed Jan 4 22:05:17 PST 2012
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv30643/httemplate/edit
Modified Files:
Tag: FREESIDE_2_3_BRANCH
part_svc.cgi
Log Message:
add selfservice_access selection to part_svc, RT#15628
Index: part_svc.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_svc.cgi,v
retrieving revision 1.79.2.1
retrieving revision 1.79.2.2
diff -u -w -d -r1.79.2.1 -r1.79.2.2
--- part_svc.cgi 11 Nov 2011 02:00:10 -0000 1.79.2.1
+++ part_svc.cgi 5 Jan 2012 06:05:14 -0000 1.79.2.2
@@ -9,8 +9,26 @@
Service Part #<% $part_svc->svcpart ? $part_svc->svcpart : "(NEW)" %>
<BR><BR>
Service <INPUT TYPE="text" NAME="svc" VALUE="<% $hashref->{svc} %>"><BR>
+
+Self-service access:
+<SELECT NAME="selfservice_access">
+% tie my %selfservice_access, 'Tie::IxHash', #false laziness w/browse/part_svc
+% '' => 'Yes',
+% 'hidden' => 'Hidden',
+% 'readonly' => 'Read-only',
+% ;
+% for (keys %selfservice_access) {
+ <OPTION VALUE="<% $_ %>"
+ <% $_ eq $hashref->{'selfservice_access'} ? 'SELECTED' : '' %>
+ ><% $selfservice_access{$_} %>
+% }
+</SELECT><BR>
+
<INPUT TYPE="checkbox" NAME="disabled" VALUE="Y"<% $hashref->{disabled} eq 'Y' ? ' CHECKED' : '' %>> Disable new orders<BR>
+
<INPUT TYPE="checkbox" NAME="preserve" VALUE="Y"<% $hashref->{'preserve'} eq 'Y' ? ' CHECKED' : '' %>> Preserve this service on package cancellation<BR>
+
+
<INPUT TYPE="hidden" NAME="svcpart" VALUE="<% $hashref->{svcpart} %>">
<BR>
@@ -80,6 +98,7 @@
% #'form_action' => 'process/part_svc.cgi',
% 'form_action' => 'part_svc.cgi', #self
% 'form_text' => [ qw( svc svcpart ) ],
+% 'form_select' => [ 'selfservice_access' ],
% 'form_checkbox' => [ 'disabled', 'preserve' ],
% 'layer_callback' => sub {
% my $layer = shift;
@@ -376,7 +395,8 @@
%
% $html .= include('/elements/progress-init.html',
% $layer, #form name
-% [ qw(svc svcpart disabled preserve exportnum),
+% [ qw(svc svcpart selfservice_access disabled preserve
+% exportnum),
% @fields ],
% 'process/part_svc.cgi',
% $p.'browse/part_svc.cgi',
More information about the freeside-commits
mailing list