Updating default value of contract create form
This commit is contained in:
@@ -105,18 +105,20 @@ export class DraftsNewComponent extends BaseDraftsComponent implements OnInit {
|
|||||||
`
|
`
|
||||||
})
|
})
|
||||||
export class DraftsCardComponent extends BaseDraftsComponent implements OnInit {
|
export class DraftsCardComponent extends BaseDraftsComponent implements OnInit {
|
||||||
resource_id: string | null = null;templateModel: {} = {};
|
resource_id: string | null = null;
|
||||||
|
templateModel: {} = {};
|
||||||
isReadyForPublication = false;
|
isReadyForPublication = false;
|
||||||
newContractFormfields: FormlyFieldConfig[] = [];
|
newContractFormfields: FormlyFieldConfig[] = [];
|
||||||
newContractForm: FormGroup = new FormGroup({});
|
newContractForm: FormGroup = new FormGroup({});
|
||||||
newContractModel: any = {
|
newContractModel: any = {
|
||||||
date: formatDate(new Date(),'YYYY-MM-dd', 'EN_US', 'CET'),
|
date: new Date(),
|
||||||
location: "Los Santos, SA",
|
location: "Los Santos, SA",
|
||||||
draft_id: null
|
draft_id: null
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldJson = {
|
fieldJson = {
|
||||||
type: "object",
|
type: "object",
|
||||||
|
required: ["date", "location", "draft_id"],
|
||||||
properties: {
|
properties: {
|
||||||
date: {
|
date: {
|
||||||
type: "string",
|
type: "string",
|
||||||
|
|||||||
Reference in New Issue
Block a user