frontend code clean up
This commit is contained in:
parent
5e551cd4ef
commit
d7277e990c
|
@ -66,8 +66,8 @@ export interface PlanUser extends BaseEntity {
|
|||
|
||||
export interface PlanDescriptionTemplate extends BaseEntity {
|
||||
plan?: Plan;
|
||||
currentDescriptionTemplate?: DescriptionTemplate; //TODO: what is this?
|
||||
descriptionTemplates?: DescriptionTemplate[]; //TODO: why it is array?
|
||||
currentDescriptionTemplate?: DescriptionTemplate;
|
||||
descriptionTemplates?: DescriptionTemplate[];
|
||||
descriptionTemplateGroupId?: Guid;
|
||||
sectionId?: Guid;
|
||||
}
|
||||
|
|
|
@ -75,7 +75,6 @@
|
|||
|
||||
<!-- DatePicker -->
|
||||
<mat-form-field class="col-12" *ngIf="fieldType === descriptionTemplateFieldTypeEnum.DATE_PICKER">
|
||||
<!--(focus)="date.open()" (click)="date.open()"-->
|
||||
<mat-label>{{placeHolder}}</mat-label>
|
||||
<input matInput [placeholder]="placeHolder" class="table-input" [matDatepicker]="date" [formControl]="form" [required]="required">
|
||||
<mat-datepicker-toggle matSuffix [for]="date"></mat-datepicker-toggle>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<div class="row" *ngIf="form.get('data')">
|
||||
<!-- <h5 style="font-weight: bold" class="col-12">{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-LICENSES-TITLE' | translate}}</h5> -->
|
||||
<mat-checkbox class="col-auto" [formControl]="this.form.get('data').get('multipleSelect')">
|
||||
{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-MULTIPLE-AUTOCOMPLETE' | translate}}
|
||||
</mat-checkbox>
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
</mat-option>
|
||||
<mat-divider></mat-divider>
|
||||
<mat-option [value]="descriptionTemplateFieldTypeEnum.UPLOAD">
|
||||
<!-- <img src="/assets/images/editor/icons/text_area.svg" class="input_icon" alt="Upload icon">-->
|
||||
<mat-icon class="input_icon" style="font-size: 14px; color: #129d99; display: inline-flex; align-items: center">upload</mat-icon>
|
||||
{{enumUtils.toDescriptionTemplateFieldTypeString(descriptionTemplateFieldTypeEnum.UPLOAD)}}
|
||||
</mat-option>
|
||||
|
|
|
@ -32,9 +32,6 @@
|
|||
|
||||
<mat-horizontal-stepper [linear]="!isFinalized" #stepper class="stepper" (selectionChange)="onMatStepperSelectionChange($event)" style="padding-left: 8px; padding-right: 15px;">
|
||||
|
||||
<!-- IMPORTANT TO BE !INVALID (WHEN THE TEMPLATE IS FINALIZED THE CONTORLS ARE DISABLED) -->
|
||||
<!-- <ng-template matStepLabel>{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.TITLE' | translate}}
|
||||
</ng-template> -->
|
||||
<mat-step [label]="generalInfoStepperLabel" [completed]="(!formGroup.get('label').invalid && !formGroup.get('description').invalid && !formGroup.get('language').invalid)">
|
||||
<div class="col-9">
|
||||
<div class="col">
|
||||
|
|
|
@ -7,10 +7,8 @@
|
|||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<!-- <title>Data Management Plans Creator</title> -->
|
||||
<base href="/">
|
||||
<meta name="csrf-token" content="2c64def7de30197c40276fe1a7ea874ca8871f70be7d7dc3305465a4d5c565e4">
|
||||
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||
<script src="//connect.facebook.net/en_US/all.js"></script>
|
||||
<script type="text/javascript" src="//platform.linkedin.com/in.js"></script>
|
||||
|
|
Loading…
Reference in New Issue