?>

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

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

    <label><?php 
echo Yii::t('app', 'Gender');
?>
</label>
    <?php 
echo SwitchInput::widget(['model' => $model, 'attribute' => 'gender', 'pluginOptions' => ['size' => 'medium', 'onColor' => 'success', 'offColor' => 'success', 'onText' => Yii::t('app', 'Male'), 'offText' => Yii::t('app', 'Female')]]);
?>

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

    <label><?php 
echo Yii::t('app', 'Birth Date');
?>
</label>

    <?php 
echo DatePicker::widget(['attribute' => 'birth_date', 'model' => $model, 'options' => ['placeholder' => 'Select date ...'], 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'autoclose' => true, 'todayHighlight' => false]]);
?>
Beispiel #2
0
?>

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

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

    <?php 
echo $form->field($model, 'alias')->textInput(['maxlength' => true]);
?>
    <?php 
use kartik\switchinput\SwitchInput;
echo $form->field($model, 'has_preset')->widget(SwitchInput::className(), ['type' => SwitchInput::CHECKBOX, 'inlineLabel' => true, 'pluginOptions' => ['size' => 'large', 'labelText' => '<i class="glyphicon glyphicon-list"></i>', 'onText' => Yii::t('app', 'Есть набор'), 'offText' => Yii::t('app', 'Нет набора')]]);
?>
    <hr class="clearfix">

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

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

</div>
Beispiel #3
0
BackendWidget::begin(['title' => Yii::t('app', 'Discount'), 'icon' => 'shekel', 'footer' => $this->blocks['submit']]);
?>
            <?php 
echo $form->field($model, 'name');
?>
            <?php 
echo $form->field($model, 'appliance')->dropDownList($model->applianceValues);
?>
            <?php 
echo $form->field($model, 'value');
?>
            <?php 
echo $form->field($model, 'apply_order_price_lg');
?>
            <?php 
echo $form->field($model, 'value_in_percent')->widget(\kartik\switchinput\SwitchInput::className());
?>
            <?php 
BackendWidget::end();
?>
        </article>
    </div>
    <?php 
ActiveForm::end();
?>

    <?php 
if (!$model->isNewRecord) {
    ?>
        <div class="row">
            <?php 
Beispiel #4
0
<?php

use yii\bootstrap\Html;
use yii\widgets\ActiveForm;
use kartik\switchinput\SwitchInput;
$form = ActiveForm::begin(['id' => 'formDefault', 'options' => ['enctype' => 'multipart/form-data']]);
?>
<div class="btn-group">
<?php 
echo Html::a('Create', ['/diy/default/create'], ['class' => 'btn btn-success', 'style' => 'margin: 20px 0;']);
echo Html::submitButton('Save', ['class' => 'btn btn-success', 'style' => 'margin: 20px 0;']);
?>
</div>
<div>
    <?php 
echo $form->field($model, 'title')->textInput();
echo $form->field($model, 'status')->widget(SwitchInput::className(['type' => SwitchInput::RADIO]));
ActiveForm::end();
?>
</div>
Beispiel #5
0
    </div>

    <div class="row">
        <div class="col-sm-6">
            <?php 
echo $form->field($model, 'handshake_key')->textInput(['maxlength' => true, 'placeholder' => Yii::t('webhooks', 'Your handshake key')]);
?>
        </div>
        <div class="col-sm-3">
            <?php 
echo $form->field($model, 'status')->widget(SwitchInput::className());
?>
        </div>
        <div class="col-sm-3">
            <?php 
echo $form->field($model, 'json')->widget(SwitchInput::className());
?>
        </div>
    </div>

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

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

</div>
        <div class="col-sm-4">     
            <?php 
echo $form->field($model, 'nombre')->textInput();
?>
        </div>

        <div class="col-sm-4">     
            <?php 
echo $form->field($model, 'nroInventario')->textInput();
?>
        </div>

        <div class="col-sm-4">

        <?php 
echo $form->field($model, 'publicar_id')->widget(SwitchInput::classname(), ['pluginOptions' => ['onText' => 'Si', 'offText' => 'No'], 'inlineLabel' => false]);
?>
        </div>
  

    </div>
   
    
    <?php 
echo Html::hiddenInput('fechaIngreso', $model->fechaIngreso);
echo Html::hiddenInput('ingreso_id', $model->ingreso_id);
$dataForma = ArrayHelper::map(\app\models\FormaIngreso::find()->asArray()->all(), 'id', 'nombre');
echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 6, 'attributes' => ['nroA' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Número A..', 'addon' => ['append' => ['content' => '.00']]]], 'nroB' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Número B..']], 'nroC' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Número C..']], 'nroD' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Número D..']], 'descEpoca' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Epoca...']], 'codformaing' => ['type' => Form::INPUT_WIDGET, 'label' => 'Tipo de Ingreso', 'widgetClass' => '\\kartik\\widgets\\Select2', 'options' => ['data' => $dataForma]]]]);
$dataCopia = ArrayHelper::map(\app\models\Copia::find()->asArray()->all(), 'id', 'nombre');
$dataEstado = ArrayHelper::map(\app\models\Estado::find()->asArray()->all(), 'id', 'nombre');
$dataTipo = ArrayHelper::map(\app\models\TipoAcervo::find()->asArray()->all(), 'id', 'descripcion');
        </div>
    </div>
    <div class="col-sm-6">
        <div class="box box-solid">
            <div class="box-header with-border">
                <?php 
