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.

21 lines
950B

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