|
- <?php
-
-
-
- use yii\helpers\Html ;
- use yii\widgets\ActiveForm;
-
- $this->setTitle('Envoyer un email') ;
- $this->addBreadcrumb(['label' => 'Communiquer', 'url' => ['user/index']]) ;
- $this->addBreadcrumb($this->getTitle()) ;
-
- ?>
-
- <div class="submenu">
- <a class="btn <?php if($section == 'producers'): ?>btn-primary<?php else: ?>btn-default<?php endif; ?>" href="<?= Yii::$app->urlManager->createUrl(['communicate-admin/index', 'section' => 'producers']); ?>">
- <span class="glyphicon glyphicon-grain"></span> Producteurs <span class="glyphicon glyphicon-triangle-bottom"></span>
- </a>
- <a class="btn <?php if($section == 'users'): ?>btn-primary<?php else: ?>btn-default<?php endif; ?>" href="<?= Yii::$app->urlManager->createUrl(['communicate-admin/index', 'section' => 'users']); ?>">
- <span class="glyphicon glyphicon-user"></span> Utilisateurs <span class="glyphicon glyphicon-triangle-bottom"></span>
- </a>
- </div>
-
- <div id="">
- <div class="col-md-6">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title">Envoyer un email</h3>
- </div>
- <div class="panel-body">
- <?php $form = ActiveForm::begin(); ?>
- <?= $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">
- <?= implode(', ', $usersArray); ?>
- </div>
- </div>
- </div>
- <div class="clr"></div>
- </div>
|