Yii Framework Forum: Enigmatic depiction in GridView(formular) - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Enigmatic depiction in GridView(formular)

#1 User is offline   tklustig 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 419
  • Joined: 20-April 17
  • Location:Hannover

Posted 25 September 2017 - 06:10 AM

Hi guys,
in my formular pushing records into database,GridView of kartik will depicit name of attribute under input field. This is unecessary,'cause I already depicit field by label. Any ideas,how to fix this?
Here is label:
    public function attributeLabels() {
        return [
...
            'id_person_rekrutiert_von' => Yii::t('app', 'Person wurde rekrutiert von'),
...    
        ];
    }

Hint: I just want to be depicited Person wurde rekrutiert von above input field, not additionally id_person_rekrutiert_von below.Regard thumbnail,please!

Here is formular:
    <?=
    $form->field($model, 'id_person_rekrutiert_von')->widget(\kartik\widgets\Select2::classname(), [
        'data' => \common\modules\basis\models\Person::getPerson(),
        'options' => ['placeholder' => Yii::t('app', 'Choose Person')],
        'pluginOptions' => [
            'allowClear' => true,
        ],
    ]);
    ?>

Attached File(s)


0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users