/
var
/
www
/
vhosts
/
nabawater
/
backend
/
views
/
push-notification
/
/var/www/vhosts/nabawater/backend/views/push-notification
mkdir
upload
Name
Size
Mode
Actions
create.php
371
0644
edit
dl
rm
_form.php
1536
0644
edit
dl
rm
Edit:
/var/www/vhosts/nabawater/backend/views/push-notification/_form.php
(1536B)
<?php use backend\components\CActiveForm; use yii\helpers\Html; use backend\models\City; /* @var $this \yii\web\View */ /* @var $model \backend\models\PushNotification */ $form = CActiveForm::begin()->setModel($model); ?> <div class="card-body"> <h4 class="card-title"><?= $this->title; ?></h4> <hr> <div class ="col-md-12"> <?= $form->field($model, 'app_type')->dropDownList($model->getAppType(), ['prompt' => yii::t('backend','Please select an Option'), 'class' => 'select2 form-control']) ?> </div> <div class="col-md-12"> <?= $form->field($model, 'title')->textInput(); ?> </div> <?php /* <div class ="col-md-12"> <?= $form->field($model, 'city_id')->dropDownList(City::getCityData(), ['prompt' => yii::t('backend','Please select an Option'), 'class' => 'select2 form-control', 'multiple' => true]) ?> </div> */ ?> <div class ="col-md-12"> <?= $form->field($model, 'message')->textarea()?> </div> <div class= "col-md-12 text-center"> <?= Html::submitButton(yii::t('backend','Send'), ['class' => 'btn btn-success']) ?> </div> </div> <?php CActiveForm::end(); ?> <script type="text/javascript"> runOnLoad(function() { $('#pushnotification-message').hide(); $("#pushnotification-message").emojioneArea({ hideSource: false, pickerPosition : "bottom", filtersPosition : "bottom", autocomplete : false, }); $('.select2').select2(); }) </script>
Save
cmd:
run