echo Icon::show('cog');
?>
                <h3 class="box-title"><?php 
echo Yii::t('dotplant.currencies', 'Currency formatting');
?>
</h3>
            </div>
            <div class="box-body">
                <?php 
echo $form->field($model, 'intl_formatting')->widget(SwitchInput::classname(), []);
?>
                <?php 
echo $form->field($model, 'min_fraction_digits');
?>
                <?php 
echo $form->field($model, 'max_fraction_digits');
?>
                <?php 
echo $form->field($model, 'dec_point');
?>
                <?php 
echo $form->field($model, 'thousands_sep');
?>
                <?php 
echo $form->field($model, 'format_string');
Beispiel #8
0
					</div>
					<div class="row">
						<div class="col-md-12">
							<?php 
echo $form->field($model, 'in_filter')->widget(SwitchInput::className(), ['type' => SwitchInput::CHECKBOX, 'inlineLabel' => true, 'pluginOptions' => ['size' => 'large', 'labelText' => '<i class="glyphicon glyphicon-list"></i>', 'onText' => Yii::t('app', 'IN_FILTER'), 'offText' => Yii::t('app', 'NOT_IN_FILTER')]]);
?>

						</div>
					</div>

				</div>
			</div>
			<div class="row">
				<div class="col-md-4">
					<?php 
echo $form->field($model, 'active')->widget(SwitchInput::className(), ['type' => SwitchInput::CHECKBOX, 'inlineLabel' => true, 'pluginOptions' => ['size' => 'large', 'labelText' => '<i class="glyphicon glyphicon-gift"></i>', 'onText' => Yii::t('app', 'Активен'), 'offText' => Yii::t('app', 'Неактивен')]]);
?>

				</div>
				<div class="col-md-4">
					<?php 
echo $form->field($model, 'sort')->textInput(['size' => 5]);
?>

				</div>
			</div>
		</div>
		<div class="col-md-5">
			<?php 
if (!$model->isNewRecord && in_array($model->type->alias, ArrayHelper::merge(MyHelper::TYPES_WITH_PRESET_ARRAY, MyHelper::TYPES_WITH_MULTIPLE_PRESET_ARRAY))) {
    ?>
Beispiel #9
0
    <div class="row">
        <div
            class="col-lg-6"> <?php 
echo $form->field($model, 'description_ar')->textarea(['style' => 'min-height: 200px;']);
?>
</div>
        <div
            class="col-lg-6"> <?php 
echo $form->field($model, 'description_en')->textarea(['style' => 'min-height: 200px;']);
?>
</div>
    </div>
    <div class="row">
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'video_lang')->widget(SwitchInput::classname(), ['name' => 'video_lang', 'pluginOptions' => ['onText' => 'Arabic', 'offText' => 'English', 'onColor' => 'success', 'offColor' => 'info']]);
?>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'tags')->widget(Select2::classname(), ['data' => Tags::getTagsList(), 'size' => Select2::MEDIUM, 'options' => ['placeholder' => 'Select tags for this video', 'multiple' => true], 'pluginOptions' => ['tags' => true, 'allowClear' => true]]);
?>
        </div>

    </div>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
