Exemple #1
0
     <div class="panel-heading">
         Company Details
     </div>
     <!-- /.panel-heading -->
     <div class="panel-body">
         <div class="list-group">
             <?= DetailView::widget([
                 'model' => $model,
                 'template' => '<a href="#" class="list-group-item">{label}<span class="pull-right text-muted small"><em>{value}</em></span></a>',
                 'attributes' => [
                     'name',
                     'domain',
                     'contact',
                     [
                         'label' => 'is_active',
                         'value' => DatabaseHelper::GetStatus($model->is_active)
                     ],
                     'user.email',
                 ]
             ])?>
         </div>
         <!-- /.list-group -->
     </div>
     <!-- /.panel-body -->
 </div>
 <!-- /.panel -->
 <div class="panel panel-info">
     <div class="panel-heading">
         Address
     </div>
     <div class="panel-body">
Exemple #2
0
        'template' => '{addon}{input}',
        'clientOptions' => [
            'autoclose' => true,
            'format' => 'yyyy-mm-dd',
            'disableEntry'=>true,
        ],
        'options' => [
            'data-pjax' => false
        ]
    ]) ?>

    <?= $form->field($model, 'duration')->textInput() ?>

    <?= $form->field($model, 'amount')->textInput() ?>

    <?= $form->field($model, 'status')->dropDownList(DatabaseHelper::Status()) ?>

    <?= $form->field($model, 'priority')->textInput() ?>

    <?= $form->field($model, 'security')->textInput() ?>

    <?= $form->field($model, 'is_percent')->textInput() ?>

    <?= $form->field($model, 'max_bid')->textInput() ?>

    <?= $form->field($model, 'cooling_prd')->textInput() ?>

    <?= $form->field($model, 'last_min_extd')->textInput() ?>

    <?= $form->field($model, 'max_extd')->textInput() ?>
 protected function renderFilterCellContent()
 {
     return Html::activeDropDownList($this->grid->filterModel,$this->statusColumn,DatabaseHelper::Status(),['class' => 'form-control','prompt' => '-------']);
 }
Exemple #4
0
    <div class="col-lg-12">
        <div class="panel panel-default">
            <!-- /.panel-heading -->
            <div class="panel-body">
                <?= GridView::widget([
                    'dataProvider' => $dataProvider,
                    'filterModel' => $searchModel,
                    'columns' => [
                        ['class' => 'yii\grid\SerialColumn'],

                        'name',
                        'mobile',
                        [
                            'header' => 'User Role',
                            'value' => 'user_role',
                            'filter' => Html::activeDropDownList($searchModel,'user_role',DatabaseHelper::UserRole(),['class' => 'form-control','prompt' => '-------']),
                        ],
                        [
                            'class' => 'auction\widgets\grid\DatePickerColumn',
                            'dateColumn' => 'created_at'
                        ],
                        ['class' => 'auction\widgets\grid\StatusColumn'],

                        [
                            'class' => 'auction\widgets\grid\ActionColumn',
                            'template' => '{view}{update}'
                        ],
                    ],
                ]); ?>
            </div>
            <!-- /.panel-body -->
Exemple #5
0
    <?php Pjax::begin(['id' => 'brand-form','enablePushState' => false, 'timeout' => false])?>

    <?php $form = ActiveForm::begin([
        'id' => 'create-brand',
        //'action' => Url::to(['brand/create']),
        'options' => [
            'data-pjax' => 1,
        ],
        'enableClientValidation' => false

    ]); ?>

    <?= Html::hiddenInput('id', $model->id);?>

    <?= $form->field($model, 'name')->label(false)->textInput(['placeholder' => 'Template Name','autofocus' => 'autofocus']) ?>

    <?= $form->field($model, 'type')->dropDownList(DatabaseHelper::TemplateType())->label('Template Type') ?>

    <?= $form->field($model, 'text')->textarea(['rows' => 3]) ?>

    <?= $form->field($model, 'is_active')->dropDownList(DatabaseHelper::Status())->label('Status') ?>

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

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

</div>