@@ -29,7 +29,7 @@ export class CreateTemplateComponent implements OnInit {
|
|||||||
|
|
||||||
/** Template form. */
|
/** Template form. */
|
||||||
templateForm: FormGroup;
|
templateForm: FormGroup;
|
||||||
/** Edit Template Data. */
|
/** Create Template Data. */
|
||||||
createTemplateData: any;
|
createTemplateData: any;
|
||||||
/** Template Mappers */
|
/** Template Mappers */
|
||||||
mappers: any[] = [];
|
mappers: any[] = [];
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div class="container m-b-20" fxLayout="row" fxLayoutAlign="end" fxLayoutGap="20px">
|
<div class="container m-b-20" fxLayout="row" fxLayoutAlign="end" fxLayoutGap="20px">
|
||||||
<button mat-raised-button color="primary" [routerLink]="['create']">
|
<button mat-raised-button color="primary" [routerLink]="['create']" *mifosxHasPermission="'CREATE_TEMPLATE'">
|
||||||
<fa-icon icon="plus"></fa-icon>
|
<fa-icon icon="plus"></fa-icon>
|
||||||
Create Template
|
Create Template
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -3,9 +3,6 @@ import { Component, OnInit, ViewChild } from '@angular/core';
|
|||||||
import { MatTableDataSource, MatPaginator, MatSort } from '@angular/material';
|
import { MatTableDataSource, MatPaginator, MatSort } from '@angular/material';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** rxjs Imports */
|
|
||||||
import { of } from 'rxjs';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Templates component.
|
* Templates component.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { NgModule } from '@angular/core';
|
|||||||
/** Custom Modules */
|
/** Custom Modules */
|
||||||
import { CKEditorModule } from '@ckeditor/ckeditor5-angular';
|
import { CKEditorModule } from '@ckeditor/ckeditor5-angular';
|
||||||
import { SharedModule } from '../shared/shared.module';
|
import { SharedModule } from '../shared/shared.module';
|
||||||
|
import { DirectivesModule } from '../directives/directives.module';
|
||||||
import { TemplatesRoutingModule } from './templates-routing.module';
|
import { TemplatesRoutingModule } from './templates-routing.module';
|
||||||
|
|
||||||
/** Custom Components */
|
/** Custom Components */
|
||||||
@@ -21,6 +22,7 @@ import { CreateTemplateComponent } from './create-template/create-template.compo
|
|||||||
imports: [
|
imports: [
|
||||||
CKEditorModule,
|
CKEditorModule,
|
||||||
SharedModule,
|
SharedModule,
|
||||||
|
DirectivesModule,
|
||||||
TemplatesRoutingModule
|
TemplatesRoutingModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<div class="container m-b-20" fxLayout="row" fxLayoutAlign="end" fxLayoutGap="20px">
|
<div class="container m-b-20" fxLayout="row" fxLayoutAlign="end" fxLayoutGap="20px">
|
||||||
|
|
||||||
<button mat-raised-button color="primary" [routerLink]="['edit']">
|
<button mat-raised-button color="primary" [routerLink]="['edit']" *mifosxHasPermission="'UPDATE_TEMPLATE'">
|
||||||
<fa-icon icon="edit"></fa-icon>
|
<fa-icon icon="edit"></fa-icon>
|
||||||
Edit
|
Edit
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button mat-raised-button color="warn" (click)="delete()">
|
<button mat-raised-button color="warn" (click)="delete()" *mifosxHasPermission="'DELETE_TEMPLATE'">
|
||||||
<fa-icon icon="trash"></fa-icon>
|
<fa-icon icon="trash"></fa-icon>
|
||||||
Delete
|
Delete
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { MatDialog } from '@angular/material';
|
import { MatDialog } from '@angular/material';
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.co
|
|||||||
templateUrl: './view-template.component.html',
|
templateUrl: './view-template.component.html',
|
||||||
styleUrls: ['./view-template.component.scss']
|
styleUrls: ['./view-template.component.scss']
|
||||||
})
|
})
|
||||||
export class ViewTemplateComponent implements OnInit {
|
export class ViewTemplateComponent {
|
||||||
|
|
||||||
/** Template Data */
|
/** Template Data */
|
||||||
templateData: any;
|
templateData: any;
|
||||||
@@ -38,9 +38,6 @@ export class ViewTemplateComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes the template and redirects to templates.
|
* Deletes the template and redirects to templates.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user