Browse Source

feature(theme-basic): generalize button component

pull/1595/head
TheDiaval 7 years ago
parent
commit
1d9d824bab
  1. 10
      npm/ng-packs/packages/theme-basic/src/lib/components/change-password/change-password.component.html
  2. 12
      npm/ng-packs/packages/theme-basic/src/lib/components/profile/profile.component.html

10
npm/ng-packs/packages/theme-basic/src/lib/components/change-password/change-password.component.html

@ -27,8 +27,12 @@
<button type="button" class="btn btn-secondary" #abpClose> <button type="button" class="btn btn-secondary" #abpClose>
{{ 'AbpIdentity::Cancel' | abpLocalization }} {{ 'AbpIdentity::Cancel' | abpLocalization }}
</button> </button>
<button type="button" class="btn btn-primary" (click)="onSubmit()"> <abp-button
<i class="fa fa-check mr-1"></i> <span>{{ 'AbpIdentity::Save' | abpLocalization }}</span> [requestType]="['POST']"
</button> requestURLContainSearchValue="change-password"
iconClass="fa fa-check"
(click)="onSubmit()"
>{{ 'AbpIdentity::Save' | abpLocalization }}</abp-button
>
</ng-template> </ng-template>
</abp-modal> </abp-modal>

12
npm/ng-packs/packages/theme-basic/src/lib/components/profile/profile.component.html

@ -6,7 +6,7 @@
<form *ngIf="form" [formGroup]="form" novalidate> <form *ngIf="form" [formGroup]="form" novalidate>
<div class="form-group"> <div class="form-group">
<label for="username">{{ 'AbpIdentity::DisplayName:UserName' | abpLocalization }}</label <label for="username">{{ 'AbpIdentity::DisplayName:UserName' | abpLocalization }}</label
><span> * </span><input type="text" id="username" class="form-control" formControlName="userName" autofocus/> ><span> * </span><input type="text" id="username" class="form-control" formControlName="userName" autofocus />
</div> </div>
<div class="row"> <div class="row">
<div class="col col-md-6"> <div class="col col-md-6">
@ -36,8 +36,12 @@
<button #abpClose type="button" class="btn btn-secondary"> <button #abpClose type="button" class="btn btn-secondary">
{{ 'AbpIdentity::Cancel' | abpLocalization }} {{ 'AbpIdentity::Cancel' | abpLocalization }}
</button> </button>
<button type="button" class="btn btn-primary" (click)="onSubmit()"> <abp-button
<i class="fa fa-check mr-1"></i> <span>{{ 'AbpIdentity::Save' | abpLocalization }}</span> [requestType]="['PUT']"
</button> requestURLContainSearchValue="my-profile"
iconClass="fa fa-check"
(click)="onSubmit()"
>{{ 'AbpIdentity::Save' | abpLocalization }}</abp-button
>
</ng-template> </ng-template>
</abp-modal> </abp-modal>

Loading…
Cancel
Save