kulcsok új és szerkesztési nézetek fordítása, legördülő lista alkalmazása type-ra
This commit is contained in:
@@ -17,14 +17,14 @@ use common\models\Key;
|
||||
|
||||
<?= $form->field($model, 'status')->dropDownList( Key::statuses() ) /*->textInput()*/ ?>
|
||||
|
||||
<?= $form->field($model, 'type')->textInput() ?>
|
||||
<?= $form->field($model, 'type')->dropDownList( Key::types() /* array(10=>"kulcs") // <--ez így ok */ ) /* $form->field($model, 'type')->textInput() */ ?>
|
||||
|
||||
<?php //echo $form->field($model, 'created_at')->textInput() ?>
|
||||
|
||||
<?php //echo $form->field($model, 'updated_at')->textInput() ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton($model->isNewRecord ? Yii::t('backend/key', 'Create') : Yii::t('backend/key', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
|
||||
<?= Html::submitButton($model->isNewRecord ? Yii::t('backend/key', 'Create Save') : Yii::t('backend/key', 'Update Save'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
|
||||
Reference in New Issue
Block a user