Exemple #1
0
            <?php 
echo $form->field($model, 'img')->widget(FileInput::classname(), ['name' => 'image-member', 'pluginOptions' => ['showCaption' => false, 'showRemove' => false, 'showUpload' => false, 'browseClass' => 'btn btn-primary btn-block', 'browseIcon' => '<i class="glyphicon glyphicon-camera"></i> ', 'browseLabel' => yii::t('advertise', 'Select Photo')], 'options' => ['accept' => 'image/*']]);
?>
            <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>
            <?php 
echo $form->field($model, 'start_at')->widget(DateTimePicker::classname(), ['type' => DateTimePicker::TYPE_COMPONENT_PREPEND, 'options' => ['placeholder' => 'Enter event time ...'], 'value' => '23-Feb-1982 01:10', 'layout' => '{picker}{input}', 'pluginOptions' => ['autoclose' => true, 'todayHighlight' => true, 'todayBtn' => true, 'format' => 'mm/dd/yyyy hh:ii:ss']]);
?>

            <?php 
echo $form->field($model, 'end_at')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => 'Enter event time ...'], 'layout' => '{picker}{input}', 'pluginOptions' => ['autoclose' => true, 'todayHighlight' => true, 'todayBtn' => true, 'format' => 'mm/dd/yyyy hh:ii:ss']]);
?>

            <?php 
echo $form->field($model, 'is_show')->widget(CheckboxX::classname(), ['autoLabel' => false, 'pluginOptions' => ['threeState' => false, 'size' => 'md']])->label("Is Show");
?>

            <?php 
echo $form->field($model, 'link')->textInput(['maxlength' => true]);
?>
            <?php 
echo $form->field($model, 'body')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'advanced']);
?>
            <?php 
$langues = BLanguecenter::find()->where(['is_show' => 1])->orderBy('ordinal_view ASC')->all();
$id = '';
$name = '';
if ($langues) {
    foreach ($langues as $category) {
        $id[] = $category->ID;
Exemple #2
0
                </label>
                <i class="fa fa-chevron-right chevron"></i>
            </div>

            <div class="wrapper location" style="border-top:none;margin-bottom:10px !important;">

                <?php 
echo $form->field($model, 'user_id')->textInput(['maxlength' => true]);
?>

                <?php 
echo $form->field($model, 'new_req')->checkbox(['labelOptions' => []]);
?>

                <?php 
echo $form->field($model, 'upd_req')->widget(CheckboxX::classname(), ['pluginOptions' => ['size' => 'sm']]);
?>

                <?php 
echo $form->field($model, 'del_req')->checkbox();
?>

                <?php 
echo $form->field($model, 'exp_req')->checkbox();
?>

                <?php 
echo $form->field($model, 'succ_req')->checkbox();
?>

                <?php 
Exemple #3
0
			<div class="reg-header">
				<h2>用户登陆</h2>
			</div>

			<?php 
echo $form->field($model, 'login', ['addon' => ['prepend' => ['content' => '<i class="fa fa-user"></i>']], 'template' => "{input}", 'inputOptions' => ['autofocus' => 'autofocus', 'class' => 'form-control', 'tabindex' => '1', 'placeholder' => '用户名或者邮箱']]);
?>

			<?php 
echo $form->field($model, 'password', ['addon' => ['prepend' => ['content' => '<i class="fa fa-lock"></i>']], 'template' => "{input}", 'inputOptions' => ['autofocus' => 'autofocus', 'class' => 'form-control', 'tabindex' => '2', 'placeholder' => '密码']])->passwordInput();
?>

			<div class="row">
				<div class="col-md-6">
					<?php 
echo $form->field($model, 'rememberMe', ['template' => '{input}{label}', 'labelOptions' => ['class' => 'cbx-label']])->widget(\kartik\checkbox\CheckboxX::classname(), ['autoLabel' => false]);
?>
				</div>
				<div class="col-md-6">
					<?php 
echo Html::submitButton(Yii::t('user', 'Sign in'), ['class' => 'btn-u pull-right', 'tabindex' => '3']);
?>
				</div>
			</div>
			<?php 
echo $form->errorSummary($model);
?>

			<hr>
			<h4>忘记密码?</h4>
Exemple #4
0
?>
       
        </div>    
    </div>     
    <?php 
if ($model->avatar) {
    ?>
        <?php 
    echo Html::img('avatars/' . $model->avatar, ['class' => 'img-responsive', 'width' => '150px;']);
    ?>
    <?php 
}
?>
 
              
        <?php 
echo $form->field($model, 'status')->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false]])->label('ทำงานอยู่');
?>
    
    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>

