예제 #1
0
?>

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

    <?php 
echo $form->field($model, 'published_at', ['options' => ['class' => 'drp-container form-group']])->widget(DateRangePicker::classname(), ['model' => $model, 'attribute' => 'published_at', 'convertFormat' => true, 'pluginOptions' => ['timePicker' => true, 'timePickerIncrement' => 15, 'locale' => ['format' => 'Y-m-d H:i:s'], 'singleDatePicker' => true, 'showDropdowns' => true]]);
?>

    <?php 
echo $form->field($model, 'body')->widget(MarkdownEditor::className(), []);
?>

    <?php 
echo $form->field($model, 'is_lts')->widget(SwitchBox::className(), ['clientOptions' => ['size' => 'medium', 'onColor' => 'success', 'offColor' => 'danger']]);
?>

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

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

    <?php 
echo $form->field($model, 'tagValues')->widget(SelectizeTextInput::className(), ['loadUrl' => ['post/tags'], 'options' => ['class' => 'form-control'], 'clientOptions' => ['plugins' => ['remove_button'], 'valueField' => 'title', 'labelField' => 'title', 'searchField' => ['title'], 'create' => true]])->hint('Use commas to separate tags');
?>

    <div class="form-group">
예제 #2
0
?>

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

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

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

    <?php 
echo $form->field($model, 'temp_pswd_flag')->widget(SwitchBox::className(), ['inlineLabel' => false]);
?>

    <?php 
echo $form->field($model, 'next_pswd_reset')->dropDownList(['NEVER' => Yii::t('app', 'NEVER'), 30 => Yii::t('app', '{ndays} days', ['ndays' => '30']), 60 => Yii::t('app', '{ndays} days', ['ndays' => '60']), 90 => Yii::t('app', '{ndays} days', ['ndays' => '90'])], ['prompt' => '']);
?>

    <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();
?>
예제 #3
0
파일: logs.php 프로젝트: reuhtte/yii2-admin
    <div class="sys-param-form">

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

        <?php 
echo $form->field($model, 'access_log')->widget(SwitchBox::className(), ['inlineLabel' => false]);
?>

        <?php 
echo $form->field($model, 'activity_log')->widget(SwitchBox::className(), ['inlineLabel' => false]);
?>
        
        <?php 
echo $form->field($model, 'audit_log')->widget(SwitchBox::className(), ['inlineLabel' => false]);
?>
        
        <div class="form-group">
            <?php 
echo Html::submitButton(Yii::t('app', 'Update'), ['class' => 'btn btn-success']);
?>
        </div>

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

    </div>
</div>
예제 #4
0
        </div>
        <div class="col-md-1" style="padding-left:0">
            <?php 
echo Html::submitButton('Search', ['class' => 'btn btn btn-primary full-width', 'style' => 'width: 100%']);
?>
        </div>
    </div>

    <div class="row" style="margin-top:4px;">
        <div class="col-md-11">
            <?php 
echo TagsWidget::widget(['id' => 'tags', 'name' => 'tags']);
?>
        </div>
        <div class="col-md-1 text-center" style="padding-left:0; padding-top:2px;">
            <?php 
echo \dosamigos\switchinput\SwitchBox::widget(['name' => 'tags_mode', 'checked' => true, 'clientOptions' => ['size' => 'small', 'offColor' => 'success', 'onText' => 'All', 'offText' => 'Any']]);
?>
        </div>
    </div>
    <?php 
echo Html::endForm();
?>

    <div style="margin-top: 10px;">
        <?php 
echo ListView::widget(['dataProvider' => $dataProvider, 'itemView' => '_artist']);
?>
    </div>
</div>