Skip to content

Commit

Permalink
Create cancel button for instructor request form (#13156)
Browse files Browse the repository at this point in the history
Co-authored-by: domoberzin <[email protected]>
  • Loading branch information
NeoHW and domoberzin authored Aug 6, 2024
1 parent 2393888 commit 3fddf47
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,16 @@ exports[`InstructorRequestFormComponent should render correctly 1`] = `
/>
</div>
<br />
<a
aria-label="Cancel button"
class="btn btn-danger me-3"
tmrouterlink="/web/front/home"
type="button"
>
Cancel
</a>
<button
aria-label="Submit form"
class="btn btn-primary"
id="submit-button"
type="submit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@
<ngb-alert type="danger" [dismissible]="false" *ngIf="serverErrorMessage" class="error-box">
<strong>Error submitting request:</strong> {{serverErrorMessage}}
</ngb-alert>
<button type="submit" class="btn btn-primary" id="submit-button" [disabled]="!canSubmit">
<a type="button" class="btn btn-danger me-3" tmRouterLink="/web/front/home" aria-label="Cancel button">
Cancel
</a>
<button type="submit" class="btn btn-primary" id="submit-button" aria-label="Submit form" [disabled]="!canSubmit">
{{isLoading ? "Submitting..." : "Submit"}}
</button>
</form>

0 comments on commit 3fddf47

Please sign in to comment.