Project

General

Profile

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

    
107
  </form-inline>
108
  <h4 class="uk-h4 uk-text-primary uk-scrollspy-inview uk-animation-slide-top-medium"
109
      uk-scrollspy-class="">Administrator & contact information</h4>
110
  <form-inline [description]="adminEmailDesc" [valid]="group.get('adminEmail').valid">
111
    <span *ngIf="group.get('adminEmail').invalid && group.get('adminEmail').touched && group.get('adminEmail').dirty"
112
          class="help-block inline"
113
          style="margin-top: 0px; margin-bottom: 0px; ">You need to enter a valid email address</span>
114
    <input formControlName="adminEmail" class="form-control" type="text"
115
           (focus)="group.get('adminEmail').markAsUntouched()"
116
           (blur)="group.get('adminEmail').updateValueAndValidity()">
117
  </form-inline>
118
</form>
(1-1/8)