diff --git a/template/mailboxes.php b/template/mailboxes.php index 1e53bc5..8ac0fd7 100644 --- a/template/mailboxes.php +++ b/template/mailboxes.php @@ -1,79 +1,73 @@ . /* * This is the template for the mailboxes list * * Called from: * template/domain.php */ // unuseful when load directly defined( 'BOZ_PHP' ) or die; // domain mailboxes $mailboxes = $domain->factoryMailbox() ->select( [ 'domain_name', 'mailbox_username', 'mailbox_receive', ] ) ->queryGenerator(); - -// total number of mailboxes -$count = DB::instance()->affectedRows(); - -// cache the value that can be useful -$domain->setDomainMailboxCount( $count ); ?>

null, ] ) ?> valid() ): ?>

getPlanName(), $plan->getPlanMailboxes(), __( "Mailboxes" ) ) ) ?>

-canCreateMailboxInDomain() ): ?> -

getDomainName() ), __( "Create" ) ) ?>

- +

getDomainName() ), __( "Create" ), [ + 'disabled' => !$domain->canCreateMailboxInDomain(), +] ) ?>