</div>
Exemple #5
0
                                    <?php 
echo CheckboxX::widget(['name' => 'mail', 'value' => '1', 'options' => ['id' => 'mail'], 'pluginOptions' => ['threeState' => false, 'size' => 'sm']]);
?>
                                    <label for="text1" class="control-label">Mail Module</label>
                                </div>

                                <div class="col-md-4" style="margin-bottom:10px;">
                                    <?php 
echo CheckboxX::widget(['name' => 'menu', 'value' => '0', 'options' => ['id' => 'menu'], 'pluginOptions' => ['threeState' => false, 'size' => 'sm']]);
?>
                                    <label for="text1" class="control-label">Menu Module</label>
                                </div>

                                <div class="col-md-4" style="margin-bottom:10px;">
                                    <?php 
echo CheckboxX::widget(['name' => 'tags', 'value' => '0', 'options' => ['id' => 'tags'], 'pluginOptions' => ['threeState' => false, 'size' => 'sm']]);
?>
                                    <label for="text1" class="control-label">Tags Module</label>
                                </div>

                                <div class="col-md-12" style="margin-bottom:10px;">
                                    <a href="<?php 
echo Url::toRoute('/site/login', true);
?>
" class="btn btn-sm btn-primary pull-right finish_btn">Finish</a>
                                </div>

                            </div>
                            
                        </div>
                        
Exemple #6
0
    ?>
    <?php 
}
?>
    <?php 
echo $form->field($profile, 'file')->fileInput();
?>
    <?php 
echo $form->field($profile, 'location');
?>
   <?php 
echo $form->field($profile, 'birthday')->widget(DatePicker::className(), ['inline' => false, 'clientOptions' => ['autoclose' => false, 'format' => 'yyyy-mm-dd']]);
?>

    <?php 
echo $form->field($profile, 'subscribe')->widget(CheckboxX::classname());
?>
    
    

    <div class="form-group">
        <div class="col-lg-offset-3 col-lg-9">
            <?php 
echo Html::submitButton(Yii::t('user', 'Update'), ['class' => 'btn btn-block btn-success']);
?>
        </div>
    </div>

    <?php 
ActiveForm::end();
?>
                                                    <label for="s_1">Gallery?</label>
                                                </div></div>


                                                <div class="col-md-6" style="padding:0;"><div style="margin-top:5px;">
                                                    
                                                    <?php 
        echo CheckboxX::widget(['name' => 's_2' . $key->id, 'value' => $key->is_banner, 'options' => ['id' => 'isbanner_' . $key->id], 'pluginOptions' => ['threeState' => false, 'size' => 'sm']]);
        ?>
                                                    <label for="s_1">Banner?</label>
                                                </div></div>

                                                <div class="col-md-6" style="padding:0;"><div style="margin-top:5px;">
                                                    
                                                    <?php 
        echo CheckboxX::widget(['name' => 's_3' . $key->id, 'value' => $key->is_hover, 'options' => ['id' => 'ishover' . $key->id], 'pluginOptions' => ['threeState' => false, 'size' => 'sm']]);
        ?>
                                                    <label for="s_1">Hover?</label>
                                                </div></div>

                                            <div class="image_upload_cont_btn_panel col-md-12" style="padding:0;">
                                                <button name="save" class="btn btn-xs btn-primary image_save_btn_product" data_id="<?php 
        echo $key->id;
        ?>
">Save</button>
                                                <button name="save" class="btn btn-xs btn-danger image_delete_btn_product" data_id="<?php 
        echo $key->id;
        ?>
">Delete</button>
                                            </div>
                                        </div>
Exemple #8
0
    <?php 
echo $form->field($user, 'status')->dropDownList($user::statusDropdown(), ['readonly' => $readOnly, 'disabled' => $disabled]);
?>

    <?php 
// use checkbox for ban_time
?>
    <?php 
// convert `ban_time` to int so that the checkbox gets set properly
?>
    <?php 
$user->ban_time = $user->ban_time ? 1 : 0;
?>

    <?php 
echo $form->field($user, 'ban_time')->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false], 'readonly' => $readOnly])->label('Заблокирован');
?>

    <?php 
