Advertisement
Guest User

Untitled

a guest
Oct 16th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 11.13 KB | None | 0 0
  1. <div
  2.  fxLayout="row"
  3.  class="sign-in-content wallpaper"
  4. >
  5.   <div
  6.    fxFlex
  7.    fxLayout="row"
  8.    class="login-section"
  9.  >
  10.     <div class="section-container">
  11.       <mat-accordion displayMode="flat">
  12.         <mat-expansion-panel
  13.          #googleLoginPanel
  14.          hideToggle="true"
  15.          [matTooltip]="googleLoginTooltip"
  16.          matTooltipClass="tooltip"
  17.          matTooltipPosition="above"
  18.          (click)="loginWithGoogle()">
  19.           <mat-expansion-panel-header>
  20.             <mat-panel-title>
  21.               Google Login
  22.             </mat-panel-title>
  23.           </mat-expansion-panel-header>
  24.         </mat-expansion-panel>
  25.  
  26.         <mat-expansion-panel
  27.          [matTooltip]="nonGoogleLoginTooltip"
  28.          matTooltipClass="tooltip">
  29.           <mat-expansion-panel-header>
  30.             <mat-panel-title>
  31.               Non-Google Login
  32.             </mat-panel-title>
  33.           </mat-expansion-panel-header>
  34.             <mat-tab-group
  35.              mat-stretch-tabs
  36.              class="form-tabs"
  37.              (selectedIndexChange)="onFormChange()"
  38.              *ngIf="!showResetPasswordPanel"
  39.            >
  40.               <mat-tab label="Sign In">
  41.                 <app-widget>
  42.                   <app-widget-content>
  43.                     <div class="loading-shade" *ngIf="authIsLoading">
  44.                         <mat-spinner></mat-spinner>
  45.                     </div>
  46.  
  47.                     <div class="wrapper-content" *ngIf="!authIsLoading">
  48.                       <form
  49.                        *ngIf="signInForm"
  50.                        autocomplete="off"
  51.                        fxLayout="column"
  52.                        fxLayoutGap="2em"
  53.                        [formGroup]="signInForm"
  54.                      >
  55.                         <div fxLayout="column">
  56.                           <div class="form-group">
  57.                             <mat-form-field>
  58.                               <input
  59.                                type="text"
  60.                                matInput
  61.                                placeholder="Email"
  62.                                formControlName="email"
  63.                                maxlength="241"
  64.                                required
  65.                              >
  66.                                 <mat-error *ngIf="signInForm.get('email').hasError('required')">
  67.                                   Email is
  68.                                   <strong>required</strong>
  69.                                 </mat-error>
  70.                                 <mat-error *ngIf="signInForm.get('email').hasError('email')">
  71.                                   Email is
  72.                                   <strong>wrong</strong>
  73.                                 </mat-error>
  74.                             </mat-form-field>
  75.                           </div>
  76.                           <div class="form-group">
  77.                             <mat-form-field>
  78.                               <input
  79.                                type="password"
  80.                                matInput
  81.                                placeholder="Password"
  82.                                formControlName="password"
  83.                                maxlength="50"
  84.                                (keydown.enter)="login()"
  85.                                required
  86.                              >
  87.                               <mat-error *ngIf="signInForm.get('password').hasError('required')">
  88.                                 Password is
  89.                                 <strong>required</strong>
  90.                               </mat-error>
  91.                             </mat-form-field>
  92.                           </div>
  93.                           <p *ngIf="authError" class="error-form">
  94.                             {{ authErrorDescription }}
  95.                           </p>
  96.                         </div>
  97.                       </form>
  98.  
  99.                       <p class="forgot-password-link">
  100.                         <a (click)="showResetPassword()">Forgot your password?</a>
  101.                       </p>
  102.  
  103.                       <div>
  104.                         <button
  105.                          mat-raised-button
  106.                          (click)="login()"
  107.                          class="action-button"
  108.                          [disabled]="!f.email.value || !f.password.value"
  109.                        >Sign In</button>
  110.                       </div>
  111.  
  112.                     </div>
  113.                   </app-widget-content>
  114.                 </app-widget>
  115.               </mat-tab>
  116.  
  117.               <mat-tab label="Sign Up">
  118.                 <app-widget>
  119.                   <app-widget-content>
  120.                     <div class="loading-shade" *ngIf="authIsLoading">
  121.                         <mat-spinner></mat-spinner>
  122.                     </div>
  123.  
  124.                     <div class="wrapper-content" *ngIf="!authIsLoading">
  125.                       <form
  126.                        *ngIf="signUpForm"
  127.                        autocomplete="off"
  128.                        fxLayout="column"
  129.                        fxLayoutGap="2em"
  130.                        [formGroup]="signUpForm"
  131.                      >
  132.                         <div fxLayout="column">
  133.                           <div class="form-group">
  134.                             <mat-form-field>
  135.                               <input type="text" matInput placeholder="Email" formControlName="email" maxlength="241" required>
  136.                                 <mat-error *ngIf="signUpForm.get('email').hasError('required')">
  137.                                   Email is
  138.                                   <strong>required</strong>
  139.                                 </mat-error>
  140.                                 <mat-error *ngIf="signUpForm.get('email').hasError('email')">
  141.                                   Email is
  142.                                   <strong>wrong</strong>
  143.                                 </mat-error>
  144.                                 <mat-error *ngIf="signUpForm.get('email').hasError('isBrodieEmail')">
  145.                                   If you are a broad user, please use the
  146.                                   <strong>Google Login</strong> option above
  147.                                 </mat-error>
  148.                             </mat-form-field>
  149.                           </div>
  150.                           <div class="form-group">
  151.                             <mat-form-field>
  152.                               <input type="password" matInput placeholder="Password" formControlName="password" maxlength="50" required>
  153.                               <mat-error *ngIf="signUpForm.get('password').hasError('required')">
  154.                                 Password is
  155.                                 <strong>required</strong>
  156.                               </mat-error>
  157.                             </mat-form-field>
  158.                           </div>
  159.                           <p *ngIf="authError" class="error-form">
  160.                             {{ authErrorDescription }}
  161.                           </p>
  162.                         </div>
  163.                       </form>
  164.  
  165.                       <app-password-strength
  166.                        [password]="r.password.value"
  167.                        (passwordStrengthChange)="onPasswordChange($event)">
  168.                       </app-password-strength>
  169.  
  170.                       <div>
  171.                         <button
  172.                          mat-raised-button
  173.                          (click)="register()"
  174.                          class="action-button"
  175.                          [disabled]="!r.email.value || !r.password.value || !enableRegistration"
  176.                        >Sign Up</button>
  177.                       </div>
  178.  
  179.                     </div>
  180.                   </app-widget-content>
  181.                 </app-widget>
  182.               </mat-tab>
  183.             </mat-tab-group>
  184.  
  185.             <div id="reset-password" *ngIf="showResetPasswordPanel">
  186.               <app-widget>
  187.                   <app-widget-content>
  188.                     <div class="loading-shade" *ngIf="authIsLoading">
  189.                       <mat-spinner></mat-spinner>
  190.                     </div>
  191.  
  192.                     <div class="wrapper-content" *ngIf="!authIsLoading">
  193.                       <form
  194.                        *ngIf="resetPasswordForm"
  195.                        autocomplete="off"
  196.                        fxLayout="column"
  197.                        fxLayoutGap="2em"
  198.                        [formGroup]="resetPasswordForm"
  199.                      >
  200.                         <div fxLayout="column">
  201.                           <div class="form-group">
  202.                             <mat-form-field>
  203.                               <input type="text" matInput placeholder="Email" formControlName="email" maxlength="241" required>
  204.                                 <mat-error *ngIf="resetPasswordForm.get('email').hasError('required')">
  205.                                   Email is
  206.                                   <strong>required</strong>
  207.                                 </mat-error>
  208.                                 <mat-error *ngIf="resetPasswordForm.get('email').hasError('email')">
  209.                                     Email is
  210.                                     <strong>wrong</strong>
  211.                                   </mat-error>
  212.                             </mat-form-field>
  213.                           </div>
  214.                           <p *ngIf="authError" class="error-form">
  215.                             {{ authErrorDescription }}
  216.                           </p>
  217.                         </div>
  218.                       </form>
  219.  
  220.                       <p>
  221.                         {{ resetPasswordMessage }}
  222.                       </p>
  223.  
  224.                       <div>
  225.                         <button
  226.                          mat-raised-button
  227.                          (click)="resetPassword()"
  228.                          class="action-button"
  229.                          [disabled]="!p.email.value"
  230.                        >Reset Password</button>
  231.  
  232.                         <button
  233.                          mat-raised-button
  234.                          (click)="cancelResetPassword()"
  235.                          class="action-button cancel"
  236.                        >Cancel</button>
  237.                       </div>
  238.  
  239.                     </div>
  240.                   </app-widget-content>
  241.                 </app-widget>
  242.             </div>
  243.         </mat-expansion-panel>
  244.       </mat-accordion>
  245.     </div>
  246.  
  247.   </div>
  248.   <div
  249.    fxFlex="50%"
  250.    fxLayout="row"
  251.    class="brand-section"
  252.  >
  253.     <div class="section-container">
  254.       <app-widget>
  255.         <app-widget-content>
  256.             <div class="brand-logo">
  257.                 <img
  258.                  width="149"
  259.                  height="38"
  260.                  src="../../../assets/images/broad_logo.png"
  261.                  alt="Broad Institute">
  262.             </div>
  263.             <small>
  264.               Welcome to the Broad Institute Quotes application. The Quotes application provides customers with
  265.               visibility to their Quotes with the Broad SSF Platforms. The Quote application can also be used to
  266.               review and approve new quotes as they are issued by Broad Platforms.
  267.             </small>
  268.         </app-widget-content>
  269.       </app-widget>
  270.     </div>
  271.   </div>
  272. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement