kulcsok új és szerkesztési nézetek fordítása, legördülő lista alkalmazása type-ra

This commit is contained in:
rocho
2015-12-01 17:55:28 +01:00
parent 4872abbb20
commit 783d889ec7
8 changed files with 36 additions and 11 deletions

View File

@@ -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(); ?>