Moving contracts/drafts to contract-drafts
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { RouterModule, Routes } from '@angular/router';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
import {ContractsModule} from "./views/contracts/contracts.module";
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
@@ -30,6 +29,11 @@ const routes: Routes = [
|
|||||||
loadChildren: () =>
|
loadChildren: () =>
|
||||||
import('./views/templates/templates.module').then((m) => m.TemplatesModule)
|
import('./views/templates/templates.module').then((m) => m.TemplatesModule)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'contract-drafts',
|
||||||
|
loadChildren: () =>
|
||||||
|
import('./views/contract-drafts/contract-drafts.module').then((m) => m.ContractDraftsModule)
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'contracts',
|
path: 'contracts',
|
||||||
loadChildren: () =>
|
loadChildren: () =>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export class SidenavComponent {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: $localize`Contracts Drafts`,
|
title: $localize`Contracts Drafts`,
|
||||||
link: "/contracts/drafts",
|
link: "/contract-drafts",
|
||||||
icon: IconNamesEnum.PencilSquare
|
icon: IconNamesEnum.PencilSquare
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
import { DraftsCardComponent, DraftsListComponent, DraftsNewComponent } from "./drafts.component";
|
||||||
|
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
data: {
|
||||||
|
title: 'Contract Drafts',
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{ path: '', redirectTo: 'list', pathMatch: 'full' },
|
||||||
|
{
|
||||||
|
path: 'list',
|
||||||
|
component: DraftsListComponent,
|
||||||
|
data: {
|
||||||
|
title: 'List',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'new',
|
||||||
|
component: DraftsNewComponent,
|
||||||
|
data: {
|
||||||
|
title: 'New',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: ':id',
|
||||||
|
component: DraftsCardComponent,
|
||||||
|
data: {
|
||||||
|
title: 'Card',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule]
|
||||||
|
})
|
||||||
|
export class ContractDraftsRoutingModule {}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
|
||||||
|
import { BaseViewModule } from "../base-view/base-view.module";
|
||||||
|
import { ContractDraftsRoutingModule } from './contract-drafts-routing.module';
|
||||||
|
import { DraftsCardComponent, DraftsListComponent, DraftsNewComponent, DraftsNewFormComponent } from "./drafts.component";
|
||||||
|
import { FormlyModule } from "@ngx-formly/core";
|
||||||
|
import { FormlyBootstrapModule } from "@ngx-formly/bootstrap";
|
||||||
|
import { ForeignkeyTypeComponent } from "@common/crud/types/foreignkey.type";
|
||||||
|
import { CrudService, ImageUploaderCrudService } from "@common/crud/crud.service";
|
||||||
|
|
||||||
|
import { NgbAccordionModule, NgbCollapseModule } from "@ng-bootstrap/ng-bootstrap";
|
||||||
|
import { allIcons, NgxBootstrapIconsModule } from "ngx-bootstrap-icons";
|
||||||
|
import { ClipboardModule } from "@angular/cdk/clipboard";
|
||||||
|
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
BaseViewModule,
|
||||||
|
ContractDraftsRoutingModule,
|
||||||
|
NgbAccordionModule,
|
||||||
|
NgbCollapseModule,
|
||||||
|
NgxBootstrapIconsModule.pick(allIcons),
|
||||||
|
FormlyModule.forRoot({
|
||||||
|
types: [
|
||||||
|
{ name: 'foreign-key', component: ForeignkeyTypeComponent }
|
||||||
|
]
|
||||||
|
}),
|
||||||
|
FormlyBootstrapModule,
|
||||||
|
ClipboardModule,
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
DraftsListComponent,
|
||||||
|
DraftsNewComponent,
|
||||||
|
DraftsCardComponent,
|
||||||
|
DraftsNewFormComponent
|
||||||
|
],
|
||||||
|
providers: [CrudService, ImageUploaderCrudService]
|
||||||
|
})
|
||||||
|
export class ContractDraftsModule {
|
||||||
|
}
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { DraftsCardComponent, DraftsListComponent, DraftsNewComponent } from "./drafts.component";
|
|
||||||
import { ContractsCardComponent, ContractsListComponent, ContractsNewComponent, ContractsSignatureComponent} from "./contracts.component";
|
import { ContractsCardComponent, ContractsListComponent, ContractsNewComponent, ContractsSignatureComponent} from "./contracts.component";
|
||||||
|
|
||||||
|
|
||||||
@@ -13,6 +12,7 @@ const routes: Routes = [
|
|||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{ path: '', redirectTo: 'list', pathMatch: 'full' },
|
{ path: '', redirectTo: 'list', pathMatch: 'full' },
|
||||||
|
{ path: 'drafts', redirectTo: '/contract-drafts/list' },
|
||||||
{
|
{
|
||||||
path: 'list',
|
path: 'list',
|
||||||
component: ContractsListComponent,
|
component: ContractsListComponent,
|
||||||
@@ -34,36 +34,6 @@ const routes: Routes = [
|
|||||||
title: 'New',
|
title: 'New',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: 'drafts',
|
|
||||||
data: {
|
|
||||||
title: 'Drafts',
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{ path: '', redirectTo: 'list', pathMatch: 'full' },
|
|
||||||
{
|
|
||||||
path: 'list',
|
|
||||||
component: DraftsListComponent,
|
|
||||||
data: {
|
|
||||||
title: 'List',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'new',
|
|
||||||
component: DraftsNewComponent,
|
|
||||||
data: {
|
|
||||||
title: 'New',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: ':id',
|
|
||||||
component: DraftsCardComponent,
|
|
||||||
data: {
|
|
||||||
title: 'Card',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: ':id',
|
path: ':id',
|
||||||
component: ContractsCardComponent,
|
component: ContractsCardComponent,
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { NgModule } from '@angular/core';
|
|||||||
|
|
||||||
import { BaseViewModule } from "../base-view/base-view.module";
|
import { BaseViewModule } from "../base-view/base-view.module";
|
||||||
import { ContractsRoutingModule } from './contracts-routing.module';
|
import { ContractsRoutingModule } from './contracts-routing.module';
|
||||||
import { DraftsCardComponent, DraftsListComponent, DraftsNewComponent, DraftsNewFormComponent } from "./drafts.component";
|
|
||||||
import { FormlyModule } from "@ngx-formly/core";
|
import { FormlyModule } from "@ngx-formly/core";
|
||||||
import { FormlyBootstrapModule } from "@ngx-formly/bootstrap";
|
import { FormlyBootstrapModule } from "@ngx-formly/bootstrap";
|
||||||
import { ForeignkeyTypeComponent } from "@common/crud/types/foreignkey.type";
|
import { ForeignkeyTypeComponent } from "@common/crud/types/foreignkey.type";
|
||||||
@@ -33,10 +32,6 @@ import { ClipboardModule } from "@angular/cdk/clipboard";
|
|||||||
ClipboardModule,
|
ClipboardModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
DraftsListComponent,
|
|
||||||
DraftsNewComponent,
|
|
||||||
DraftsCardComponent,
|
|
||||||
DraftsNewFormComponent,
|
|
||||||
ContractsListComponent,
|
ContractsListComponent,
|
||||||
ContractsNewComponent,
|
ContractsNewComponent,
|
||||||
ContractsCardComponent,
|
ContractsCardComponent,
|
||||||
|
|||||||
Reference in New Issue
Block a user