Beispiel #10
0
use frontend\helper\StatusHelper;
use kartik\sortable\Sortable;
use kartik\switchinput\SwitchInput;
use yii\helpers\Html;
use yii\widgets\Pjax;
/* @var $modelAll frontend\models\Category */
$this->title = 'Категории';
$this->params['breadcrumbs'][] = $this->title;
$list = [];
/** @var \frontend\models\Category $model */
foreach ($modelAll as $model) {
    $switch = SwitchInput::widget(['name' => 'status_' . $model->id, 'value' => StatusHelper::getValueForHtml($model->status), 'options' => ['class' => 'switchInputCategory'], 'pluginOptions' => ['onText' => 'Отображать', 'offText' => 'Скрыть', 'onColor' => 'success', 'offColor' => 'danger', 'size' => 'small'], 'pluginEvents' => ["switchChange.bootstrapSwitch" => 'function(event, state) {
                                                    $.ajax({
                                                            url: "' . Yii::$app->urlManager->createUrl(["category/hidden-category", 'id' => $model->id]) . '",
                                                            type: "post",
                                                            data: {"value": +state},
                                                            cache: false,
                                                            success: function(data) {}
                                                    });
                                                }']]);
    $remove = '';
    if (!isset($model->base_category_id)) {
        $remove = Html::a('', Yii::$app->urlManager->createUrl(['category/remove', 'id' => $model->id]), ['class' => 'btn btn-danger glyphicon glyphicon-remove management-help', 'data-pjax' => 'false', 'data' => ['confirm' => 'Вы уверены, что хотите удалить категорию?', 'method' => 'post']]);
    }
    $list[] = ['content' => '
                        <div class="col-md-8">' . $model->title . '</div>
                        <div class="col-md-2">' . $switch . '</div>
                        <div class="col-md-2">' . Html::a('', Yii::$app->urlManager->createUrl(['category/edit', 'id' => $model->id]), ['class' => 'btn btn-info glyphicon glyphicon-pencil management-help', 'data-pjax' => 'false']) . $remove . '</div>', 'options' => ['data-icat' => $model->id]];
}
?>
Beispiel #11
0
<?php

use yii\helpers\Html;
use kartik\widgets\ActiveField;
use kartik\switchinput\SwitchInput;
use yii\helpers\ArrayHelper;
$model_object_property->value = $objectProperty->value_default;
echo $form->field($model_object_property, '[' . $key . ']value', ['hintType' => ActiveField::HINT_SPECIAL, 'hintSettings' => ['onLabelClick' => true, 'onLabelHover' => false, 'title' => '<i class="glyphicon glyphicon-info-sign"></i> Napomena']])->widget(SwitchInput::classname(), ['value' => true, 'containerOptions' => ['style' => 'margin-left:0;'], 'pluginOptions' => ['onText' => 'Da', 'offText' => 'Ne', 'size' => 'large', 'inlineLabel' => false]])->label(c($property->label))->hint($property->tHint);
</h5>
	<h5 style="color: #000000">From - <?php 
echo $prof_info->user_from_city . ", " . $prof_info->user_from_state . " ";
?>
</h5>
	</a>
	<h5 style="color: #000000">Revenue - <?php 
echo $name->designer_revenue;
?>
</h5>
	<h5>
	<?php 
echo '<label class="control-label">Want Investment</label>';
?>
	<?php 
echo SwitchInput::widget(['name' => 'status_13', 'pluginOptions' => ['onText' => 'Yes', 'offText' => 'No', 'size' => 'mini']]);
?>
</h5>
	</div>
	<div class="col-xs-3">
	<?php 
$endorsementmodel = new Endorsement(['sense_of_fashion' => $endorsement->sense_of_fashion, 'sense_of_style' => $endorsement->sense_of_style, 'creativity' => $endorsement->creativity, 'decisiveness' => $endorsement->decisiveness]);
?>
	
	<table>
	<tr>
	<td style="padding: 5px;">
	<label class="control-label" for="endorsement-decisiveness">Sense of Fashion</label>
	</td>
	<!-- Background image below can be changed but it has to have same height and width as below column-->
	<td background="uploads/siteimages/star.jpg" style="height:50px;width:80px">
Beispiel #13
0
 */
use yii\widgets\Pjax;
use kartik\switchinput\SwitchInput;
\meican\circuits\assets\reservation\Status::register($this);
$this->params['header'] = [Yii::t('circuits', 'Status'), ['Home', Yii::t('circuits', 'Circuits'), 'Status']];
?>

<div class="box box-default">
    <div class="box-header with-border">
        <h3 class="box-title"><?php 
echo Yii::t("circuits", "Circuits");
?>
</h3>
        <div class="box-tools pull-right">
            <?php 
echo SwitchInput::widget(['id' => 'auto-refresh-switch', 'name' => 'auto-refresh', 'value' => true, 'pluginOptions' => ['size' => 'small', 'labelText' => 'Auto update']]);
?>
        </div>
    </div>
    <div class="box-body">   
        <?php 
Pjax::begin(['id' => 'circuits-pjax']);
?>

        <?php 
echo $this->render('_grid', array('gridId' => 'circuits-grid', 'data' => $data, 'searchModel' => $searchModel, 'allowedDomains' => $allowedDomains));
?>
        
        <?php 
Pjax::end();
?>
Beispiel #14
0
                    <div class="col-sm-offset-3 col-sm-6">
                        <button type="submit" class="btn btn-primary"><?php 
echo Yii::t("topology", 'Save');
?>
</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-4">
        <div class="box box-default">
            <div class="box-header with-border">
                <h3 class="box-title">Schedule</h3>
                <div class="box-tools" style="margin-right:10px;">
                    <?php 
echo $form->field($model, 'freq_enabled')->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'small']])->label('');
?>
                </div>
            </div>
            <div class="box-body">
                <div id="cron-widget"></div>
            </div>
            <div class="box-footer">
            </div>
        </div>
    </div>
