diff options
author | Mitch Jackson <mitch@freeside.biz> | 2017-12-19 13:09:13 -0600 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2017-12-19 17:15:18 -0600 |
commit | efa77ef0e8309528eb3b613a5b28d173f765b6c3 (patch) | |
tree | 273ba2ee7d87681e1bf96d04ba496f4bea510bad /httemplate | |
parent | 8c04f3676f1e83393432a0ba899ec5b7fea4afe0 (diff) |
rt# 74031 implementing svc_realestate
- updated schema
- updated includes
- begin writing FS::svc_realestate.pm
- progress adding a "Real estate unit" selection to
provision a real estate service
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/docs/part_svc-table.html | 7 | ||||
-rw-r--r-- | httemplate/edit/elements/part_svc_column.html | 3 | ||||
-rwxr-xr-x | httemplate/edit/part_svc.cgi | 5 |
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> - - - |