-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MVP of feedback template stuff * Theming
- Loading branch information
1 parent
be822f0
commit 6eb4c0e
Showing
48 changed files
with
962 additions
and
550 deletions.
There are no files selected for viewing
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
29 changes: 10 additions & 19 deletions
29
...ects/gameboard-ui/src/app/admin/components/feedback-editor/feedback-editor.component.html
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,37 +1,28 @@ | ||
<div class="form-group pb-0 pt-1"> | ||
<label for="feedbackConfig-input">Feedback Questions</label> | ||
<label class="d-block" for="feedbackConfig-input">Feedback Questions</label> | ||
<div class="my-2 p-1 badge badge-warning">DEPRECATED</div> | ||
<textarea rows="11" type="text" class="form-control font-fixed-width" id="feedbackConfig-input" | ||
name="feedbackConfig" [(ngModel)]="boundYaml" (input)="updateYaml(boundYaml)" | ||
[placeholder]="sampleConfig"></textarea> | ||
|
||
<alert *ngIf="validationMessages.length" type="warning" class="mt-3"> | ||
<ul class="m-0"> | ||
<li *ngFor="let message of validationMessages"> | ||
<markdown [data]="message"></markdown> | ||
</li> | ||
</ul> | ||
</alert> | ||
name="feedbackConfig" [(ngModel)]="boundYaml" (input)="updateYaml(boundYaml)" [placeholder]="sampleConfig" | ||
[readOnly]="true" [disabled]="true"></textarea> | ||
|
||
<div class="d-flex align-items-center mt-3"> | ||
<div *ngIf="feedbackTemplate" class="flex-grow-1"> | ||
<ng-container *ngIf="feedbackTemplate.game?.length || feedbackTemplate.challenge?.length"> | ||
<ng-container *ngIf="feedbackTemplate.game?.length"> | ||
<strong class="text-info">{{feedbackTemplate.game.length}}</strong> | ||
<strong class="text-success">{{feedbackTemplate.game.length}}</strong> | ||
game questions | ||
</ng-container> | ||
<span *ngIf="feedbackTemplate?.game?.length && feedbackTemplate?.challenge?.length"> // </span> | ||
<ng-container *ngIf="feedbackTemplate.challenge?.length"> | ||
<strong class="text-info">{{feedbackTemplate.challenge.length}}</strong> | ||
<strong class="text-success">{{feedbackTemplate.challenge.length}}</strong> | ||
challenge questions | ||
</ng-container> | ||
</ng-container> | ||
</div> | ||
<div class="btn-link mr-2 text-right flex-grow-1" (click)="handleAboutFeedbackClick()"> | ||
About feedback templates | ||
</div> | ||
<button type="button" class="btn btn-success ml-2 flex-basis-50" [disabled]="!sampleConfig" | ||
(click)="handlePasteSample()"> | ||
Paste Example Configuration | ||
|
||
<button *ngIf="feedbackTemplate" type="button" class="btn btn-success ml-2 flex-basis-50" | ||
[disabled]="!sampleConfig" [appCopyOnClick]="feedbackTemplate.content"> | ||
Copy Deprecated Template to Clipboard | ||
</button> | ||
</div> | ||
</div> |
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
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
Oops, something went wrong.