Commit 6b1b1b34 by GD-A-150752

padding-fix

parent 6db877d0
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</app-select-2> </app-select-2>
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row" *ngIf="emailTemplateType()">
<div class="col-md-6"> <div class="col-md-6">
<label for="subjectInputId">Subject</label> <label for="subjectInputId">Subject</label>
<input id="subjectInputId" [(ngModel)]="messageTemplate.Subject" <input id="subjectInputId" [(ngModel)]="messageTemplate.Subject"
......
...@@ -93,7 +93,7 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn ...@@ -93,7 +93,7 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
this.subscriptions.push( this.subscriptions.push(
combineLatest( combineLatest(
this.appService.getTypes('StageTypes'), this.appService.getTypes('StageTypes'),
this.appService.getTypes('StepTypes', true, 'Please Select'), this.appService.getTypes('StepTypes', true, 'Add Step'),
this.appService.getTypes('ResponseActions'), this.appService.getTypes('ResponseActions'),
this.appService.getTypes('ApplicantSources') this.appService.getTypes('ApplicantSources')
) )
...@@ -140,9 +140,13 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn ...@@ -140,9 +140,13 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
addDefaultStages(): void { addDefaultStages(): void {
this.workflow.WorkFlowStages = []; this.workflow.WorkFlowStages = [];
let topIndex = 1;
this.stageTypes.forEach(stage => { this.stageTypes.forEach(stage => {
const index = (!stage.IsPostStage && !stage.IsPreStage) ? topIndex++ : -1;
if (!stage.IsPreStage && !stage.IsPostStage) {
return;
}
const index = -1;
const stageObject = new WorkflowStageModel(`${stage.Description} Stage`, false, stage, index, const stageObject = new WorkflowStageModel(`${stage.Description} Stage`, false, stage, index,
false, this.workflow.ObjectID); false, this.workflow.ObjectID);
this.utilsService.addMultiRefObject(stageObject, this.workflow, 'WorkFlowStages', this.createdObjs); this.utilsService.addMultiRefObject(stageObject, this.workflow, 'WorkFlowStages', this.createdObjs);
...@@ -577,6 +581,7 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn ...@@ -577,6 +581,7 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
list.forEach((item, i) => { list.forEach((item, i) => {
item.SortOrder = i; item.SortOrder = i;
}); });
console.log(this.workflow.WorkFlowStages);
} }
// tslint:disable-next-line:max-file-line-count // tslint:disable-next-line:max-file-line-count
......
<div class="header-select custom-dropdown w-100"> <div class="header-select custom-dropdown w-100">
<select2 #mySelect [data]="_items" [value]="_value" (valueChanged)="valueChanged($event)" <select2 #mySelect [data]="_items" [value]="_value" (valueChanged)="valueChanged($event)"
[options]="options"> [options]="options" class="normalDropDown">
</select2> </select2>
</div> </div>
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core'; import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
import { Select2Component, Select2OptionData } from "ng2-select2"; import { Select2Component, Select2OptionData } from 'ng2-select2';
@Component({ @Component({
selector: 'app-select-2', selector: 'app-select-2',
...@@ -22,12 +22,13 @@ export class SelectTwoComponent { ...@@ -22,12 +22,13 @@ export class SelectTwoComponent {
id: elem.ObjectID ? elem.ObjectID : index, id: elem.ObjectID ? elem.ObjectID : index,
text: elem[this.fieldLabel] text: elem[this.fieldLabel]
}; };
return item; return item;
}); });
setTimeout(() => { setTimeout(() => {
this.ignoreChange = false; this.ignoreChange = false;
}) });
} }
@Input() set value(value) { @Input() set value(value) {
...@@ -47,7 +48,7 @@ export class SelectTwoComponent { ...@@ -47,7 +48,7 @@ export class SelectTwoComponent {
this.options = {minimumResultsForSearch: Infinity}; this.options = {minimumResultsForSearch: Infinity};
} }
valueChanged(event) { valueChanged(event): void {
if (this.ignoreChange) { if (this.ignoreChange) {
return; return;
} }
......
...@@ -118,6 +118,12 @@ ...@@ -118,6 +118,12 @@
} }
} }
.postStage {
.ui-panel {
margin-bottom: 10px;
}
}
.ui-panel { .ui-panel {
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
...@@ -140,7 +146,7 @@ ...@@ -140,7 +146,7 @@
.ui-panel-content { .ui-panel-content {
background-color: white; background-color: white;
padding: 65px 10.5% !important; /*padding: 65px 10.5% !important;*/
} }
} }
...@@ -222,6 +228,13 @@ ...@@ -222,6 +228,13 @@
width: 75% !important; width: 75% !important;
} }
.normalDropDown {
.select2-container .select2-selection .select2-selection__rendered {
background: none;
padding-left: 10px;
}
}
.h-80 { .h-80 {
height: 80px; height: 80px;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment