Initial commit
This commit is contained in:
39
frontend/views/meal/_form.php
Normal file
39
frontend/views/meal/_form.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\ActiveForm;
|
||||
|
||||
/** @var yii\web\View $this */
|
||||
/** @var common\models\Meal $model */
|
||||
/** @var yii\widgets\ActiveForm $form */
|
||||
?>
|
||||
|
||||
<div class="meal-form">
|
||||
|
||||
<?php $form = ActiveForm::begin(); ?>
|
||||
|
||||
<?= $form->field($model, 'file_name')->textInput(['maxlength' => true]) ?>
|
||||
|
||||
<?= $form->field($model, 'calories')->textInput() ?>
|
||||
|
||||
<?= $form->field($model, 'protein')->textInput() ?>
|
||||
|
||||
<?= $form->field($model, 'fat')->textInput() ?>
|
||||
|
||||
<?= $form->field($model, 'carbohydrates')->textInput() ?>
|
||||
|
||||
<?= $form->field($model, 'fiber')->textInput() ?>
|
||||
|
||||
<?= $form->field($model, 'meal')->textInput() ?>
|
||||
|
||||
<?= $form->field($model, 'created_at')->textInput() ?>
|
||||
|
||||
<?= $form->field($model, 'updated_at')->textInput() ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user