Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 8 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\bootstrap\ActiveForm;
  4. /*
  5. * To change this license header, choose License Headers in Project Properties.
  6. * To change this template file, choose Tools | Templates
  7. * and open the template in the editor.
  8. */
  9. $this->title = 'Envoi d\'un email à tous les utilisateurs';
  10. ?>
  11. <h1><?= Html::encode($this->title) ?></h1>
  12. <?php
  13. $form = ActiveForm::begin(['id' => 'email-masse-form','enableClientValidation' => false]); ?>
  14. <?= $form->field($model, 'subject') ?>
  15. <?= $form->field($model, 'body')->textArea(['rows' => 6]) ?>
  16. <div class="form-group">
  17. <label class="control-label">Envoyer à</label>
  18. <p>Cliquer sur les utilisateurs pour modifier leur état.<br />
  19. Légende : <span class="label label-default">à envoyer</span> <span class="label label-danger">ne pas envoyer</span> <span class="label label-success">envoyé</span></p>
  20. <div id="ids-users">
  21. <?php foreach($users as $u): ?>
  22. <a href="javascript:void(0);" class="label <?php if($u->no_mail): ?>label-danger<?php else: ?>label-default<?php endif; ?>" data-send="0" data-id="<?php echo $u->id; ?>"><?php echo Html::encode($u->prenom.' '.$u->nom); ?></a>
  23. <?php endforeach; ?>
  24. </div>
  25. <input name="id_user" type="hidden" value="" />
  26. </div>
  27. <br />
  28. <div class="form-group">
  29. <?= Html::submitButton('Envoyer', ['class' => 'btn btn-default', 'name' => 'email-masse-button']) ?>
  30. </div>
  31. <?php ActiveForm::end(); ?>