-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update billing-sync-key to use Dialog (#6596)
- Loading branch information
1 parent
b1a92ba
commit c39ffe1
Showing
3 changed files
with
94 additions
and
121 deletions.
There are no files selected for viewing
109 changes: 40 additions & 69 deletions
109
apps/web/src/app/billing/organizations/billing-sync-key.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,69 +1,40 @@ | ||
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="billingSyncTitle"> | ||
<div class="modal-dialog modal-dialog-scrollable" role="document"> | ||
<form | ||
class="modal-content" | ||
#form | ||
(ngSubmit)="submit()" | ||
[appApiAction]="formPromise" | ||
ngNativeValidate | ||
> | ||
<div class="modal-header"> | ||
<h1 class="modal-title" id="billingSyncTitle">{{ "manageBillingSync" | i18n }}</h1> | ||
<button | ||
type="button" | ||
class="close" | ||
data-dismiss="modal" | ||
appA11yTitle="{{ 'close' | i18n }}" | ||
> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<p>{{ "billingSyncKeyDesc" | i18n }}</p> | ||
<div class="form-group"> | ||
<label for="billingSyncKey" | ||
>{{ "billingSyncKey" | i18n }} <small>(</small><small>{{ "required" | i18n }}</small | ||
><small>)</small></label | ||
> | ||
<input | ||
id="billingSyncKey" | ||
type="input" | ||
name="billingSyncKey" | ||
class="form-control" | ||
[(ngModel)]="billingSyncKey" | ||
required | ||
appAutofocus | ||
appInputVerbatim | ||
/> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading"> | ||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i> | ||
<span>{{ "save" | i18n }}</span> | ||
</button> | ||
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal"> | ||
{{ "cancel" | i18n }} | ||
</button> | ||
<div class="ml-auto"> | ||
<button | ||
#deleteBtn | ||
type="button" | ||
(click)="deleteConnection()" | ||
class="btn btn-outline-danger" | ||
appA11yTitle="{{ 'delete' | i18n }}" | ||
[disabled]="form.loading" | ||
> | ||
<i class="bwi bwi-trash bwi-lg bwi-fw" [hidden]="form.loading" aria-hidden="true"></i> | ||
<i | ||
class="bwi bwi-spinner bwi-spin bwi-lg bwi-fw" | ||
[hidden]="!form.loading" | ||
title="{{ 'loading' | i18n }}" | ||
aria-hidden="true" | ||
></i> | ||
</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
<form [formGroup]="formGroup" [bitSubmit]="submit"> | ||
<bit-dialog> | ||
<h1 bitDialogTitle> | ||
{{ "manageBillingSync" | i18n }} | ||
</h1> | ||
<div bitDialogContent> | ||
<p>{{ "billingSyncKeyDesc" | i18n }}</p> | ||
<bit-form-field> | ||
<bit-label> | ||
{{ "billingSyncKey" | i18n }} | ||
</bit-label> | ||
<input | ||
bitInput | ||
id="billingSyncKey" | ||
type="text" | ||
formControlName="billingSyncKey" | ||
appAutofocus | ||
appInputVerbatim | ||
/> | ||
</bit-form-field> | ||
</div> | ||
<ng-container bitDialogFooter> | ||
<button type="submit" bitButton bitFormButton buttonType="primary"> | ||
{{ "save" | i18n }} | ||
</button> | ||
<button bitButton bitDialogClose type="button"> | ||
{{ "cancel" | i18n }} | ||
</button> | ||
<button | ||
class="tw-ml-auto" | ||
type="button" | ||
buttonType="danger" | ||
bitIconButton="bwi-trash" | ||
bitFormButton | ||
[bitAction]="deleteConnection" | ||
appA11yTitle="{{ 'delete' | i18n }}" | ||
></button> | ||
</ng-container> | ||
</bit-dialog> | ||
</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