@@ -29,7 +29,7 @@ export class CreateTemplateComponent implements OnInit {
|
||||
|
||||
/** Template form. */
|
||||
templateForm: FormGroup;
|
||||
/** Edit Template Data. */
|
||||
/** Create Template Data. */
|
||||
createTemplateData: any;
|
||||
/** Template Mappers */
|
||||
mappers: any[] = [];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<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>
|
||||
Create Template
|
||||
</button>
|
||||
|
||||
@@ -3,9 +3,6 @@ import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { MatTableDataSource, MatPaginator, MatSort } from '@angular/material';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
|
||||
/** rxjs Imports */
|
||||
import { of } from 'rxjs';
|
||||
|
||||
/**
|
||||
* Templates component.
|
||||
*/
|
||||
|
||||
@@ -4,6 +4,7 @@ import { NgModule } from '@angular/core';
|
||||
/** Custom Modules */
|
||||
import { CKEditorModule } from '@ckeditor/ckeditor5-angular';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
import { DirectivesModule } from '../directives/directives.module';
|
||||
import { TemplatesRoutingModule } from './templates-routing.module';
|
||||
|
||||
/** Custom Components */
|
||||
@@ -21,6 +22,7 @@ import { CreateTemplateComponent } from './create-template/create-template.compo
|
||||
imports: [
|
||||
CKEditorModule,
|
||||
SharedModule,
|
||||
DirectivesModule,
|
||||
TemplatesRoutingModule
|
||||
],
|
||||
declarations: [
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<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>
|
||||
Edit
|
||||
</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>
|
||||
Delete
|
||||
</button>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Component } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { MatDialog } from '@angular/material';
|
||||
|
||||
@@ -17,7 +17,7 @@ import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.co
|
||||
templateUrl: './view-template.component.html',
|
||||
styleUrls: ['./view-template.component.scss']
|
||||
})
|
||||
export class ViewTemplateComponent implements OnInit {
|
||||
export class ViewTemplateComponent {
|
||||
|
||||
/** Template Data */
|
||||
templateData: any;
|
||||
@@ -38,9 +38,6 @@ export class ViewTemplateComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes the template and redirects to templates.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user