</div> </div> <div class="form-group"> <?php echo InputButton::widget(['label' => $model->isNewRecord ? Adm::t('', 'Create', ['dot' => false]) : Adm::t('', 'Update', ['dot' => false]), 'options' => ['class' => 'btn btn-primary'], 'input' => 'adm-redirect', 'name' => 'redirect', 'formSelector' => $form]); ?> <?php if ($model->isNewRecord) { ?> <?php echo InputButton::widget(['label' => Adm::t('', 'Create and insert new', ['dot' => false]), 'options' => ['class' => 'btn btn-primary'], 'input' => 'adm-redirect', 'name' => 'redirect', 'value' => Url::to(['create']), 'formSelector' => $form]); ?> <?php } ?> <?php echo InputButton::widget(['label' => $model->isNewRecord ? Adm::t('', 'Create and list', ['dot' => false]) : Adm::t('', 'Update and list', ['dot' => false]), 'options' => ['class' => 'btn btn-primary'], 'input' => 'adm-redirect', 'name' => 'redirect', 'value' => Url::to(['index']), 'formSelector' => $form]); ?> </div> <?php Adm::end('ActiveForm'); ?> </div>
</div> </div> <div class="col-xs-12 col-sm-6 col-md-6"> <div> <?php echo $form->field($model, 'webtools')->textarea(); ?> </div> </div> </div> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-12"> <div> <?php echo $form->field($model, 'active', ["template" => "{input}\n{label}\n{hint}\n{error}"])->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false]]); ?> </div> </div> </div> <p> <?php echo InputButton::widget(['label' => !isset(Yii::$app->params[Module::getInstance()->settingsKey]) ? Adm::t('', 'Create', ['dot' => false]) : Adm::t('', 'Update', ['dot' => false]), 'options' => ['class' => 'btn btn-primary'], 'input' => 'adm-redirect', 'name' => 'redirect', 'formSelector' => $form]); ?> </p> <?php ActiveForm::end(); ?> </div>
?> <?php echo $form->field($model, 'enable_smtp', ["template" => "{input}\n{label}\n{hint}\n{error}"])->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false]]); ?> </div> </div> <div class="form-group"> <?php echo InputButton::widget(['label' => Adm::t('', 'Update', ['dot' => false]), 'options' => ['class' => 'btn btn-primary'], 'input' => 'adm-redirect', 'name' => 'redirect', 'formSelector' => $form]); ?> <?php echo InputButton::widget(['label' => Adm::t('adm_email_config', 'Update and Test', ['dot' => false]), 'options' => ['class' => 'btn btn-primary'], 'input' => 'adm-redirect', 'name' => 'redirect', 'value' => Url::to('test'), 'formSelector' => $form]); ?> </div> <?php echo Adm::t('adm_email_config', 'Update and Test', ['dot' => '.']); ?> <?php echo Adm::t('adm_email_config', 'Test subject', ['dot' => '.']); ?> <?php echo Adm::t('adm_email_config', 'Test text', ['dot' => '.']); ?>
echo InputButton::widget(['label' => Adm::t('', 'Create and insert new', ['dot' => false]), 'options' => ['class' => 'btn btn-primary'], 'input' => 'adm-redirect', 'name' => 'redirect', 'value' => Url::to(['create']), 'formSelector' => $form]); ?> <?php } ?> <?php echo InputButton::widget(['label' => $model->isNewRecord ? Adm::t('', 'Create and list', ['dot' => false]) : Adm::t('', 'Update and list', ['dot' => false]), 'options' => ['class' => 'btn btn-primary'], 'input' => 'adm-redirect', 'name' => 'redirect', 'value' => Url::to(['index']), 'formSelector' => $form]); ?> <?php echo InputButton::widget(['label' => $model->isNewRecord ? Yii::t('adm-mailing', 'Create and Send', ['dot' => false]) : Yii::t('adm-mailing', 'Update and Send', ['dot' => false]), 'options' => ['class' => 'btn btn-primary'], 'input' => 'adm-redirect', 'name' => 'redirect', 'value' => Url::to(['send', 'id' => '{id}']), 'formSelector' => $form]); ?> <?php echo InputButton::widget(['label' => $model->isNewRecord ? Yii::t('adm-mailing', 'Create and Test', ['dot' => false]) : Yii::t('adm-mailing', 'Update and Test', ['dot' => false]), 'options' => ['class' => 'btn btn-primary pull-right'], 'input' => 'adm-redirect', 'name' => 'redirect', 'value' => Url::to(['test', 'id' => '{id}']), 'formSelector' => $form]); ?> </div> <?php Adm::end('ActiveForm'); ?> </div> <?php $this->registerJs(' var lang = ' . ($model->def_language_id ?: 'null') . '; $("#mailing-type").on("change", function(){