|
- <?php
-
-
-
- use yii\helpers\Html ;
- use yii\widgets\ActiveForm;
-
- $this->setTitle('Envoyer un email') ;
- $this->addBreadcrumb(['label' => 'Utilisateurs', 'url' => ['user/index']]) ;
- $this->addBreadcrumb($this->getTitle()) ;
-
- ?>
-
- <?=
-
- $this->render('_menu',[
- 'idPointSaleActive' => $idPointSaleActive,
- 'sectionInactiveUsers' => isset($sectionInactiveUsers) ? $sectionInactiveUsers : null,
- 'sectionSubscribers' => isset($sectionSubscribers) ? $sectionSubscribers: null,
- 'pointsSaleArray' => $pointsSaleArray,
- 'section' => 'mail'
- ]) ;
-
- ?>
-
- <div id="">
- <div class="col-md-6">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title">Envoyer un message</h3>
- </div>
- <div class="panel-body">
- <?php $form = ActiveForm::begin(); ?>
- <?= $form->field($mailForm, 'id_distribution')->dropDownList($incomingDistributionsArray)
- ->hint("Sélectionnez une distribution pour ajouter automatiquement au message :<br /><ul><li>un lien vers la prise de commande de cette distribution</li><li>la liste des produits disponibles pour cette distribution</li></ul>"); ?>
- <?= $form->field($mailForm, 'subject')->textInput() ; ?>
- <?= $form->field($mailForm, 'message')->textarea(['rows' => '15']) ; ?>
- <div class="form-group">
- <?= Html::submitButton( 'Envoyer', ['class' => 'btn btn-primary']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
- </div>
- </div>
- <div class="col-md-6">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title">
- Liste des emails <span class="label label-default"><?= count($usersArray); ?></span>
- </h3>
- </div>
- <div class="panel-body">
-
- <?php if($idPointSaleActive): ?>
- <a class="btn btn-xs <?php if($usersPointSaleLink): ?>btn-primary<?php else: ?>btn-default<?php endif; ?>" href="<?= Yii::$app->urlManager->createUrl(['user/mail','idPointSale' => $idPointSaleActive, 'usersPointSaleLink' => 1]); ?>">Liés au point de vente</a>
- <a class="btn btn-xs <?php if($usersPointSaleHasOrder): ?>btn-primary<?php else: ?>btn-default<?php endif; ?>" href="<?= Yii::$app->urlManager->createUrl(['user/mail','idPointSale' => $idPointSaleActive, 'usersPointSaleHasOrder' => 1]); ?>">Déjà commandés dans ce point de vente</a>
- <br /><br />
- <?php endif; ?>
-
- <?= implode(', ', $usersArray); ?>
- </div>
- </div>
- </div>
- <div class="clr"></div>
- </div>
-
|