@ -31,50 +31,10 @@
< / div >
< / div >
< / div >
<!-- Language field -->
< div class = "row" >
< div class = "col-12" >
< div class = "heading" > 1.3 {{'DMP-EDITOR.FIELDS.LANGUAGE' | translate}}*< / div >
< div class = "hint" > {{'DMP-EDITOR.FIELDS.LANGUAGE-HINT' | translate}}< / div >
< div class = "language-form" >
< mat-form-field >
< mat-select [ formControl ] = " formGroup . get ( ' extraProperties ' ) . get ( ' language ' ) " placeholder = "{{'DMP-EDITOR.FIELDS.LANGUAGE' | translate}}" required >
< mat-option * ngFor = "let lang of getLanguageInfos()" [ value ] = " lang . code " >
{{ lang.name }}
< / mat-option >
< / mat-select >
< mat-error * ngIf = "formGroup.get('extraProperties').get('language').hasError('backendError')" >
{{formGroup.get('extraProperties').get('language').getError('backendError').message}}< / mat-error >
< mat-error * ngIf = "formGroup.get('extraProperties').get('language').hasError('required')" >
{{'GENERAL.VALIDATION.REQUIRED' | translate}}< / mat-error >
< / mat-form-field >
< / div >
< / div >
< / div >
<!-- Visibility field -->
< div class = "row" >
< div class = "col-12" >
< div class = "heading" > 1.4 {{'DMP-EDITOR.FIELDS.VISIBILITY' | translate}}< / div >
< div class = "hint" > {{'DMP-EDITOR.FIELDS.VISIBILITY-HINT' | translate}}< / div >
< div class = "visibility-form" >
< mat-form-field >
< mat-select [ formControl ] = " formGroup . get ( ' extraProperties ' ) . get ( ' visible ' ) " placeholder = "{{'DMP-EDITOR.FIELDS.VISIBILITY' | translate}}" >
< mat-option * ngFor = "let vis of visibles" [ value ] = " vis . value " >
{{vis.name | translate}}
< / mat-option >
< / mat-select >
< mat-error * ngIf = "formGroup.get('extraProperties').get('visible').hasError('backendError')" >
{{formGroup.get('extraProperties').get('visible').getError('backendError').message}}< / mat-error >
< mat-error * ngIf = "formGroup.get('extraProperties').get('visible').hasError('required')" >
{{'GENERAL.VALIDATION.REQUIRED' | translate}}< / mat-error >
< / mat-form-field >
< / div >
< / div >
< / div >
<!-- Researchers field -->
< div class = "row" >
< div class = "col-12" >
< div class = "heading" > 1.5 {{'DMP-EDITOR.FIELDS.RESEARCHERS' | translate}}< / div >
< div class = "heading" > 1.3 {{'DMP-EDITOR.FIELDS.RESEARCHERS' | translate}}< / div >
< div class = "hint" >
< div class = "pb-1" > {{'DMP-EDITOR.FIELDS.RESEARCHERS-HINT' | translate}}< / div >
< div > < span class = "material-icons-outlined align-bottom" > info< / span > {{'DMP-EDITOR.MAIN-INFO.TYPING' | translate}}< / div >
@ -102,7 +62,7 @@
<!-- Organizations Field -->
< div class = "row" >
< div class = "col-12" >
< div class = "heading" > 1.6 {{'DMP-EDITOR.FIELDS.ORGANISATIONS' | translate}}< / div >
< div class = "heading" > 1.4 {{'DMP-EDITOR.FIELDS.ORGANISATIONS' | translate}}< / div >
< div class = "hint" >
< div class = "pb-1" > {{'DMP-EDITOR.FIELDS.ORGANISATIONS-HINT' | translate}}< / div >
< div > < span class = "material-icons-outlined align-bottom" > info< / span > {{'DMP-EDITOR.MAIN-INFO.TYPING' | translate}}< / div >
@ -126,10 +86,30 @@
< / div >
< / div >
< / div >
<!-- Language field -->
< div class = "row" >
< div class = "col-12" >
< div class = "heading" > 1.5 {{'DMP-EDITOR.FIELDS.LANGUAGE' | translate}}*< / div >
< div class = "hint" > {{'DMP-EDITOR.FIELDS.LANGUAGE-HINT' | translate}}< / div >
< div class = "language-form" >
< mat-form-field >
< mat-select [ formControl ] = " formGroup . get ( ' extraProperties ' ) . get ( ' language ' ) " placeholder = "{{'DMP-EDITOR.FIELDS.LANGUAGE' | translate}}" required >
< mat-option * ngFor = "let lang of getLanguageInfos()" [ value ] = " lang . code " >
{{ lang.name }}
< / mat-option >
< / mat-select >
< mat-error * ngIf = "formGroup.get('extraProperties').get('language').hasError('backendError')" >
{{formGroup.get('extraProperties').get('language').getError('backendError').message}}< / mat-error >
< mat-error * ngIf = "formGroup.get('extraProperties').get('language').hasError('required')" >
{{'GENERAL.VALIDATION.REQUIRED' | translate}}< / mat-error >
< / mat-form-field >
< / div >
< / div >
< / div >
<!-- Contact Field -->
< div class = "row" >
< div class = "col-12" >
< div class = "heading" > 1.7 {{'DMP-EDITOR.FIELDS.CONTACT' | translate}}*< / div >
< div class = "heading" > 1.6 {{'DMP-EDITOR.FIELDS.CONTACT' | translate}}*< / div >
<!-- <div class="hint">{{'DMP - EDITOR.LICENSE - INFO.HINT' | translate}}</div> -->
< div class = "contact-form" >
< mat-form-field >
@ -146,23 +126,5 @@
< / div >
< / div >
< / div >
<!-- Publication Field -->
< div class = "row" * ngIf = "formGroup.get('extraProperties').get('visible').value" >
< div class = "col-12" >
< div class = "heading" > 1.8 {{'DMP-EDITOR.FIELDS.PUBLICATION' | translate}}*< / div >
<!-- <div class="hint">{{'DMP - EDITOR.LICENSE - INFO.HINT' | translate}}</div> -->
< div class = "publication-form" >
< mat-form-field >
< input matInput [ matDatepicker ] = " picker " [ formControl ] = " formGroup . get ( ' extraProperties ' ) . get ( ' publicDate ' ) " placeholder = "{{'DMP-EDITOR.FIELDS.PUBLICATION' | translate}}" [ required ] = " formGroup . get ( ' extraProperties ' ) . get ( ' visible ' ) . value " >
< mat-datepicker-toggle matSuffix [ for ] = " picker " > < / mat-datepicker-toggle >
< mat-datepicker # picker > < / mat-datepicker >
< mat-error * ngIf = "formGroup.get('extraProperties').get('publicDate').hasError('backendError')" >
{{formGroup.get('extraProperties').get('publicDate').getError('backendError').message}}< / mat-error >
< mat-error * ngIf = "formGroup.get('extraProperties').get('publicDate').hasError('required')" >
{{'GENERAL.VALIDATION.REQUIRED' | translate}}< / mat-error >
< / mat-form-field >
< / div >
< / div >
< / div >
< / div >
< / div >