mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 13:27:35 +00:00
Updated UI based on stakeholder feedback.
This commit is contained in:
+13
-11
@@ -20,17 +20,6 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="field">
|
|
||||||
<label for="description">Description</label>
|
|
||||||
<textarea
|
|
||||||
id="description"
|
|
||||||
[(ngModel)]="form.description"
|
|
||||||
name="description"
|
|
||||||
rows="3"
|
|
||||||
placeholder="Describe the goal..."
|
|
||||||
></textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="baseline">Baseline</label>
|
<label for="baseline">Baseline</label>
|
||||||
<textarea
|
<textarea
|
||||||
@@ -42,6 +31,19 @@
|
|||||||
></textarea>
|
></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="field">
|
||||||
|
<label for="description">Goal</label>
|
||||||
|
<textarea
|
||||||
|
id="description"
|
||||||
|
[(ngModel)]="form.description"
|
||||||
|
name="description"
|
||||||
|
rows="3"
|
||||||
|
placeholder="Enter goal..."
|
||||||
|
></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="targetCompletionDate">Target Completion Date</label>
|
<label for="targetCompletionDate">Target Completion Date</label>
|
||||||
<input
|
<input
|
||||||
|
|||||||
+7
-5
@@ -20,16 +20,18 @@
|
|||||||
<label class="field-label" for="category">Category</label>
|
<label class="field-label" for="category">Category</label>
|
||||||
<input id="category" class="field-input" type="text" [(ngModel)]="category" />
|
<input id="category" class="field-input" type="text" [(ngModel)]="category" />
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
|
||||||
<label class="field-label" for="description">Description</label>
|
|
||||||
<textarea id="description" class="field-input field-textarea" [(ngModel)]="description" rows="4"
|
|
||||||
placeholder="Enter description..."></textarea>
|
|
||||||
</div>
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="field-label" for="baseline">Baseline</label>
|
<label class="field-label" for="baseline">Baseline</label>
|
||||||
<textarea id="baseline" class="field-input field-textarea" [(ngModel)]="baseline" rows="3"
|
<textarea id="baseline" class="field-input field-textarea" [(ngModel)]="baseline" rows="3"
|
||||||
placeholder="Enter baseline..."></textarea>
|
placeholder="Enter baseline..."></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<label class="field-label" for="description">Goal</label>
|
||||||
|
<textarea id="description" class="field-input field-textarea" [(ngModel)]="description" rows="4"
|
||||||
|
placeholder="Enter goal..."></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="field-label" for="targetCompletionDate">Target Completion Date</label>
|
<label class="field-label" for="targetCompletionDate">Target Completion Date</label>
|
||||||
<input id="targetCompletionDate" class="field-input" type="date" [(ngModel)]="targetCompletionDate" />
|
<input id="targetCompletionDate" class="field-input" type="date" [(ngModel)]="targetCompletionDate" />
|
||||||
|
|||||||
@@ -14,7 +14,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<p class="description">{{ goal().description }}</p>
|
@if (goalNumber() > 0) {
|
||||||
|
<p class="description"><strong>Goal {{ goalNumber() }}:</strong> {{ goal().description }}</p>
|
||||||
|
} @else {
|
||||||
|
<p class="description">{{ goal().description }}</p>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export class GoalCard {
|
|||||||
private readonly route = inject(ActivatedRoute);
|
private readonly route = inject(ActivatedRoute);
|
||||||
|
|
||||||
readonly goal = input.required<StudentGoalItem>();
|
readonly goal = input.required<StudentGoalItem>();
|
||||||
|
readonly goalNumber = input<number>(0);
|
||||||
|
|
||||||
// ************************** Properties ***************************
|
// ************************** Properties ***************************
|
||||||
|
|
||||||
|
|||||||
@@ -28,8 +28,8 @@
|
|||||||
</div>
|
</div>
|
||||||
} @else {
|
} @else {
|
||||||
<div class="card-grid">
|
<div class="card-grid">
|
||||||
@for (goal of goals(); track goal.goalId) {
|
@for (goal of goals(); track goal.goalId; let i = $index) {
|
||||||
<app-goal-card [goal]="goal" />
|
<app-goal-card [goal]="goal" [goalNumber]="i + 1" />
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user