</div>

<?php 
ActiveForm::end();
    <?php 
echo ' <span class="optional">(opciono)</span>';
?>
    <i class="fa fa-chevron-right chevron"></i>
</div>

<div class="wrapper notshown body fadeIn animated" style="border-top:none;">
<?php 
echo $this->render('../_hint.php', ['message' => $message]);
// echo '<pre>';print_r($model_action_properties); die();
foreach ($model_action_properties as $model_action_property) {
    $actionProperty = $model_action_property->actionProperty;
    $property = $model_action_property->property;
    $serviceActionProperty = $model_action_property->serviceActionProperty;
    echo ($serviceActionProperty and $serviceActionProperty->readOnly == 0) ? $this->render('actionProperty/' . $property->formType($object_ownership) . '.php', ['form' => $form, 'key' => $property->id, 'model_action_property' => $model_action_property, 'actionProperty' => $actionProperty, 'property' => $property, 'service' => $service]) : null;
}
if ($service->shipping == 1) {
    $model->shipping = 1;
    ?>
		<?php 
    echo $form->field($model, 'shipping', ['hintType' => ActiveField::HINT_SPECIAL, 'hintSettings' => ['onLabelClick' => true, 'onLabelHover' => false, 'title' => '<i class="glyphicon glyphicon-info-sign"></i> Napomena']])->widget(SwitchInput::classname(), ['value' => true, 'containerOptions' => ['style' => 'margin-left:0;'], 'pluginOptions' => ['onText' => 'Da', 'onColor' => 'info', 'offText' => 'Ne', 'size' => 'large', 'inlineLabel' => false]])->label('Dostava na adresu?')->hint('Ukoliko želite da opisani ' . $service->object->tName . ' bude i isporučen na Vašu željenu adresu, izaberite ovu opciju.');
}
if ($service->installation == 1) {
    $model->installation = 1;
    ?>
		<?php 
    echo $form->field($model, 'installation', ['hintType' => ActiveField::HINT_SPECIAL, 'hintSettings' => ['onLabelClick' => true, 'onLabelHover' => false, 'title' => '<i class="glyphicon glyphicon-info-sign"></i> Napomena']])->widget(SwitchInput::classname(), ['value' => true, 'containerOptions' => ['style' => 'margin-left:0;'], 'pluginOptions' => ['onText' => 'Da', 'onColor' => 'info', 'offText' => 'Ne', 'size' => 'large', 'inlineLabel' => false]])->label('Ugradnja?')->hint('Ukoliko želite da Vam pružalac usluge/prodavac opisani ' . $service->object->tName . ' i ugradi, montira odnosno instalira, izaberite ovu opciju.');
}
?>
    
</div>
Beispiel #16
0
<div class="gallery-form">
    <?php 
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
?>

    <div class="row">
        <div class="col-md-10">
            <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => 50]);
?>
        </div>

        <div class="col-md-2">
            <?php 
echo $form->field($model, 'status')->widget(SwitchInput::className(), ['pluginOptions' => ['size' => 'small', 'onColor' => 'success', 'offColor' => 'danger']]);
?>
        </div>
    </div>

    <?php 
echo Html::hiddenInput('positions', null, ['name' => 'positions', 'id' => 'positions']);
?>

    <div class="row">
        <div class="col-md-12">
            <div class="form-group">
                <?php 
