accouts.component.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <form nz-form [formGroup]="formGroup" (ngSubmit)="onSubmit()" se-container="1">
  2. <nz-form-item style="display: none">
  3. <nz-form-label [nzMd]="6" nzFor="id">id</nz-form-label>
  4. <nz-form-control [nzMd]="18" nzErrorTip="The input is not valid id!">
  5. <input [(ngModel)]="form.model.id" [ngModelOptions]="{ standalone: true }" nz-input name="id" id="id" value="id" />
  6. </nz-form-control>
  7. </nz-form-item>
  8. <nz-form-item style="width: 100%">
  9. <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="displayName">{{ 'mxk.password.displayName' | i18n }}</nz-form-label>
  10. <nz-form-control [nzSm]="14" [nzXs]="36" [nzXl]="48" nzErrorTip="The input is not displayName!">
  11. <input
  12. nz-input
  13. disabled="true"
  14. [(ngModel)]="form.model.displayName"
  15. [ngModelOptions]="{ standalone: true }"
  16. name="displayName"
  17. id="displayName"
  18. value="0"
  19. />
  20. </nz-form-control>
  21. </nz-form-item>
  22. <nz-form-item style="width: 100%">
  23. <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="username">{{ 'mxk.accounts.username' | i18n }}</nz-form-label>
  24. <nz-form-control [nzSm]="14" [nzXs]="24" nzErrorTip="The input is not valid username!">
  25. <input
  26. nz-input
  27. disabled="true"
  28. [(ngModel)]="form.model.username"
  29. [ngModelOptions]="{ standalone: true }"
  30. name="username"
  31. id="username"
  32. />
  33. </nz-form-control>
  34. </nz-form-item>
  35. <nz-form-item style="width: 100%">
  36. <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="appName">{{ 'mxk.accounts.appName' | i18n }}</nz-form-label>
  37. <nz-form-control [nzSm]="14" [nzXs]="24" nzErrorTip="The input is not valid appName!">
  38. <input
  39. nz-input
  40. disabled="true"
  41. [(ngModel)]="form.model.appName"
  42. [ngModelOptions]="{ standalone: true }"
  43. name="appName"
  44. id="appName"
  45. />
  46. </nz-form-control>
  47. </nz-form-item>
  48. <nz-form-item style="width: 100%">
  49. <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="relatedUsername">{{ 'mxk.accounts.relatedUsername' | i18n }}</nz-form-label>
  50. <nz-form-control [nzSm]="14" [nzXs]="24" nzErrorTip="The input is not valid relatedUsername!">
  51. <input
  52. nz-input
  53. [(ngModel)]="form.model.relatedUsername"
  54. [ngModelOptions]="{ standalone: true }"
  55. name="relatedUsername"
  56. id="relatedUsername"
  57. />
  58. </nz-form-control>
  59. </nz-form-item>
  60. <nz-form-item style="width: 100%">
  61. <nz-form-label nzRequired [nzSm]="6" [nzXs]="24" nzFor="relatedPassword">{{ 'mxk.accounts.relatedPassword' | i18n }}</nz-form-label>
  62. <nz-form-control [nzSm]="14" [nzXs]="24" nzErrorTip="The input is not valid relatedPassword!">
  63. <nz-input-group [nzSuffix]="suffixPasswordTemplate" style="width: 100%">
  64. <input
  65. [type]="passwordVisible ? 'text' : 'password'"
  66. nz-input
  67. placeholder="new password"
  68. [(ngModel)]="form.model.relatedPassword"
  69. [ngModelOptions]="{ standalone: true }"
  70. name="relatedPassword"
  71. id="relatedPassword"
  72. />
  73. </nz-input-group>
  74. <ng-template #suffixPasswordTemplate>
  75. <i nz-icon [nzType]="passwordVisible ? 'eye-invisible' : 'eye'" (click)="passwordVisible = !passwordVisible"></i>
  76. </ng-template>
  77. </nz-form-control>
  78. </nz-form-item>
  79. <nz-form-item style="width: 100%">
  80. <nz-form-label nzRequired [nzSm]="6" [nzXs]="24" nzFor="confirmPassword">{{ 'mxk.password.confirmPassword' | i18n }}</nz-form-label>
  81. <nz-form-control [nzSm]="14" [nzXs]="24" nzErrorTip="The input is not valid confirmPassword!">
  82. <nz-input-group [nzSuffix]="suffixConfirmPasswordTemplate" style="width: 100%">
  83. <input
  84. [type]="confirmPasswordVisible ? 'text' : 'password'"
  85. nz-input
  86. placeholder="confirm password"
  87. [(ngModel)]="form.model.confirmPassword"
  88. [ngModelOptions]="{ standalone: true }"
  89. name="confirmPassword"
  90. id="confirmPassword"
  91. />
  92. </nz-input-group>
  93. <ng-template #suffixConfirmPasswordTemplate>
  94. <i
  95. nz-icon
  96. [nzType]="confirmPasswordVisible ? 'eye-invisible' : 'eye'"
  97. (click)="confirmPasswordVisible = !confirmPasswordVisible"
  98. ></i>
  99. </ng-template>
  100. </nz-form-control>
  101. </nz-form-item>
  102. </form>
  103. <div *nzModalFooter>
  104. <button nz-button nzType="default" (click)="onClose($event)">{{ 'mxk.text.close' | i18n }}</button>
  105. <button nz-button nzType="primary" (click)="onSubmit()">{{ 'mxk.text.submit' | i18n }}</button>
  106. </div>