diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bc0eb4..ec3d29d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +* User view text to be more consistant + +### Removed + +* Form fields not needed ## [0.1.0] - 2025-02-10 diff --git a/frontend/views/meal/_form.php b/frontend/views/meal/_form.php index 8fd20c5..12efcae 100644 --- a/frontend/views/meal/_form.php +++ b/frontend/views/meal/_form.php @@ -12,7 +12,7 @@ use yii\widgets\ActiveForm; - = $form->field($model, 'file_name')->textInput(['maxlength' => true]) ?> + = $form->field($model, 'file_name')->hiddenInput(['maxlength' => true]) ?> = $form->field($model, 'calories')->textInput() ?> @@ -24,11 +24,6 @@ use yii\widgets\ActiveForm; = $form->field($model, 'fiber')->textInput() ?> - = $form->field($model, 'meal')->textInput() ?> - - = $form->field($model, 'created_at')->textInput() ?> - - = $form->field($model, 'updated_at')->textInput() ?>
- = Html::a('Create Meal', ['create'], ['class' => 'btn btn-success']) ?> + = Html::a('Capture Meal', ['upload'], ['class' => 'btn btn-success']) ?>
diff --git a/frontend/views/meal/update.php b/frontend/views/meal/update.php index e3fbfcd..4566631 100644 --- a/frontend/views/meal/update.php +++ b/frontend/views/meal/update.php @@ -5,9 +5,9 @@ use yii\helpers\Html; /** @var yii\web\View $this */ /** @var common\models\Meal $model */ -$this->title = 'Update Meal: ' . $model->id; +$this->title = 'Update Meal: ' . $model->food_name; $this->params['breadcrumbs'][] = ['label' => 'Meals', 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; +$this->params['breadcrumbs'][] = ['label' => $model->food_name, 'url' => ['view', 'id' => $model->id]]; $this->params['breadcrumbs'][] = 'Update'; ?>