You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 line
1.1KB

  1. <?php
  2. $userModule = $this->getUserModule();
  3. $producerManager = $this->getProducerModule()->getManager();
  4. $producerSignupRemainingPlaces = $producerManager->getProducerSignupRemainingPlaces();
  5. $userCurrent = $this->getUserCurrent();
  6. ?>
  7. <?php if($producerManager->isProducerSignupOpen()): ?>
  8. <a class="btn btn-primary"
  9. href="<?= Yii::$app->user->isGuest ? \Yii::$app->urlManagerFrontend->createUrl(['site/signup', 'type' => 'producer']) : \Yii::$app->urlManagerFrontend->createUrl(['site/signup-producer']); ?>">
  10. <i class="bi bi-shop"></i> Je crée mon espace producteur
  11. </a><br />
  12. <?php if($producerManager->getMaximumNumberProducers()): ?>
  13. <strong><?= ($producerSignupRemainingPlaces); ?></strong>
  14. place<?php if($producerSignupRemainingPlaces > 1): ?>s<?php endif; ?> restante<?php if($producerSignupRemainingPlaces > 1): ?>s<?php endif; ?>
  15. <?php endif; ?>
  16. <br />
  17. <br />
  18. <?php else: ?>
  19. <div class="label label-warning label-producer-signup-closed">
  20. La plateforme n'accueille pas de nouveaux producteurs pour le moment
  21. </div>
  22. <?php endif; ?>