-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from nirvanaitsolutions/issue#6
Implement review feature after escrow release
- Loading branch information
Showing
14 changed files
with
278 additions
and
74 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
mat-form-field { | ||
width: 100% !important; | ||
} | ||
|
||
.rating-box { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
width: 70%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
<p> | ||
review works! | ||
</p> | ||
<h2 mat-dialog-title>Review</h2> | ||
<form (ngSubmit)="submitReview(form)" novalidate #form="ngForm"> | ||
<mat-dialog-content class="mat-typography"> | ||
<div class="rating-box"> | ||
<div> | ||
<strong> | ||
Rate * | ||
</strong> | ||
</div> | ||
<div> | ||
<bar-rating name="rating" [(ngModel)]="reviewData.review_score" [max]="5" required></bar-rating> | ||
</div> | ||
</div> | ||
<mat-form-field> | ||
<textarea matInput #message maxlength="500" name="review_text" placeholder="Please enter your review" [(ngModel)]="reviewData.review_text"> | ||
</textarea> | ||
<mat-hint align="end">{{message.value.length}} / 500</mat-hint> | ||
</mat-form-field> | ||
</mat-dialog-content> | ||
<mat-dialog-actions align="end"> | ||
<button mat-button mat-dialog-close>Cancel</button> | ||
<button mat-button type="submit" cdkFocusInitial>Submit</button> | ||
</mat-dialog-actions> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export interface ReviewRequest { | ||
createdby: string; | ||
ad_id: string; | ||
createdfor: string | ||
order_id: string; | ||
review_score: number; | ||
review_text: string; | ||
} | ||
|
||
export interface ReviewResponse { | ||
ad_id: string; | ||
createdAt: string; | ||
createdby: string; | ||
createdfor: string; | ||
order_id: string; | ||
review_score: number; | ||
review_text: string; | ||
updatedAt: string | ||
__v: number | ||
_id: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,4 +50,13 @@ | |
.page-controls{ | ||
text-align: center; | ||
margin-top: 50px; | ||
} | ||
} | ||
|
||
table { | ||
width: 100%; | ||
} | ||
|
||
|
||
td, th { | ||
width: 25%; | ||
} |
Oops, something went wrong.