echo $form->field($user, 'ban_reason');
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($user->isNewRecord ? Yii::t('user', 'Создать') : Yii::t('user', 'Изменить'), ['class' => $user->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>
Exemple #9
0
?>
">
        </div>

		<div class="" style="margin-top:5px;">
            <label for="s_1">Is Gallery Photo?</label>
            <?php 
echo CheckboxX::widget(['name' => 's_1' . $id, 'value' => $model->is_gallery, 'options' => ['id' => 'isgallery_' . $id], 'pluginOptions' => ['threeState' => false, 'size' => 'sm']]);
?>
        </div>


        <div class="" style="margin-top:5px;">
            <label for="s_1">Is Banner Photo?</label>
            <?php 
echo CheckboxX::widget(['name' => 's_2' . $id, 'value' => $model->is_banner, 'options' => ['id' => 'isbanner_' . $id], 'pluginOptions' => ['threeState' => false, 'size' => 'sm']]);
?>
        </div>

		<div class="image_upload_cont_btn_panel">
            <button name="save" class="btn btn-xs btn-primary page_image_info_save_btn" data_id="<?php 
echo $id;
?>
">Save</button>
            <button name="save" class="btn btn-xs btn-default image_delete_btn" data_id="<?php 
echo $id;
?>
">Delete</button>
        </div>
	</div>
</li>
Exemple #10
0
        ?>

                    <?php 
        foreach ($item['items'] as $child) {
            ?>
                        <?php 
            if (isset($child['key'])) {
                ?>
                            <div style="padding-left: 30px;">
                                <?php 
                if (!isset($model->items[$child['key']])) {
                    $model->items[$child['key']] = 1;
                }
                ?>
                                <?php 
                echo $form->field($model, 'items[' . $child['key'] . ']', ['template' => '{input}{label}'])->label($child['label'])->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false]]);
                ?>
                            </div>
                        <?php 
            }
            ?>
                    <?php 
        }
        ?>
                <?php 
    }
    ?>
            </div>
        <?php 
}
?>
Exemple #11
0
    <label class="cbx-label" for="s_<?php 
echo $model->id;
?>
">
    <div class="card_container record-270 grid-item fadeInUp animated" id="card_container" style="">        
            <div class="media-area square">                
                <div class="image">
                    <?php 
echo Html::img('@web/images/cards/info/info_docs' . rand(0, 9) . '.jpg');
?>
                                        
                </div>
                <div class="primary-context in-media dark">
                    <div class="head"><?php 
echo $model->name;
?>
</div>
                </div>
                <div class="action-area" style="height:40px; position: absolute; top:0; right:0;">
                    <?php 
echo CheckboxX::widget(['name' => 's_' . $model->id, 'options' => ['id' => 's_' . $model->id], 'pluginOptions' => ['threeState' => false, 'size' => 'xl']]);
?>
                </div> 
            </div>            
                  
    </div>
    </label>
<?php 
ActiveForm::end();
?>
    
Exemple #12
0
?>

    <?php 
echo $form->field($model_trans, 'hint')->textArea(['rows' => 4]);
?>

    <?php 
echo $form->field($model, 'type')->dropDownList(['1' => 'number', '2' => 'radio', '21' => 'radioButton', '22' => 'radio', '23' => 'radioButton', '3' => 'select', '31' => 'select2', '32' => 'select_media', '4' => 'multiselect', '41' => 'checkboxButton', '42' => 'multiselect_select', '43' => 'multiselect_select2', '44' => 'multiselect_media', '5' => 'checkbox', '6' => 'text', '7' => 'textarea', '8' => 'slider', '9' => 'range', '10' => 'date', '11' => 'time', '12' => 'datetime', '13' => 'email', '14' => 'url', '15' => 'color', '16' => 'date range'], ['prompt' => '']);
?>

    <?php 
echo $form->field($model, 'multiple_values')->widget(CheckboxX::classname(), ['pluginOptions' => ['size' => 'sm']]);
?>

    <?php 
echo $form->field($model, 'translatable_values')->widget(CheckboxX::classname(), ['pluginOptions' => ['size' => 'sm']]);
?>

    <?php 
echo $form->field($model, 'class')->dropDownList(['types' => 'types', 'product' => 'product', 'time' => 'time', 'parts' => 'parts', 'models' => 'models', 'number' => 'number', 'string' => 'string', 'other' => 'drugo'], ['prompt' => '']);
?>

    <?php 
