Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

532 - added message about being unable to save data entered if user l… #1096

Merged
merged 3 commits into from
Dec 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h2 id="skip-nav-target" tabindex="-1">Apply for a noncommercial group use permi
<app-api-error *ngIf="apiErrors" [errors]="apiErrors"></app-api-error>

<form class="usa-form-large" [formGroup]="applicationForm" (ngSubmit)="onSubmit(applicationForm)" novalidate>
<p class="form-directions">required fields<span class="required-fields-asterisk">*</span></p>
<p>Your application will be saved once it is submitted. You won't be able to save the application to complete it later.</p>
<legend>Application process</legend>
<div>
<ol>
Expand All @@ -17,6 +17,9 @@ <h2 id="skip-nav-target" tabindex="-1">Apply for a noncommercial group use permi
</ol>
</div>

<br>
<p class="form-directions">required fields<span class="required-fields-asterisk">*</span></p>

<div id="form-errors" *ngIf="(submitted && !applicationForm.valid) || dateStatus.hasErrors" class="usa-alert usa-alert-error" aria-live="assertive" aria-hidden="false" role="alert">
<div class="usa-alert-body">
<h3 class="usa-alert-heading">There are errors in your application.</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ <h2 id="skip-nav-target" tabindex="-1">Apply for a temporary outfitters permit w
<app-api-error *ngIf="apiErrors" [errors]="apiErrors"></app-api-error>

<form class="usa-form-large" [formGroup]="applicationForm" (ngSubmit)="onSubmit()" novalidate>

<br>
<p>It may take a while to complete the application. To save time, have all of your documents ready.
You won’t be able to save the application to complete it later. The application will be saved once it’s submitted.
</p>
<br>
<p class="form-directions">required fields <span class="required-fields-asterisk">*</span></p>
<div id="form-errors"
*ngIf="(submitted && !applicationForm.valid) || dateStatus.hasErrors || invalidFileUpload"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ export class SubmitFeedbackComponent implements OnInit {
this.service.create(feedback).subscribe(data => {
// show success message
localStorage.setItem('status', JSON.stringify(status));
this.forests = '';
this.message = '';
const redirectUrl = localStorage.getItem('feedbackRedirect');
this.router.navigate([redirectUrl]);
});
Expand Down