Ejemplo n.º 1
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();
?>


Ejemplo n.º 2
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>
Ejemplo n.º 3
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);
Ejemplo n.º 4
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>
Ejemplo n.º 5
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>
Ejemplo n.º 6
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>
Ejemplo n.º 7
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>
        </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');
Ejemplo n.º 9
0
        <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');
Ejemplo n.º 10
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?
Ejemplo n.º 11
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']);
Ejemplo n.º 12
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);
Ejemplo n.º 13
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();
Ejemplo n.º 14
0
    <?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>
Ejemplo n.º 15
0
?>

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

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

    <?php 
echo Html::label("Тип аудиторії");
echo Select2::widget(['model' => $model, 'attribute' => 'options', 'language' => 'ru', 'data' => ArrayHelper::map(Specclasses::find()->all(), 'spec_class_id', 'spec_class_name'), 'options' => ['multiple' => true]]);
?>
    <br/>
    <?php 
echo Html::label('Інші дисципліни');
echo $form->field($model, 'is_public')->widget(SwitchInput::classname(), ['type' => SwitchInput::CHECKBOX])->label(false);
?>
    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Створити' : 'Оновити', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

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

</div>