echo $form->field($model, 'description')->dropDownList(['specs' => 'svojstvo predmeta', 'methods' => 'svojstvo akcije', 'skills' => 'svojstvo delatnosti'], ['prompt' => '']);
?>

    <div class="row" style="margin:20px;">
        <div class="col-md-offset-3">
            <?php 
echo !$model->isNewRecord ? Html::a('Go Back', Url::to(['view', 'id' => $model->id]), ['class' => 'btn btn-default']) : null;
?>
Exemple #13
0
<?php

/**
 * Created by PhpStorm.
 * User: vadim
 * Date: 05.03.16
 * Time: 15:59
 */
echo $form->field($model, 'category_id')->widget(\kartik\widgets\Select2::className(), ['data' => \yii\helpers\ArrayHelper::map(\app\modules\news\models\NewsCategory::find()->all(), 'id', 'name'), 'addon' => ['prepend' => ['content' => \yii\bootstrap\Html::icon('list')]]]);
?>

<?php 
echo $form->field($model, 'layout')->widget(\kartik\select2\Select2::className(), ['data' => Yii::$app->controller->getLayouts(), 'options' => ['placeholder' => 'Значение по умолчанию'], 'addon' => ['prepend' => ['content' => \yii\bootstrap\Html::icon('open-file')]]]);
?>

<?php 
echo $form->field($model, 'date_public')->widget(\kartik\widgets\DatePicker::className(), ['type' => \kartik\widgets\DatePicker::TYPE_COMPONENT_APPEND, 'value' => \Yii::$app->formatter->asDate(new \DateTime(), 'short'), 'pluginOptions' => ['autoclose' => true]]);
?>

<?php 
echo $form->field($model, 'locked', ['template' => '{input}{label}{error}{hint}'])->widget(\kartik\checkbox\CheckboxX::className(), ['pluginOptions' => ['threeState' => false]]);
Exemple #14
0
            <?php 
echo $form->field($model, 'address')->textInput(['maxlength' => true]);
?>

            <?php 
echo $form->field($model, 'schedule')->textInput(['maxlength' => true]);
?>

            <?php 
echo $form->field($model, 'url')->textInput(['maxlength' => true]);
?>
            <?php 
echo $form->field($model, 'is_show')->widget(CheckboxX::classname(), ['autoLabel' => false, 'pluginOptions' => ['threeState' => false, 'size' => 'md']]);
?>
            <?php 
echo $form->field($model, 'active')->widget(CheckboxX::classname(), ['autoLabel' => false, 'pluginOptions' => ['threeState' => false, 'size' => 'md']]);
?>
            <?php 
echo $form->field($model, 'ordinal_view')->textInput(['maxlength' => true]);
?>
            <div class="form-group">
                <?php 
echo Html::submitButton($model->isNewRecord ? yii::t('languecenter', 'Create') : yii::t('languecenter', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
            </div>
        </div>
        
    </div>
    <?php 
ActiveForm::end();
?>
Exemple #15
0
    <div class="row">
        <div class="col-md-6">
            <?php 
echo $form->field($model, 'username')->textInput(['maxlength' => 255, 'disabled' => true]);
?>
            
            <?php 
echo $form->field($model, 'email')->textInput(['maxlength' => 255]);
?>

        </div>
        <div class="col-md-6">
            <p>&nbsp;</p>
            <?php 
echo $form->field($model, 'flags')->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false]]);
?>
            <?php 
// $form->field($model, 'role')->dropDownList(app\models\User::$roles)
?>



        </div>
  
    </div>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
Exemple #16
0
//use \yii\bootstrap\ActiveForm;
use yii\bootstrap\ActiveForm;
use kartik\checkbox\CheckboxX;
use app\models\Question;
/* @var $this yii\web\View */
/* @var $model app\models\User */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="user-form">
    <div class="form-group">
        <?php 
$form = ActiveForm::begin(['options' => ['class' => 'required-asterisk']]);
?>
        <?php 
echo $form->field($model, 'is_active')->textInput()->widget(CheckboxX::classname(), ['class' => 'form-control form-field-short', 'pluginOptions' => ['threeState' => false]]);
?>

        <?php 
echo $form->field($model, 'first_name')->textInput(['maxlength' => true, 'class' => 'form-control form-field-short']);
?>

        <?php 
