From fbe1aa44eaae541972de2f16306b44db25677ccc Mon Sep 17 00:00:00 2001 From: Rob Lister Date: Mon, 22 Nov 2021 14:11:51 +0000 Subject: [PATCH] Display registered company details to member - Display registered company details to encourage members to contact us if it needs updating not just the billing info. - Make table heading style the same for AS-SETS - Remove useless help button under billing info --- .../dashboard/dashboard-tabs/details.foil.php | 161 ++++++++++++------ 1 file changed, 107 insertions(+), 54 deletions(-) diff --git a/resources/views/dashboard/dashboard-tabs/details.foil.php b/resources/views/dashboard/dashboard-tabs/details.foil.php index 1cff84920..123c8c107 100644 --- a/resources/views/dashboard/dashboard-tabs/details.foil.php +++ b/resources/views/dashboard/dashboard-tabs/details.foil.php @@ -1,6 +1,7 @@ isCustUser(); $c = $t->c; /** @var $c \IXP\Models\Customer */ + $rdetails = $c->companyRegisteredDetail; /** @var \IXP\Models\CompanyRegisteredDetail $rdetails */ ?>
@@ -65,7 +66,62 @@ + +

+ AS-SETS +

+ + + + + + + + + + + + + + + + + + + + + +
+ Peering Policy + + ee( $c->peeringpolicy ) ?> +
+ IRRDB source + + irrdb ): ?> + ee( $c->irrdbConfig->source )?> + + routeServerClient() && $c->irrdbFiltered() ): ?> + ( $c->id, "type" => 'prefix', "protocol" => $c->isIPvXEnabled( 4) ? 4 : 6 ] ) ?>">entries) + + + +
+ ASN + + asNumber( $c->autsys ) ?> +
+ IPv4 AS-SET + + ee( $c->peeringmacro ) ?> +
+ IPv6 AS-SET + + ee( $c->peeringmacrov6 ) ?> +
+ +
resellerMode() || !$c->resellerObject()->exists() ): ?>

@@ -148,68 +204,65 @@ class( "help-btn mb-sm-0 mb-2" ) + Former::primary_submit( 'Update Billing Details' ) ); ?> -

- -

- AS-SETS + Registration Details

+
+ To update these details, please contact us at
- - - - - - - + + + + + + + + + + + + + + + + + + + +
- Peering Policy - - ee( $c->peeringpolicy ) ?> -
- IRRDB source - - irrdb ): ?> - ee( $c->irrdbConfig->source )?> +
+ Registered Name + + ee( $rdetails->registeredName ) ?> +
+ Company Number + + ee( $rdetails->companyNumber ) ?> +
+ Jurisdiction + + ee( $rdetails->jurisdiction ) ?> +
+ Address + + address1 ): ?>ee( $rdetails->address1 ) ?>
+ address2 ): ?>ee( $rdetails->address2 ) ?>
+ address3 ): ?>ee( $rdetails->address3 ) ?>
+ townCity ): ?>ee( $rdetails->townCity ) ?>
+ postcode ): ?>ee( $rdetails->postcode ) ?> +
+ Country + + country ? array_column( Countries::getList(), 'name', 'iso_3166_2')[ $rdetails->country ] : null ?> +
+
- routeServerClient() && $c->irrdbFiltered() ): ?> - ( $c->id, "type" => 'prefix', "protocol" => $c->isIPvXEnabled( 4) ? 4 : 6 ] ) ?>">entries) - - - - - - - ASN - - - asNumber( $c->autsys ) ?> - - - - - IPv4 AS-SET - - - ee( $c->peeringmacro ) ?> - - - - - IPv6 AS-SET - - - ee( $c->peeringmacrov6 ) ?> - - - - - \ No newline at end of file +