Skip to content

Commit

Permalink
i guess i fixed form fill
Browse files Browse the repository at this point in the history
  • Loading branch information
b21946242 committed May 28, 2023
1 parent aca29e9 commit 63ac660
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<div *ngIf="question.options.length>1" class="flex flex-row align-items-center gap-5">
<ng-container *ngFor="let option of question.options;let j = index" >
<div class="flex align-items-center">
<p-radioButton type="radio" [value]="option.content"
[(ngModel)]="surveyAnswer.answers[i].answerText" [disabled]="surveyAnswer.submitted"></p-radioButton>
<p-radioButton type="radio" [value]="option.id"
[(ngModel)]="surveyAnswer.answers[i].optionId" [disabled]="surveyAnswer.submitted"></p-radioButton>
<label class="ml-2">{{option.content}}</label>
</div>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export class FillFormComponent {
for (const answer of this.surveyAnswer.answers) {
for (const question of this.survey.questions) {
for (const option of question.options) {
if (option.content == answer.answerText) {
answer.optionId = parseInt(String(option.id));
if (option.id == answer.optionId) {
answer.answerText = option.content;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/iceshu4/landing/landing.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</div>
<div class="col-12 md:col-7 mb-6 md:mb-0 ">
<img alt="" class="w-full h-full border-round shadow-2 animation-duration-1000 animation-ease-out moveinright"
src="assets/layout/images/carousel/carouseimage1.PNG">
src="assets/layout/images/carousel/course.png">
</div>
</div>
</div>
Expand Down
12 changes: 8 additions & 4 deletions frontend/src/app/iceshu4/landing/landing.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,25 @@ import { Component } from '@angular/core';
export class LandingComponent {
carouselImages: any[] = [
{
url: 'assets/layout/images/carousel/carouseimage1.PNG',
url: 'assets/layout/images/carousel/course.png',
content: 'Courses'
},
{
url: 'assets/layout/images/carousel/carouseimage4.PNG',
url: 'assets/layout/images/carousel/forms.png',
content: 'Evaluation Forms'
},
{
url: 'assets/layout/images/carousel/carouseimage3.PNG',
url: 'assets/layout/images/carousel/message.png',
content: 'Chat with Admin'
},
{
url: 'assets/layout/images/carousel/carouseimage2.PNG',
url: 'assets/layout/images/carousel/profile.png',
content: 'Profile Overview'
},
{
url: 'assets/layout/images/carousel/users.png',
content: 'User Management'
},
];
constructor() {
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 63ac660

Please sign in to comment.