Project

General

Profile

1
<div *ngIf="loadingMessage" class="loading-big">
2
  <div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
3
    {{ loadingMessage }}
4
  </div>
5
  <div class="whiteFilm"></div>
6
</div>
7
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>
8
<div *ngIf="successMessage" class="uk-alert uk-alert-success">{{ successMessage }}</div>
9
<form *ngIf="selectedRepo" [formGroup]="updateGroup">
10
  <div>
11
    <h4 class="uk-h4 uk-text-primary uk-scrollspy-inview uk-animation-slide-top-medium" uk-scrollspy-class="">
12
      Basic information
13
    </h4>
14
  </div>
15
  <form-inline [description]="softwarePlatformDesc" [valid]="updateGroup.get('softwarePlatform').valid">
16
    <select formControlName="softwarePlatform" class="form-control">
17
<!--      <option value="" selected>[Other] (enter name below)</option> RESTORE AFTER getTypologies begins to work-->
18
      <option *ngFor="let platform of typologies" value="{{ platform.value }}">{{ platform.name }}</option>
19
    </select>
20
  </form-inline>
21
  <form-inline [description]="platformNameDesc" [valid]="updateGroup.get('platformName').valid">
22
    <span *ngIf="updateGroup.get('platformName').touched && updateGroup.get('platformName').value"
23
          class="help-block inline"
24
          style="margin-top: 0px; margin-bottom: 0px; ">This value will be used as the platform for your repository</span>
25
    <input formControlName="platformName" class="form-control" style="" type="text">
26
  </form-inline>
27
  <form-inline [description]="officialNameDesc" [valid]="updateGroup.get('officialName').valid">
28
    <input formControlName="officialName" class="form-control" style="" type="text">
29
  </form-inline>
30
  <div *ngIf="selectedRepo.datasourceType == 'journal'">
31
    <form-inline [description]="issnDesc" [valid]="updateGroup.get('issn').valid">
32
      <input formControlName="issn" class="form-control" type="text">
33
    </form-inline>
34
    <form-inline [description]="eissnDesc" [valid]="updateGroup.get('eissn').valid">
35
      <input formControlName="eissn" class="form-control" type="text">
36
    </form-inline>
37
    <form-inline [description]="lissnDesc" [valid]="updateGroup.get('lissn').valid">
38
      <input formControlName="lissn" class="form-control" type="text">
39
    </form-inline>
40
  </div>
41
  <form-inline [description]="repoDescriptionDesc" [valid]="updateGroup.get('repoDescription').valid">
42
    <textarea formControlName="repoDescription" class="form-control"></textarea>
43
  </form-inline>
44
  <form-inline [description]="countryDesc" [valid]="updateGroup.get('country')">
45
    <select formControlName="country" class="form-control">
46
      <option value="">-- none selected --</option>
47
      <option *ngFor="let country of countries" value="{{country.code}}" title="{{country.name}}">{{ country.name }}</option>
48
    </select>
49
  </form-inline>
50
  <form-inline [description]="longtitudeDesc" [valid]="updateGroup.get('longtitude').valid">
51
    <input formControlName="longtitude" type="text" class="form-control">
52
  </form-inline>
53
  <form-inline [description]="latitudeDesc" [valid]="updateGroup.get('latitude').valid">
54
    <input formControlName="latitude" type="text" class="form-control">
55
  </form-inline>
56
  <form-inline [description]="websiteUrlDesc" [valid]="updateGroup.get('websiteUrl').valid">
57
    <input formControlName="websiteUrl" class="form-control" type="text">
58
  </form-inline>
59
  <form-inline [description]="institutionNameDesc" [valid]="updateGroup.get('institutionName').valid">
60
    <input formControlName="institutionName" class="form-control" type="text">
61
  </form-inline>
62
  <h4 class="uk-h4 uk-text-primary uk-scrollspy-inview uk-animation-slide-top-medium"
63
      uk-scrollspy-class="">Extra Information</h4>
64
  <form-inline [description]="englishNameDesc" [valid]="updateGroup.get('englishName').valid">
65
    <input formControlName="englishName" class="form-control" type="text">
66
  </form-inline>
67
  <form-inline [description]="logoUrlDesc" [valid]="updateGroup.get('logoUrl').valid">
68
    <span *ngIf="updateGroup.get('logoUrl').invalid && updateGroup.get('logoUrl').touched && updateGroup.get('logoUrl').dirty"
69
          class="help-block inline uk-text-danger"
70
          style="margin-top: 0px; margin-bottom: 0px; ">The url you entered is not valid</span>
71
    <input formControlName="logoUrl" class="form-control" type="text"
72
           (focus)="updateGroup.get('logoUrl').markAsUntouched()"
73
           (blur)="updateGroup.get('logoUrl').updateValueAndValidity()">
74
    <div class="comment fontItalic">
75
      Please make sure that the maximum size of the uploaded image is width=360px, height=240px
76
    </div>
77
  </form-inline>
78
  <form-inline [description]="timezoneDesc" [valid]="updateGroup.get('timezone').valid">
79
    <select formControlName="timezone" class="form-control">
80
      <option value="">-- none selected --</option>
81
      <option *ngFor="let timezone of timezones" value="{{ timezone.offset }}">{{ timezone.name }}</option>
82
    </select>
83
  </form-inline>
84
  <form-inline [description]="datasourceTypeDesc" [valid]="updateGroup.get('datasourceType').valid">
85
    <select formControlName="datasourceType" class="form-control">
86
      <option value="">-- none selected --</option>
87
      <option *ngFor="let key of classCodes" value="{{key}}">{{ datasourceClasses[key] }}</option>
88
    </select>
89
  </form-inline>
90
  <h4 class="uk-h4 uk-text-primary uk-scrollspy-inview uk-animation-slide-top-medium"
91
      uk-scrollspy-class="">Administrator & contact information</h4>
92
  <form-inline [description]="adminEmailDesc" [valid]="updateGroup.get('adminEmail').valid">
93
    <span *ngIf="updateGroup.get('adminEmail').invalid && updateGroup.get('adminEmail').touched && updateGroup.get('adminEmail').dirty"
94
          class="help-block inline"
95
          style="margin-top: 0px; margin-bottom: 0px; ">You need to enter a valid email address</span>
96
    <input formControlName="adminEmail" class="form-control" type="text" (focus)="updateGroup.get('adminEmail').markAsUntouched()" (blur)="updateGroup.get('adminEmail').updateValueAndValidity()">
97
  </form-inline>
98
  <div *ngIf="showButton" class="form-group">
99
    <button class="uk-button uk-button-primary updateRepoInfoButton" type="button" (click)="updateRepo()">Update Information</button>
100
  </div>
101
</form>
102

    
103
<confirmation-dialog #updateLogoUrlModal [title]="'Update Logo URL'" [isModalShown]="isModalShown"
104
                     [confirmActionButton]="'Update'" (emitObject)="updatedLogoUrl($event)">
105
  <input type="text" #logoURLinput name="logoUrl" placeholder="Logo URL" class="form-control" value="{{ updateGroup.get('logoUrl').value }}" (change)="changeLogoUrl(logoURLinput.value)">
106
</confirmation-dialog>
(5-5/6)