initial release
This commit is contained in:
@@ -25,19 +25,15 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'dataProvider' => $dataProvider,
|
||||
'columns' => [
|
||||
['class' => 'yii\grid\SerialColumn'],
|
||||
|
||||
'id',
|
||||
'file_name',
|
||||
'food_name',
|
||||
'calories',
|
||||
'protein',
|
||||
'fat',
|
||||
//'carbohydrates',
|
||||
//'fiber',
|
||||
//'meal',
|
||||
//'created_at',
|
||||
//'updated_at',
|
||||
'carbohydrates',
|
||||
'fiber',
|
||||
'created_at:datetime',
|
||||
[
|
||||
'class' => ActionColumn::className(),
|
||||
'class' => ActionColumn::class,
|
||||
'urlCreator' => function ($action, Meal $model, $key, $index, $column) {
|
||||
return Url::toRoute([$action, 'id' => $model->id]);
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ $this->registerJS("
|
||||
<?= $form->field($model, 'picture')
|
||||
->fileInput([
|
||||
'class' => 'form-control',
|
||||
//'capture' => 'environment',
|
||||
'capture' => 'environment',
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
Reference in New Issue
Block a user