echo $form->field($model, 'last_name')->textInput(['maxlength' => true, 'class' => 'form-control form-field-short']);
?>

        <?php 
echo $form->field($model, 'email')->textInput(['maxlength' => true, 'class' => 'form-control form-field-short']);
?>

        <?php 
Exemple #17
0
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="badvertise-view">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <div class='row'>
        <div class='center-block'>
            <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['id', 'name', ['attribute' => 'image', 'value' => $model->getImageUrl(), 'format' => ['image', ['height' => '200']]], 'start_at', 'end_at', 'link:url', 'type', 'position']]);
?>
            <label class="cbx-label" for="s_2">Is Show:</label>
                <?php 
echo CheckboxX::widget(['model' => $model, 'attribute' => 'is_show', 'readonly' => true, 'pluginOptions' => ['threeState' => false, 'size' => 'md']]);
?>
            <p>
                <br>
            <?php 
if (\Yii::$app->user->can('manage-advertise')) {
    echo Html::a(Yii::t('advertise', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']);
    echo Html::a(Yii::t('backend', 'Delete'), ['delete', 'id' => $model->id], ['class' => 'btn btn-danger', 'data' => ['confirm' => 'Are you sure you want to delete this item?', 'method' => 'post']]);
}
?>
            </p>
        </div>
    </div>
    

</div>
Exemple #18
0
use dosamigos\selectize\SelectizeDropDownList;
use yii\helpers\Url;
use kartik\select2\Select2;
use yii\helpers\ArrayHelper;
use common\models\Amplua;
/* @var $this yii\web\View */
/* @var $model common\models\Composition */
$this->title = 'Добавить игрока в состав';
$this->params['breadcrumbs'][] = ['label' => 'Составы команд матчей', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="composition-create">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <?php 
$form = ActiveForm::begin(['id' => 'team' . $model->command_id . '-player-add-form']);
echo $form->field($contractModel, 'player_id')->widget(SelectizeDropDownList::classname(), ['loadUrl' => Url::to(['player/player-list']), 'options' => ['multiple' => false], 'clientOptions' => ['valueField' => 'value', 'labelField' => 'text', 'persist' => false]]);
echo $form->field($contractModel, 'amplua_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(Amplua::find()->all(), 'id', 'name'), 'language' => 'ru', 'options' => ['placeholder' => 'Выберите амплуа...'], 'pluginOptions' => ['allowClear' => true]]);
echo $form->field($contractModel, 'number')->textInput();
echo $form->field($model, 'is_basis')->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false], 'options' => ['id' => 'team' . $model->command_id . '-create-is_basis']]);
echo $form->field($model, 'is_captain')->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false], 'options' => ['id' => 'team' . $model->command_id . '-create-is_captain']]);
echo Html::submitButton('Добавить', ['class' => 'btn btn-primary']);
ActiveForm::end();
?>

</div>
echo Select2::widget(['name' => 'params', 'value' => $paramsValue, 'options' => ['multiple' => true, 'placeholder' => Adm::t('', 'Select ...', ['dot' => false])], 'data' => $data, 'pluginOptions' => ['tags' => true, 'maximumInputLength' => 250, 'tokenSeparators' => [EmailConfig::EMAIL_SEPARATOR]]]);
?>
            </div>
        </div>

        <div class="col-xs-12 col-sm-4 col-md-4 readonly-cont">
            <?php 
echo $form->field($model, 'username')->textInput(['maxlength' => 250]);
?>

            <?php 
echo $form->field($model, 'password')->textInput(['maxlength' => 250]);
?>

            <?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]);
?>

Exemple #20
0
    ?>
</td>
        </tr>
        <tr>
            <td>
                <?php 
    echo $model->signature_img ? Html::img(Yii::$app->homeUrl . $model->signature_img, ['style' => 'width: 250px']) : '';
    ?>
            </td>
            <td></td>
        </tr>
    </table>
    </div>
<p>
    <?php 
    echo $form->field($model, 'fin')->widget(CheckboxX::classname(), ['name' => 's_1', 'value' => '1', 'options' => ['id' => 'agree'], 'pluginOptions' => ['threeState' => false]])->label('I agree to the terms of the above agreement');
    ?>