if ($model->isNewRecord) {
    ?>
                    <div class="alert alert-info alert-dismissible" role="alert">
Beispiel #17
0
echo $form->field($model, 'name');
?>

            <?php 
echo $form->field($model, 'price', ['addon' => ['append' => ['content' => Html::activeDropDownList($model, 'currency_id', app\modules\shop\models\Currency::getSelection())]]]);
?>

            <?php 
echo $form->field($model, 'price_is_multiplier')->widget(\kartik\switchinput\SwitchInput::className());
?>

            <?php 
echo $form->field($model, 'add_to_order')->widget(\kartik\switchinput\SwitchInput::className());
?>
            <?php 
echo $form->field($model, 'can_change_quantity')->widget(\kartik\switchinput\SwitchInput::className());
?>
            <?php 
echo $form->field($model, 'measure_id')->dropDownList(\app\components\Helper::getModelMap(\app\modules\shop\models\Measure::className(), 'id', 'name'));
?>


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

        </article>



Beispiel #18
0
echo $form->field($model, 'content')->textarea(['rows' => 6]);
?>

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

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

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

    <?php 
echo $form->field($model, 'aprooved')->widget(SwitchInput::classname(), ['type' => SwitchInput::CHECKBOX, 'name' => 'active', 'value' => false]);
?>

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

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

</div>
Beispiel #19
0
Modal::end();
?>

<?php 
Modal::begin(['id' => 'edit-modal', 'header' => 'Edit', 'footer' => '<button type="button" class="confirm-btn btn btn-primary">Confirm</button>' . '<button type="button" class="btn btn-default undo-btn">Undo changes</button>' . '<button type="button" class="btn btn-default close-btn">Close</button>']);
$form = ActiveForm::begin(['id' => 'edit-form', 'action' => ['connection/update'], 'enableAjaxValidation' => true]);
?>

<input name="ConnectionForm[id]" value="<?php 
echo $conn->id;
?>
" hidden>

<?php 
$editForm = new ConnectionForm();
echo $form->field($editForm, 'acceptRelease')->widget(SwitchInput::classname(), ['pluginOptions' => ['onText' => 'Yes', 'offText' => 'No']]);
echo $form->field($editForm, 'bandwidth')->widget(TouchSpin::classname(), ['pluginOptions' => ['postfix' => 'Mbps', 'verticalbuttons' => true, 'verticalupclass' => 'fa fa-plus', 'verticaldownclass' => 'fa fa-minus', 'min' => 10, 'max' => 1000000, 'step' => 10]]);
echo $form->field($editForm, 'start')->widget(DateTimePicker::classname(), ['pluginOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy hh:ii']]);
echo $form->field($editForm, 'end')->widget(DateTimePicker::classname(), ['pluginOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy hh:ii']]);
ActiveForm::end();
?>

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

<?php 
Modal::begin(['id' => 'cancel-modal', 'header' => 'Cancel', 'footer' => '<button type="button" class="btn btn-danger confirm-btn">Confirm</button>' . '<button type="button" class="btn btn-default close-btn">Close</button>']);
?>

Do you want cancel this circuit?
Beispiel #20
0
            <div class="col-sm-2">
                <?php 
// use checkbox for ban_time
?>
                <?php 
// convert `ban_time` to int so that the checkbox gets set properly
?>
                <div class="form-group">
                    <?php 
$user->ban_time = $user->ban_time ? 1 : 0;
?>
                    <?php 
// Html::activeCheckbox($user, 'ban_time', ['label' => Yii::t('app', 'Banned') ]);
?>
                    <?php 
echo $form->field($user, 'ban_time')->widget(SwitchInput::classname(), ['pluginEvents' => ["switchChange.bootstrapSwitch" => "function(event, state) {\n                                console.log(event, state);\n                                if( state == true ) {\n                                    \$('#banReason').show();\n                                } else {\n                                    \$('#banReason').hide();\n                                }\n                            }"]])->label(Yii::t('app', 'Banned'));
?>
                    <?php 
echo Html::error($user, 'ban_time');
?>
                </div>
            </div>
            <div class="col-sm-10" id="banReason" style="display: none">
                <?php 
