You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.5 KiB
31 lines
1.5 KiB
<!--设置高度,添加bootstrap样式类d-flex align-items-center 使表单垂直居中,justify-content-center水平居中-->
|
|
<div [style]="height" class="d-flex align-items-center justify-content-center">
|
|
<form [formGroup]="loginForm" class="col-6">
|
|
|
|
<!-- 管理员名-->
|
|
<div class="input-group mb-3 mx-auto col-5">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text">{{ 'login.manager_name' | translate }}</span>
|
|
</div>
|
|
<input type="text" class="form-control text-center" [placeholder]="'login.manager_name' | translate" formControlName="managerName">
|
|
</div>
|
|
|
|
<!-- 管理员密码-->
|
|
<div class="input-group mb-3 mx-auto col-5">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text">{{ 'login.password' | translate }}</span>
|
|
</div>
|
|
<input type="password" class="form-control text-center" [placeholder]="'login.password' | translate" formControlName="password">
|
|
<div class="input-group-append">
|
|
<button class="btn btn-outline-secondary" type="button" >{{ 'button.forget_pwd' | translate }}</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-5 mx-auto text-center">
|
|
<!-- 登陆按钮-->
|
|
<button type="button" (click)="login()" class="btn btn-primary btn-lg">{{ 'button.login' | translate }}</button>
|
|
<!-- 注册按钮-->
|
|
<button type="button" (click)="register()" class="btn btn-primary btn-lg ml-3">{{ 'button.register' | translate }}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|