</p>
    <div class="btn-nav">
        <?php 
    echo Html::a('Change Your Info', ['create', 'status' => 'change'], ['class' => 'btn btn-default']);
    ?>
        <?php 
    echo Html::submitButton('Submit The Waiver', ['id' => 'btn-create', 'class' => 'btn btn-primary', 'disabled' => true]);
    ?>
    </div>
    <?php 
    ActiveForm::end();
}
if (Yii::$app->session->getFlash('Success')) {
    ?>
Exemple #21
0
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
?>

    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'image')->widget(FileInput::classname(), ['pluginOptions' => ['allowedFileExtensions' => ['jpg', 'gif', 'png'], 'language' => 'de', 'showCaption' => false, 'showRemove' => false, 'showUpload' => false, 'browseClass' => 'btn btn-primary btn-block', 'browseIcon' => '<i class="glyphicon glyphicon-camera"></i> ', 'browseLabel' => 'Select Image', 'initialPreview' => [$model->getImageTag('thumb')]], 'options' => ['accept' => 'image/*']]);
?>

    <?php 
echo $form->field($model, 'content')->widget('common\\widgets\\Redactor');
?>

    <?php 
echo $form->field($model, 'status')->widget(CheckboxX::classname(['initInputType' => CheckboxX::INPUT_CHECKBOX]), ['pluginOptions' => ['threeState' => false]]);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('Article', 'Create') : Yii::t('Article', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>

</div>
Exemple #22
0
    <div class="row">
        <div class="col-lg-5">
            <?php 
$form = ActiveForm::begin(['id' => 'login-form']);
?>

                <?php 
echo $form->field($model, 'login');
?>

                <?php 
echo $form->field($model, 'password')->passwordInput();
?>

                <?php 
echo $form->field($model, 'rememberMe', ['template' => '{input}{label}{error}{hint}', 'labelOptions' => ['class' => 'cbx-label']])->widget(CheckboxX::classname(), ['autoLabel' => false, 'pluginOptions' => ['threeState' => false, 'size' => 'md']]);
?>

                <div style="color:#999;margin:1em 0">
                    If you forgot your password you can <?php 
echo Html::a('reset it', ['site/request-password-reset']);
?>
.
                </div>

                <div class="form-group">
                    <?php 
echo Html::submitButton('Login', ['class' => 'btn btn-primary', 'name' => 'login-button']);
?>
                </div>
Exemple #23
0
?>
    <label class="cbx-label" for="s_1">
    <div class="card_container record-md grid-item fadeInUp animated" id="card_container" style="float:none;">        
            <div class="media-area square">                
                <div class="image">
                    <?php 
echo Html::img('@web/images/cards/info/info_docs' . rand(0, 9) . '.jpg');
?>
                                        
                </div>
                <div class="primary-context in-media dark">
                    <div class="head">Quis nostrud exercitation erasten aboris nisi ut aliquip</div>
                </div>
                <div class="action-area" style="height:40px; position: absolute; top:0; right:0;">
                    <?php 
echo CheckboxX::widget(['name' => 's_1', 'options' => ['id' => 's_1'], 'pluginOptions' => ['threeState' => false]]);
?>
                </div> 
            </div>            
                  
    </div>
    </label>
    <?php 
ActiveForm::end();
?>

    <div class="card_container record-md grid-item fadeInUp animated" id="card_container" style="float:none;">
        <a href="<?php 
echo Url::to('/services');
?>
">
Exemple #24
0
echo $form->field($model, 'applicationName')->textInput(['maxlength' => 255]);
?>
            <?php 
echo $form->field($model, 'description')->textInput(['maxlength' => 255]);
?>
            <?php 
echo $form->field($model, 'sms')->widget(CheckboxX::classname(), ['autoLabel' => true]);
?>
            <?php 
echo $form->field($model, 'sms_key')->textInput(['maxlength' => true]);
?>
            <?php 
echo $form->field($model, 'sms_pass')->textInput(['maxlength' => true]);
?>
            <?php 
echo $form->field($model, 'gcm')->widget(CheckboxX::classname(), ['autoLabel' => true]);
?>
            <?php 
echo $form->field($model, 'gcm_sender')->textInput(['maxlength' => true]);
?>
            <?php 
echo $form->field($model, 'gcm_api_key')->textInput(['maxlength' => true]);
?>

        </div>
        <div role="tabpanel" class="tab-pane" id="application">
            <div class="row" >
                <h5> </h5>
            </div>

            <?php