Project

General

Profile

1

    
2
<div id="tm-main" class=" uk-section  uk-margin-small-top tm-middle"   >
3
  <div uk-grid uk-grid>
4
   <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
5

    
6
<div *ngIf="!server" class="uk-margin-top uk-container uk-container-small uk-position-relative">
7

    
8
  <div *ngIf="loggedIn">
9
      <div  class="uk-alert uk-alert-success">
10
      Hello {{user.fullname}}!
11
      </div>
12
      <!-- <button (click)="logout()" class=" uk-button uk-button-default">Log out</button> -->
13
  </div>
14
<!--form *ngIf="!loggedIn" class=" ">
15

    
16
        <h3>Welcome to OpenAIRE's Discover Portal</h3>
17

    
18
           <p>This service uses the same ldap sign-in  as the OpenAIRE services so you can use the same
19
               credentials.</p>
20

    
21
           <p>Login in. To see it in action.</p>
22
        <div class="uk-margin">
23
         <input class="uk-input uk-form-width-medium" placeholder="Username" type="text" name="username" [(ngModel)]="username">
24
      </div>
25

    
26
      <div class="uk-margin">
27
         <input placeholder="Password" class="uk-input uk-form-width-medium" type="password" name="password" [(ngModel)]="password">
28
      </div>
29
      <div class="uk-margin">
30
         <button (click)="login()" class=" uk-button uk-button-primary">Login</button>
31
      </div>
32
 </form-->
33
 <div *ngIf="errorCode == '1'" class="uk-alert uk-alert-warning">
34
  The requested page requires authentication.
35
  <span  *ngIf="!loggedIn">
36
    Please  <a  class=""  (click)="logIn()"  > sign in</a> to continue.
37
   </span>
38
</div>
39
<div *ngIf="errorCode == '2'" class="uk-alert uk-alert-warning">
40
  You are not authorized to use the requested page.
41
</div>
42
<div *ngIf="errorCode == '3'" class="uk-alert uk-alert-warning">
43
  The session has expired. Please <a  class=""  (click)="logIn()"  >sign in</a> again or continue <a  class=""  (click)="redirect();">browsing as a guest</a>.
44
</div>
45
<div *ngIf="errorCode == '4'" class="uk-alert uk-alert-warning">
46
  You are not authorized to use the requested page.
47
</div>
48
<div *ngIf="errorCode == '5'" class="uk-alert uk-alert-warning">
49
  There is no research community selected.
50
</div>
51
<div *ngIf="errorCode == '6'" class="uk-alert uk-alert-warning">
52
  For this action you have to subscribe to research community first.
53
</div>
54
<div *ngIf="!loggedIn && errorMessage.length > 0" class="uk-alert uk-alert-danger">{{errorMessage}}</div>
55

    
56

    
57
</div>
58
</div>
59
</div>
60
</div>
(6-6/9)