-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:suvarnakale/Admin-Portal into main
- Loading branch information
Showing
8 changed files
with
253 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
<app-header></app-header> | ||
|
||
<div class="m-0 mt-5 row h-100"> | ||
<nav id="sidebar" class="col-2 border3 card"> | ||
<ul id="sideMenu" class="list-unstyled components"> | ||
<!-- <li class="menu" routerLinkActive="active-link" [routerLinkActiveOptions]="{exact:true}"> | ||
<a class="a-menu"routerLink="/started/get-started" (click)="openMenu('get-started')">{{'GET_STARTED' | translate}}</a> | ||
</li> --> | ||
<li class="menu" routerLinkActive="active-link"> | ||
<a class="a-menu fs-14 p-3 d-block" routerLink="/#" | ||
><b>{{ "DASHBOARD" | translate }}</b></a | ||
> | ||
</li> | ||
<li class="menu" routerLinkActive="active-link" *ngIf="isSchemaCreated"> | ||
<a class="a-menu fs-14 p-3 d-block" routerLink="/schema" | ||
><b>{{ "SCHEMA" | translate }}</b></a | ||
> | ||
</li> | ||
<li class="menu" routerLinkActive="active-link"> | ||
<a class="a-menu fs-14 p-3 d-block" routerLink="/a" | ||
><b>{{ "ATTESTATION_WORKFLOW" | translate }}</b></a | ||
> | ||
</li> | ||
<li class="menu" routerLinkActive="active-link"> | ||
<a class="a-menu fs-14 p-3 d-block" routerLink="/a" | ||
><b>{{ "VERIFIABLE_CREDENTIALS" | translate }}</b></a | ||
> | ||
</li> | ||
|
||
<li class="menu" routerLinkActive="active-link"> | ||
<a class="a-menu fs-14 p-3 d-block" routerLink="/a" | ||
><b>{{ "OWNERSHIP" | translate }}</b></a | ||
> | ||
</li> | ||
<li | ||
class="menu" | ||
routerLinkActive="active-link" | ||
class="active-link" | ||
[routerLinkActiveOptions]="{ exact: true }" | ||
> | ||
<a class="a-menu fs-14 p-3 d-block" routerLink="/roles" | ||
><b>{{ "ROLES" | translate }}</b></a | ||
> | ||
</li> | ||
<li class="menu" routerLinkActive="active-link"> | ||
<a class="a-menu fs-14 p-3 d-block" routerLink="/a" | ||
><b>{{ "THEME" | translate }}</b></a | ||
> | ||
</li> | ||
|
||
<li class="menu" routerLinkActive="active-link"> | ||
<a class="a-menu fs-14 p-3 d-block" routerLink="/#" | ||
><b>{{ "HELP" | translate }}</b></a | ||
> | ||
</li> | ||
<li class="menu" routerLinkActive="active-link"> | ||
<a class="a-menu fs-14 p-3 d-block" routerLink="/#" | ||
><b>{{ "ACCOUNT" | translate }}</b></a | ||
> | ||
</li> | ||
</ul> | ||
</nav> | ||
|
||
<div class="col bg-grey-4 w-100"> | ||
<div class="col pr-4 mb-6 w-100"> | ||
<div | ||
class="w-100 d-flex justify-content-between card-body py-2 mt-3 align-items-center" | ||
> | ||
<div class="heading-2"> | ||
<h3>Roles</h3> | ||
</div> | ||
<button | ||
class="btn flex-end bg-color-primary bg-color-primary-sm px-3 my-2 ml-auto mr-2 text-white fs-16" | ||
> | ||
<i class="fa fa-plus mx-2" aria-hidden="true"></i>Add Role | ||
</button> | ||
</div> | ||
|
||
<div class="card w-75 p-2"> | ||
<table class="table table-borderless"> | ||
<thead> | ||
<tr> | ||
<th scope="col" class="fw-bold"> | ||
<span class="p-1 ml-2"> {{ "ROLE" | translate }}</span> | ||
</th> | ||
<th scope="col" class="fw-bold"> | ||
<span class="p-1 ml-2">Last Updated</span> | ||
</th> | ||
<th scope="col" class="fw-bold"> | ||
<span class="p-1 ml-2"></span> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr class="border-bottom"> | ||
<td class="p-3"> | ||
<span class="p-1 ml-2">Admin</span> | ||
</td> | ||
<td class="p-3"> | ||
<span class="p-1 ml-2">14 Oct 2022</span> | ||
</td> | ||
<td class="p-3"> | ||
<button | ||
class="btn bg-color-secondary color-sec fw-bold float-end submit-button px-3 my-2 ml-2 mr-2 mt-n2" | ||
> | ||
<i class="fa fa-edit mx-2" aria-hidden="true"></i>Edit | ||
</button> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="p-3"> | ||
<span class="p-1 ml-2">School Admin</span> | ||
</td> | ||
<td class="p-3"> | ||
<span class="p-1 ml-2">14 Oct 2022</span> | ||
</td> | ||
<td class="p-3"> | ||
<button | ||
class="btn bg-color-secondary color-sec fw-bold float-end submit-button px-3 my-2 ml-2 mr-2 mt-n2" | ||
> | ||
<i class="fa fa-edit mx-2" aria-hidden="true"></i>Edit | ||
</button> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
a, | ||
a:hover, | ||
a:focus { | ||
color: inherit; | ||
text-decoration: none; | ||
transition: all 0.3s; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import { Component, OnInit } from "@angular/core" | ||
import { ActivatedRoute } from "@angular/router" | ||
import { TranslateService } from "@ngx-translate/core" | ||
import { GeneralService } from "src/app/services/general/general.service" | ||
|
||
@Component({ | ||
selector: "roles-template", | ||
templateUrl: "./roles.component.html", | ||
styleUrls: ["./roles.component.scss"] | ||
}) | ||
export class RolesComponent implements OnInit { | ||
params: any | ||
isSettingMenu: boolean = false | ||
|
||
status: boolean = false | ||
activeMenu: string = "" | ||
sideMenu: any | ||
menus: any | ||
an_menus: any | ||
currentMenu: number = 0 | ||
items = [] | ||
isLoading: boolean = true | ||
isSchemaCreated: boolean = false | ||
constructor( | ||
private activeRoute: ActivatedRoute, | ||
private generalService: GeneralService, | ||
public translate: TranslateService | ||
) {} | ||
|
||
ngOnInit(): void { | ||
this.activeRoute.params.subscribe((params) => { | ||
this.params = params | ||
|
||
if (params.hasOwnProperty("page") && params.page) | ||
// this.activeMenu = params.page; | ||
console.log({ params }) | ||
}) | ||
|
||
this.generalService.getData("/Schema").subscribe( | ||
(res) => { | ||
this.readSchema(res) | ||
}, | ||
(err) => { | ||
this.items = [] | ||
this.isLoading = false | ||
} | ||
) | ||
} | ||
|
||
readSchema(res) { | ||
for (let i = 0; i < res.length; i++) { | ||
if (typeof res[i].schema == "string") { | ||
res[i].schema = JSON.parse(res[i].schema) | ||
this.isSchemaCreated = true | ||
|
||
if ( | ||
!res[i].schema.hasOwnProperty("isRefSchema") && | ||
!res[i].schema.isRefSchema | ||
) { | ||
this.items.push(res[i]) | ||
} | ||
|
||
this.isLoading = false | ||
} | ||
} | ||
} | ||
|
||
clickEvent() { | ||
this.status = !this.status | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters