-
Notifications
You must be signed in to change notification settings - Fork 76
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 #1527 from HealthCatalyst/dev
Content docs updates
- Loading branch information
Showing
20 changed files
with
322 additions
and
2,961 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
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
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
47 changes: 47 additions & 0 deletions
47
src/app/content/usage/feedback-form/feedback-form.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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<form class="feedback-form" [formGroup]="feedbackForm"> | ||
<div class="feedback-container" *ngIf="!thankYouMsg"> | ||
<div class="feedback-top-left"> | ||
<div class="form-group"> | ||
<input name="url" type="hidden" id="herenow" formControlName="currentUrl"> | ||
<input name="helpful?" type="hidden" id="helpful" formControlName="helpfulRating"> | ||
</div> | ||
<div>Was this article helpful?</div> | ||
</div> | ||
<div class="feedback-top-right"> | ||
<button hc-button buttonStyle="secondary" class="feedback-button" title="Yes" id="feedback-yes" (click)="checkHelpful(); onSubmit();" [disabled]="notHelpful"><i class="fa fa-check" aria-hidden="true"></i>YES</button> | ||
<button hc-button buttonStyle="secondary" class="feedback-button" title="No" id="feedback-no" (click)="checkNoHelp()"><i class="fa fa-times" aria-hidden="true"></i>NO</button> | ||
</div> | ||
|
||
<div id="feedback-survey" *ngIf="notHelpful"> | ||
<div class="feedback-suggestions"> | ||
<hc-form-field> | ||
<hc-label>How can we make this more helpful? (required):</hc-label> | ||
<textarea hcInput rows="4" cols="50" id="suggestions" placeholder="Please enter your suggestion (required)" name="suggest" formControlName="yourSuggestions" required></textarea> | ||
<hc-error> | ||
Please tell us how this information could be more helpful to you. | ||
</hc-error> | ||
</hc-form-field> | ||
</div> | ||
<div class="feedback-email" name="email"> | ||
<hc-form-field> | ||
<hc-label>Where can we email you to follow up? (optional, but helps us):</hc-label> | ||
<input hcInput type="email" placeholder="Where can we email you if we need more information?" id="email" name="email" formControlName="yourEmail" size="40"> | ||
<hc-error> | ||
The email address entered is not valid. | ||
</hc-error> | ||
</hc-form-field> | ||
</div> | ||
|
||
<button hc-button title="Submit" buttonStyle="primary" [disabled]="!feedbackForm.valid" (click)="onSubmit();">Submit</button> | ||
<button hc-button class="feedback-button" title="Cancel " buttonStyle="secondary" (click)="onCancel();">Cancel</button> | ||
</div> | ||
</div> | ||
<div id="feedback-response" class="feedback-container-new" *ngIf="thankYouMsg"> | ||
<p>Thank you! We have received your feedback. Still need help? Contact us in Health Catalyst's <a href="https://slack.com/app_redirect?channel=C75LHAV9S" target="_blank">#cashmere</a> Slack channel. </p> | ||
</div> | ||
</form> | ||
|
||
<!-- <br>Dirty: {{ feedbackForm.dirty }} | ||
<br>Touched: {{ feedbackForm.touched }} | ||
<br>Valid: {{ feedbackForm.valid }} | ||
<br>Value: {{ feedbackForm.value | json }} --> |
47 changes: 47 additions & 0 deletions
47
src/app/content/usage/feedback-form/feedback-form.component.scss
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,47 @@ | ||
.feedback-form { | ||
padding-bottom: 40px; | ||
} | ||
|
||
.feedback-container, | ||
.feedback-container-new { | ||
padding: 5px 0; | ||
display: flex; | ||
flex-wrap: wrap; | ||
align-items: center; | ||
margin: 0 auto; | ||
max-width: 600px; | ||
justify-content: center; | ||
} | ||
|
||
.feedback-top-left { | ||
font-size: 16px; | ||
color: #333; | ||
} | ||
|
||
.feedback-top-left > .form-group { | ||
margin-bottom: 0; | ||
} | ||
|
||
.feedback-top-right { | ||
margin-left: 25px; | ||
} | ||
|
||
.feedback-button { | ||
min-width: 80px !important; | ||
margin-left: 10px; | ||
} | ||
|
||
.feedback-button i { | ||
margin-right: 5px; | ||
font-size: 16px; | ||
} | ||
|
||
#feedback-response { | ||
color: #6D6E70; | ||
font-size: 16px; | ||
} | ||
|
||
#feedback-survey { | ||
width: 100%; | ||
margin-top: 20px; | ||
} |
Oops, something went wrong.