aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/signup/signup.component.html
blob: ae3a595e9fe023c3dd8add89a97d8c1e159de4c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<div class="margin-content">

  <div i18n class="title-page title-page-single">
    Create an account
  </div>


  <my-success *ngIf="signupDone"></my-success>
  <div *ngIf="info" class="alert alert-info">{{ info }}</div>
  <div *ngIf="success" class="alert alert-success">{{ success }}</div>

  <div class="wrapper" *ngIf="!signupDone">
    <div>
      <my-custom-stepper linear *ngIf="!signupDone">
        <cdk-step [stepControl]="formStepUser" i18n-label label="User information">
          <my-signup-step-user (formBuilt)="onUserFormBuilt($event)"></my-signup-step-user>

          <button i18n cdkStepperNext [disabled]="!formStepUser || !formStepUser.valid">Next</button>
        </cdk-step>

        <cdk-step [stepControl]="formStepChannel" i18n-label label="Channel information">
          <my-signup-step-channel (formBuilt)="onChannelFormBuilt($event)" [username]="getUsername()"></my-signup-step-channel>

          <button i18n cdkStepperNext (click)="signup()"
                  [disabled]="!formStepChannel || !formStepChannel.valid || hasSameChannelAndAccountNames()"
          >
            Create my account
          </button>
        </cdk-step>

        <cdk-step i18n-label label="Done" editable="false">
          <div *ngIf="error" class="alert alert-danger">{{ error }}</div>
        </cdk-step>
      </my-custom-stepper>
    </div>

    <div>
      <label i18n>Features found on this instance</label>
      <my-instance-features-table></my-instance-features-table>
    </div>
  </div>

</div>