Project

General

Profile

1
<div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
2
  <div class="uk-width-1-1@m uk-first-column">
3

    
4
    <h1 class="uk-h2">Register your datasource</h1>
5

    
6
    <!-- TOP HELP CONTENT -->
7
    <help-content #topHelperContent [position]="'top'"
8
                  [ngClass]="topHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
9
    </help-content>
10

    
11
    <div class="uk-container uk-container-large uk-margin-medium-top uk-margin-medium-bottom">
12
      <div class="uk-grid">
13

    
14
        <!-- LEFT HELP CONTENT -->
15
        <aside-help-content #leftHelperContent [position]="'left'"
16
                            [ngClass]="leftHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
17
        </aside-help-content>
18

    
19
        <!-- MIDDLE -->
20
        <div class=" uk-width-expand@m">
21

    
22
          <div class="wizard">
23
            <div class="wizardBreadcrumbs">
24
              <div class="steps clearfix">
25
                <div class="step active">
26
                  <div>
27
                    Select repository
28
                    <span></span>
29
                  </div>
30
                </div>
31
                <div class="step {{ (currentStep > 0) ? 'active' : '' }}">
32
                  <div>
33
                    Enter Information
34
                    <span></span>
35
                  </div>
36
                </div>
37
                <div class="step {{ (currentStep > 1) ? 'active' : '' }}">
38
                  <div>
39
                    Add Interfaces
40
                    <span></span>
41
                  </div>
42
                </div>
43
                <div class="step {{ (currentStep > 2) ? 'active' : '' }}">
44
                  <div>
45
                    Finish
46
                    <span></span>
47
                  </div>
48
                </div>
49
              </div>
50
            </div>
51
            <div class="content">
52
              <div>
53
                <div class="animated fadeInRight stepContent">
54
                  <div *ngIf="loadingMessage" class="loading-big">
55
                    <div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
56
                      {{ loadingMessage }}
57
                    </div>
58
                    <div class="whiteFilm"></div>
59
                  </div>
60
                  <div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>
61

    
62
                  <div>
63
                    <app-select-existing-datasource *ngIf="(currentStep === 0) && (currentMode !== null) && !loadingMessage"
64
                                                    #datasourcesByCountry
65
                                                    [mode]="currentMode"
66
                                                    (emitRepoId)="getRepoId($event)"
67
                                                    (promptNext)="goToStep2($event)"></app-select-existing-datasource>
68

    
69
                    <datasource-update-form *ngIf="(currentStep === 1) && (repo !== null) && !loadingMessage"
70
                                            #registerDatasource
71
                                            [selectedRepo]="repo"
72
                                            (emittedInfo)="getUpdatedRepo($event)"></datasource-update-form>
73

    
74
                    <div *ngIf="(currentStep === 2) && repo && !loadingMessage" class="uk-grid uk-child-width-1-2">
75
                      <div *ngFor="let inter of dataForInterfaceComp"
76
                           class="interfacesForm el-item uk-card uk-card-default uk-card-body uk-scrollspy-inview uk-animation-fade uk-margin-bottom">
77
                        <app-repository-interface-form #interfacesArray
78
                                                       [data]="inter"
79
                                                       (emitDeleteInterface)="removeInterfaceFromList($event)">
80
                        </app-repository-interface-form>
81
                      </div>
82
                      <div class="el-item uk-card uk-card-default uk-card-body uk-scrollspy-inview uk-animation-fade uk-margin-bottom">
83
                        <div class="interface-box new" style="text-align: center">
84
                          <a class="add-new-element add-new-group" (click)="addInterfaceToList()">
85
                            <i class="far fa-plus-square" aria-hidden="true"></i>
86
                            <span class="info">Add New Interface</span>
87
                          </a>
88
                        </div>
89
                      </div>
90
                    </div>
91
                    <div *ngIf="(currentStep === 3) && !loadingMessage" class="row openAIRECompliantLogoDownload">
92
                      <div class="col-lg-12">
93
                        <div class="col-md-12">
94
                          <div>
95
                            <div class="openAIRECompliantLogo">
96
                              <h2 class="openAIRECompliantLogoMessage">
97
                                We successfully received the request to register your repository to the OpenAIRE compliant list of content providers.
98
                                A validation process against the OpenAIRE guidelines compatibility has been started.
99
                                You will be informed via email once the process is finished.
100
                                <!--Congratulations! Your repository was successfully registered in OpenAIRE. You can download this logo to use in your site.-->
101
                              </h2>
102
                              <!--<img src="../../../../assets/imgs/3_0ValidatedLogo.png" alt="OpenAireCompliant">-->
103
                            </div>
104
                          </div>
105
                          <!--<a (click)="downloadLogo()">-->
106
                            <!--Download-->
107
                            <!--<i class="fa fa-download" style=""></i>-->
108
                          <!--</a>-->
109
                        </div>
110
                      </div>
111
                    </div>
112
                  </div>
113
                </div>
114
              </div>
115
            </div>
116
            <div class="wizardActions">
117
              <button *ngIf="((currentStep === 1) || (currentStep === 2)) && !loadingMessage"
118
                      class="uk-button uk-button-grey-light uk-margin-small-right"
119
                      type="button" (click)="moveBackAStep()">
120
                <i class="fa fa-angle-double-left"></i>
121
                Back
122
              </button>
123
              <button *ngIf="(currentStep < 3) && !loadingMessage"
124
                      class="uk-button uk-button-grey-light uk-margin-small-left"
125
                      type="button" (click)="moveAStep()">
126
                Next
127
                <i class="fa fa-angle-double-right"></i>
128
              </button>
129
            </div>
130
          </div>
131

    
132
        </div>
133

    
134
        <!-- RIGHT HELP CONTENT -->
135
        <aside-help-content #rightHelperContent [position]="'right'"
136
                            [ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
137
        </aside-help-content>
138

    
139
      </div>
140
    </div>
141

    
142

    
143
    <!-- BOTTOM HELP CONTENT -->
144
    <help-content #bottomHelperContent [position]="'bottom'"
145
                  [ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
146
    </help-content>
147

    
148

    
149
  </div>
150
</div>
(3-3/10)