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
      <a  class=""  (click)="logIn()"  >Please Sign in</a>
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 sign in again or continue <a (click)="redirect();">browsing as a guest</a>.
44
  <span  *ngIf="!loggedIn">
45
      <!-- <a  class="loginLink"   [href]="loginUrl"   >Sign in</a> -->
46
      <a  class=""  (click)="logIn()"  >Please Sign in</a>
47
   </span>
48
</div>
49
<div *ngIf="errorCode == '4'" class="uk-alert uk-alert-warning">
50
  You are not authorized to use the requested page
51
</div>
52
<div *ngIf="errorCode == '5'" class="uk-alert uk-alert-warning">
53
  There is no community selected
54
</div>
55
<div *ngIf="errorCode == '6'" class="uk-alert uk-alert-warning">
56
  For this action you have to subscribe to community first
57
</div>
58
<div *ngIf="!loggedIn && errorMessage.length > 0" class="uk-alert uk-alert-danger">{{errorMessage}}</div>
59

    
60

    
61
</div>
62
</div>
63
</div>
64
</div>
(6-6/9)