summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/docs/part_svc-table.html7
-rw-r--r--httemplate/edit/elements/part_svc_column.html3
-rwxr-xr-xhttemplate/edit/part_svc.cgi5
3 files changed, 10 insertions, 5 deletions
diff --git a/httemplate/docs/part_svc-table.html b/httemplate/docs/part_svc-table.html
index 820d0b9cc..56a4d0e8c 100644
--- a/httemplate/docs/part_svc-table.html
+++ b/httemplate/docs/part_svc-table.html
@@ -39,6 +39,7 @@
<TR>
<TH ALIGN="left">Hosting</TH>
<TH ALIGN="left">Colocation</TH>
+ <TH ALIGN="left">Real Estate</TH>
</TR>
<TD VALIGN="top">
<UL STYLE="margin:0">
@@ -54,6 +55,11 @@
<LI><B>svc_port</B>: Customer router/switch port
</UL>
</TD>
+ <TD VALIGN="top">
+ <UL STYLE="margin:0">
+ <LI><B>svc_realestate</B>: Real estate properties
+ </UL>
+ </TD>
</TR>
<TABLE>
<!-- <LI>svc_charge - One-time charges (Partially unimplemented)
@@ -62,4 +68,3 @@
</BODY>
</HTML>
-
diff --git a/httemplate/edit/elements/part_svc_column.html b/httemplate/edit/elements/part_svc_column.html
index 816f3428b..ecf8eff9a 100644
--- a/httemplate/edit/elements/part_svc_column.html
+++ b/httemplate/edit/elements/part_svc_column.html
@@ -35,6 +35,9 @@ tie my %flag, 'Tie::IxHash',
'A' => { 'desc' => 'Automatically fill in from inventory',
'condition' => $inv_sub,
},
+ 'R' => { 'desc' => 'Manual selection from real estate',
+ 'condition' => $inv_sub,
+ },
'H' => { 'desc' => 'Select from hardware class',
'condition' => sub { $_[0]->{type} ne 'select-hardware' },
},
diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi
index fed21256f..3018e3a0a 100755
--- a/httemplate/edit/part_svc.cgi
+++ b/httemplate/edit/part_svc.cgi
@@ -68,7 +68,7 @@ function flag_changed(obj) {
// for fields that have both 'input' and 'select', 'select' is 'select from
// inventory class'.
var select = document.getElementById(layer + '__' + field + '_select');
- if (newflag == "" || newflag == "X") { // disable
+ if (newflag == "" || newflag == "X" || newflag == 'R' ) { // disable
if ( input ) {
input.disabled = true;
input.className = 'disabled';
@@ -280,6 +280,3 @@ my $widget = new HTML::Widgets::SelectLayers(
}
);
</%init>
-
-
-