Project

General

Profile

1
<div id="page_content">
2
  <div id="page_content_inner">
3
    <!--<h2 class="heading_b uk-margin-bottom">Manage your datasources</h2>-->
4

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

    
10
    <div class="uk-grid">
11

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

    
17
      <!-- MIDDLE -->
18
      <div class=" uk-width-expand@m">
19

    
20
        <div *ngIf="loadingMessage" class="loading-big">
21
          <div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
22
            {{ loadingMessage }}
23
          </div>
24
          <div class="transparentFilm"></div>
25
        </div>
26

    
27
        <div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>
28

    
29
        <div *ngIf="!loadingMessage && (repo !== null)" class="uk-margin-medium-bottom">
30
          <h3 class="heading_b uk-margin-bottom">
31
            <a id="updateLogoURL" (click)="updateLogoUrl(repo.logoUrl)">
32
              <img *ngIf="!logoURL" src="../../../assets/imgs/yourLogoHere.jpg" style="margin-right: 15px; margin-top:-8px" width="60">
33
              <img *ngIf="logoURL" src="{{ logoURL }}" style="margin-right: 15px; margin-top:-8px" width="60">
34
            </a>
35
            {{ repo.officialName }}
36
          </h3>
37
        </div>
38

    
39
        <div *ngIf="!loadingMessage && (repo !== null) && (repoInterfaces !== null)" class="uk-grid">
40
          <div class="uk-width-medium-1-1">
41
            <div class="md-card tabs" data-uk-grid-margin="">
42
              <div class="md-card-content uk-row-first">
43
                <ul class="uk-tab" data-uk-tab="{connect:'#tabs_anim4', animation:'slide-left'}">
44
                  <li class="uk-active" aria-expanded="true"><a href="#">Update Information</a></li>
45
                  <li aria-expanded="false" class=""><a href="#">Update Interfaces</a></li>
46
                </ul>
47
                <ul id="tabs_anim4" class="uk-switcher uk-margin">
48
                  <li aria-hidden="false" class="uk-active" style="animation-duration: 200ms;">
49
                    <datasource-update-form #datasourceUpdateForm
50
                                            [selectedRepo]="repo"
51
                                            [showButton]=true
52
                                            (emittedUrl)="getNewLogoUrl($event)"></datasource-update-form>
53
                  </li>
54
                  <li aria-hidden="true" style="animation-duration: 200ms;" class="">
55
                    <div *ngIf="repo && repoInterfaces && !loadingMessage" class="uk-grid uk-grid-match uk-margin-top" style="padding: 0px 3px 0px 3px;">
56
                      <div *ngFor="let inter of dataForInterfaceComp" class="uk-width-1-2@m uk-margin-bottom">
57
                        <div>
58
                          <div class="md-card" style="height: 100%">
59
                            <app-repository-interface-form #interfacesArray
60
                                                           [data]="inter"
61
                                                           (emitDeleteInterface)="removeInterfaceFromList($event)">
62
                            </app-repository-interface-form>
63
                          </div>
64
                        </div>
65
                      </div>
66
                      <div class="uk-width-1-2@m uk-margin-bottom">
67
                        <div>
68
                          <div class="md-card" style="height: 100%">
69
                            <div class="md-card-toolbar">
70
                            </div>
71
                            <div class="md-card-content">
72
                              <div class="interface-box new" style="text-align: center">
73
                                <a class="add-new-element add-new-group" (click)="addInterfaceToList()">
74
                                  <i class="far fa-plus-square" aria-hidden="true"></i>
75
                                  <span class="info">Add New Interface</span>
76
                                </a>
77
                              </div>
78
                            </div>
79
                          </div>
80
                        </div>
81

    
82
                      </div>
83
                    </div>
84
                  </li>
85
                </ul>
86
              </div>
87
            </div>
88
          </div>
89
        </div>
90

    
91

    
92
      </div>
93

    
94
      <!-- RIGHT HELP CONTENT -->
95
      <aside-help-content #rightHelperContent [position]="'right'"
96
                          [ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
97
      </aside-help-content>
98

    
99
    </div>
100

    
101
    <!-- BOTTOM HELP CONTENT -->
102
    <help-content #bottomHelperContent [position]="'bottom'"
103
                  [ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
104
    </help-content>
105

    
106
  </div>
107
</div>
108

    
109

    
110

    
111
<confirmation-dialog #updateLogoUrlModal [title]="'Update Logo URL'" [isModalShown]="isModalShown"
112
                     [confirmActionButton]="'Update'" (emitObject)="updatedLogoUrl($event)">
113
  <div class="md-input-wrapper uk-margin-top">
114
    <input type="text" name="logoUrl" placeholder="Logo URL" class="md-input" value="{{ logoURL }}" (change)="getNewLogoUrl($event)">
115
    <span class="md-input-bar"></span>
116
  </div>
117
</confirmation-dialog>
118

    
(3-3/10)