echo $form->field($user, 'ban_reason')->textInput(['placeholder' => Yii::t('app', 'When the user tries to log in,
                    it shows this message.')]);
?>
            </div>
        </div>
    </fieldset>
    <fieldset>
<?php

/** @var \app\modules\config\models\Configurable $configurable */
/** @var \app\backend\components\ActiveForm $form */
/** @var \app\modules\review\models\ConfigConfigurationModel $model */
use app\backend\widgets\BackendWidget;
?>

<div class="row">
    <div class="col-md-6 col-sm-12">
        <?php 
BackendWidget::begin(['title' => Yii::t('app', 'Main settings'), 'options' => ['class' => 'visible-header']]);
?>
        <?php 
echo $form->field($model, 'maxPerPage');
?>
        <?php 
echo $form->field($model, 'pageSize');
?>
        <?php 
echo $form->field($model, 'enableSpamChecking')->widget(\kartik\switchinput\SwitchInput::className());
?>
        <?php 
BackendWidget::end();
?>
    </div>
</div>
Beispiel #22
0
    <?php 
echo $form->field($model, 'py_name')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'initial')->widget(\yii\widgets\MaskedInput::className(), ['mask' => 'A']);
?>

    <?php 
echo $form->field($model, 'show_type_name')->widget(SwitchInput::classname(), ['type' => SwitchInput::RADIO, 'items' => $model->showTypeNameItems]);
?>
    <?php 
echo $form->field($model, 'logo')->widget(CoreFileInput::classname(), []);
?>

    <?php 
echo $form->field($model, 'is_show')->widget(SwitchInput::classname(), ['pluginOptions' => ['onText' => '是', 'offText' => '否']]);
?>
</div>
<div class="box-footer">
    <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>
<?php 
ActiveForm::end();
?>


Beispiel #23
0
$this->endBlock('submit');
?>

<section id="widget-grid">
    <div class="row">
        <article class="<?php 
echo Helper::getBackendGridClass('shop', ShopModule::BACKEND_CATEGORY_GRID, 1);
?>
">

            <?php 
BackendWidget::begin(['title' => Yii::t('app', 'Category'), 'icon' => 'tree', 'footer' => $this->blocks['submit']]);
?>

            <?php 
echo $form->field($model, 'active')->widget(\kartik\switchinput\SwitchInput::className());
?>

            <?php 
if ($model->parent_id == 0) {
    ?>
                <?php 
    echo $form->field($model, 'category_group_id')->dropDownList(\app\components\Helper::getModelMap(\app\modules\shop\models\CategoryGroup::className(), 'id', 'name'));
    ?>
            <?php 
}
?>

            <?php 
echo $form->field($model, 'name');
?>
Beispiel #24
0
    echo $form->field($wareHouseOpeningHours, 'wednesday')->widget(\kartik\switchinput\SwitchInput::className());
    ?>
            <?php 
    echo $form->field($wareHouseOpeningHours, 'thursday')->widget(\kartik\switchinput\SwitchInput::className());
    ?>
            <?php 
    echo $form->field($wareHouseOpeningHours, 'friday')->widget(\kartik\switchinput\SwitchInput::className());
    ?>
            <?php 
    echo $form->field($wareHouseOpeningHours, 'saturday')->widget(\kartik\switchinput\SwitchInput::className());
    ?>
            <?php 
    echo $form->field($wareHouseOpeningHours, 'sunday')->widget(\kartik\switchinput\SwitchInput::className());
    ?>
            <?php 
    echo $form->field($wareHouseOpeningHours, 'all_day')->widget(\kartik\switchinput\SwitchInput::className());
    ?>




            <?php 
    BackendWidget::end();
    ?>
        </article>
        <?php 
    ActiveForm::end();
    ?>
    <?php 
}
?>
Beispiel #25
0
echo $form->field($model_notifications, 'qty', ['hintType' => ActiveField::HINT_SPECIAL, 'hintSettings' => ['onLabelClick' => true, 'onLabelHover' => false, 'title' => '<i class="glyphicon glyphicon-info-sign"></i> Napomena']])->widget(SwitchInput::classname(), ['value' => true, 'pluginOptions' => ['onText' => 'Da', 'onColor' => 'info', 'offText' => 'Ne', 'inlineLabel' => false]])->hint('');
?>
			<?php 
$model_notifications->consumer = true;
?>
			<?php 
echo $form->field($model_notifications, 'consumer', ['hintType' => ActiveField::HINT_SPECIAL, 'hintSettings' => ['onLabelClick' => true, 'onLabelHover' => false, 'title' => '<i class="glyphicon glyphicon-info-sign"></i> Napomena']])->widget(SwitchInput::classname(), ['value' => true, 'pluginOptions' => ['onText' => 'Da', 'onColor' => 'info', 'offText' => 'Ne', 'inlineLabel' => false]])->hint('');
?>
			<?php 
$model_notifications->price = true;
?>
			<?php 
echo $form->field($model_notifications, 'price', ['hintType' => ActiveField::HINT_SPECIAL, 'hintSettings' => ['onLabelClick' => true, 'onLabelHover' => false, 'title' => '<i class="glyphicon glyphicon-info-sign"></i> Napomena']])->widget(SwitchInput::classname(), ['value' => true, 'pluginOptions' => ['onText' => 'Da', 'onColor' => 'info', 'offText' => 'Ne', 'inlineLabel' => false]])->hint('');
?>
			<?php 
$model_notifications->issues = true;
?>
			<?php 
echo $form->field($model_notifications, 'issues', ['hintType' => ActiveField::HINT_SPECIAL, 'hintSettings' => ['onLabelClick' => true, 'onLabelHover' => false, 'title' => '<i class="glyphicon glyphicon-info-sign"></i> Napomena']])->widget(SwitchInput::classname(), ['value' => true, 'pluginOptions' => ['onText' => 'Da', 'onColor' => 'info', 'offText' => 'Ne', 'inlineLabel' => false]])->hint('');
?>
			<?php 
$model_notifications->availability = true;
?>
			<?php 
echo $form->field($model_notifications, 'availability', ['hintType' => ActiveField::HINT_SPECIAL, 'hintSettings' => ['onLabelClick' => true, 'onLabelHover' => false, 'title' => '<i class="glyphicon glyphicon-info-sign"></i> Napomena']])->widget(SwitchInput::classname(), ['value' => true, 'pluginOptions' => ['onText' => 'Da', 'onColor' => 'info', 'offText' => 'Ne', 'inlineLabel' => false]])->hint('');
?>
	</div>
<?php 
echo $this->render('_submitButton.php');
?>
</div>
Beispiel #26
0
<?php

use yii\helpers\Html;
use kartik\widgets\ActiveField;
use kartik\switchinput\SwitchInput;
use yii\helpers\ArrayHelper;
$model_method->value = isset($input[$index]['value']) ? $input[$index]['value'] : null;
echo $form->field($model_method, '[' . $index . ']value', ['hintType' => ActiveField::HINT_SPECIAL, 'hintSettings' => ['onLabelClick' => true, 'onLabelHover' => false, 'title' => '<i class="glyphicon glyphicon-info-sign"></i> Napomena']])->widget(SwitchInput::classname(), ['value' => true, 'pluginOptions' => ['onText' => 'Da', 'offText' => 'Ne', 'inlineLabel' => false]])->label(c($property->label))->hint($property->tHint);
Beispiel #27
0
        <?php 
echo Yii::t('app', 'Za koliko osoba?');
?>
    </label>
    <?php 
echo $service->consumer == 2 ? ' <span class="optional">(opciono)</span>' : '';
?>
    <i class="fa fa-chevron-down chevron"></i>
</div>

<div class="wrapper body fadeIn animated" style="border-top:none;" id="sections09">
<?php 
echo $this->render('../_hint.php', ['message' => $message]);
?>
    <?php 
echo $form->field($model, 'consumerConstCheck', ['hintType' => ActiveField::HINT_SPECIAL, 'hintSettings' => ['onLabelClick' => true, 'onLabelHover' => false, 'title' => '<i class="glyphicon glyphicon-info-sign"></i> Pribor i oprema']])->widget(SwitchInput::classname(), ['containerOptions' => ['style' => 'margin-left:0;'], 'pluginOptions' => ['onText' => 'Da', 'onColor' => 'info', 'offText' => 'Ne', 'size' => 'large', 'inlineLabel' => false]])->hint('');
?>
    <div class="form-group kv-fieldset-inline consumer-container" style="display:none;">
        <?php 
echo Html::activeLabel($model, 'consumer_min', ['label' => 'Minimalan broj korisnika', 'class' => 'col-sm-3 control-label']);
?>
        <div class="col-sm-3" style="padding:0">
            <?php 
echo $form->field($model, 'consumer_min', ['addon' => ['append' => ['content' => '<i class="fa fa-user"></i>'], 'groupOptions' => ['class' => '']], 'feedbackIcon' => ['success' => 'ok', 'error' => 'exclamation-sign', 'successOptions' => ['class' => 'text-primary', 'style' => 'padding-right:25%'], 'errorOptions' => ['class' => 'text-primary', 'style' => 'padding-right:25%; top: 6px;']], 'hintType' => ActiveField::HINT_SPECIAL, 'hintSettings' => ['onLabelClick' => true, 'onLabelHover' => false, 'title' => '<i class="glyphicon glyphicon-info-sign"></i> Napomena'], 'showLabels' => false])->input('number', ['min' => $service->consumer_range_min, 'max' => $service->consumer_range_max, 'step' => $service->consumer_range_step])->hint('');
?>
        </div>
        <div class="col-sm-4" style="padding-right:0">
            <?php 
echo $form->field($model, 'consumer_max', ['addon' => ['append' => ['content' => '<i class="fa fa-user"></i>'], 'groupOptions' => ['class' => '']], 'feedbackIcon' => ['success' => 'ok', 'error' => 'exclamation-sign', 'successOptions' => ['class' => 'text-primary', 'style' => 'padding-right:25%'], 'errorOptions' => ['class' => 'text-primary', 'style' => 'padding-right:25%; top: 6px;']], 'hintType' => ActiveField::HINT_SPECIAL, 'hintSettings' => ['onLabelClick' => true, 'onLabelHover' => false, 'title' => '<i class="glyphicon glyphicon-info-sign"></i> Napomena']])->input('number', ['min' => $service->consumer_range_min, 'max' => $service->consumer_range_max, 'step' => $service->consumer_range_step])->label('Maksimalan');
?>
        </div>
Beispiel #28
0
?>

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

    <?php 
echo $form->field($model, 'phone')->widget(MaskedInput::className(), ['mask' => '8 (999) 999-99-99']);
?>
    
    <?php 
echo $form->field($model, 'email')->textInput(['maxlength' => true]);
?>
    
    <?php 
echo $form->field($model, 'reserved')->widget(SwitchInput::classname(), ['type' => SwitchInput::CHECKBOX]);
echo $form->field($model, 'visited')->hiddenInput()->label(false);
//        echo $form->field($model, 'visited')->widget(SwitchInput::classname(), [
//             'type' => SwitchInput::CHECKBOX
//            ]);
?>
    
    
    

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Добавить' : 'Изменить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
?>
    <br />

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

    <?php 
BackendWidget::begin(['title' => Yii::t('app', 'Warehouse'), 'icon' => 'archive', 'footer' => $this->blocks['submit']]);
?>

    <?php 
echo $form->field($model, 'sku');
?>
    <?php 
echo $form->field($model, 'unlimited_count')->widget(\kartik\switchinput\SwitchInput::className());
?>
    <?php 
echo \app\backend\widgets\WarehousesRemains::widget(['model' => $model]);
?>
    <?php 
BackendWidget::end();
?>

    <?php 
BackendWidget::begin(['title' => Yii::t('app', 'Content'), 'icon' => 'file-text', 'footer' => $this->blocks['submit']]);
?>

    <?php 
echo $form->field($model, 'content')->widget(Yii::$app->getModule('core')->wysiwyg_class_name(), Yii::$app->getModule('core')->wysiwyg_params());
?>
Beispiel #30
-2
        if ($mpc->status == $mpc::STATUS_YES) {
            $value = 1;
        } else {
            if ($mpc->status == $mpc::STATUS_NO) {
                $value = 0;
            } else {
                if ($mpc->status == $mpc::STATUS_UNKNOWN) {
                    $value = -1;
                }
            }
        }
        echo SwitchInput::widget(['type' => SwitchInput::CHECKBOX, 'name' => 'meeting-place-choice', 'id' => 'mpc-' . $mpc->id, 'tristate' => true, 'indeterminateValue' => -1, 'indeterminateToggle' => false, 'disabled' => true, 'value' => $value, 'pluginOptions' => ['size' => 'mini', 'onText' => '<i class="glyphicon glyphicon-ok"></i>', 'offText' => '<i class="glyphicon glyphicon-remove"></i>', 'onColor' => 'success', 'offColor' => 'danger']]);
    }
}
?>
  </td>
  <td style>
      
      <?php 
if ($placeCount > 1) {
    if ($model->status == $model::STATUS_SELECTED) {
        $value = $model->id;
    } else {
        $value = 0;
    }
    echo SwitchInput::widget(['type' => SwitchInput::RADIO, 'name' => 'place-chooser', 'items' => [['value' => $model->id]], 'value' => $value, 'pluginOptions' => ['size' => 'mini', 'handleWidth' => 60, 'onText' => '<i class="glyphicon glyphicon-ok"></i>', 'offText' => '<i class="glyphicon glyphicon-remove"></i>'], 'labelOptions' => ['style' => 'font-size: 12px']]);
}
?>
  </td>
</tr>