Project

General

Profile

« Previous | Next » 

Revision 62388

refactor. fix getDatasourceClasses and corresponding dropdown. fix issn fields

View differences:

datasource-create-form.component.html
57 57
          <form-inline [description]="issnDesc" [valid]="group.get('issn').valid">
58 58
            <span *ngIf="group.get('issn').invalid && group.get('issn').touched && group.get('issn').dirty"
59 59
                  class="help-block inline uk-text-danger"
60
                  style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Issn needs to be of the form: "1111-1111" or "1111-111X"</span>
60
                  style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Issn needs to be of the form: "1111-1111" or "1111-111X" or "11111111" or "1111111X"</span>
61 61
            <input formControlName="issn" class="md-input" type="text"
62 62
                   (focus)="group.get('issn').markAsUntouched()" (blur)="group.get('issn').updateValueAndValidity()">
63 63
          </form-inline>
......
71 71
          <form-inline [description]="eissnDesc" [valid]="group.get('eissn').valid">
72 72
            <span *ngIf="group.get('eissn').invalid && group.get('eissn').touched && group.get('eissn').dirty"
73 73
                  class="help-block inline uk-text-danger"
74
                  style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Eissn needs to be of the form: "1111-1111" or "1111-111X"</span>
74
                  style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Eissn needs to be of the form: "1111-1111" or "1111-111X" or "11111111" or "1111111X"</span>
75 75
            <input formControlName="eissn" class="md-input" type="text"
76 76
                   (focus)="group.get('eissn').markAsUntouched()" (blur)="group.get('eissn').updateValueAndValidity()">
77 77
          </form-inline>
......
85 85
          <form-inline [description]="lissnDesc" [valid]="group.get('lissn').valid">
86 86
            <span *ngIf="group.get('lissn').invalid && group.get('lissn').touched && group.get('lissn').dirty"
87 87
                  class="help-block inline uk-text-danger"
88
                  style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Lissn needs to be of the form: "1111-1111" or "1111-111X"</span>
88
                  style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Lissn needs to be of the form: "1111-1111" or "1111-111X" or "11111111" or "1111111X"</span>
89 89
            <input formControlName="lissn" class="md-input" type="text"
90 90
                   (focus)="group.get('lissn').markAsUntouched()" (blur)="group.get('lissn').updateValueAndValidity()">
91 91
          </form-inline>
......
277 277
        <form-inline [description]="datasourceTypeDesc" [valid]="group.get('datasourceType').valid">
278 278
          <select formControlName="datasourceType" class="md-input">
279 279
            <option value="">-- none selected --</option>
280
            <option *ngFor="let key of classCodes" value="{{key}}">{{ datasourceClasses[key] }}</option>
280
            <option *ngFor="let key of classCodes" value="{{key}}">{{ datasourceClasses.get(key) }}</option>
281 281
          </select>
282 282
        </form-inline>
283 283
      </div>

Also available in: Unified diff