Skip to content

Commit

Permalink
Merge pull request #53 from chaitrali-r/main
Browse files Browse the repository at this point in the history
Dashboard UI Changes
  • Loading branch information
Pratikshakhandagale authored Dec 6, 2022
2 parents e31e805 + d7a9b41 commit e113578
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 17 deletions.
22 changes: 13 additions & 9 deletions src/app/admin/configurations/configurations.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h3 class="pl-3 h2">{{'SCHEMA' | translate}}</h3>
</div>
</div>

<div class="container white-background">
<div class="pl-3 white-background">
<div class="row gy-3 gx-3">
<div class="col-10">
<p class="card-title fw-bold"> {{'VERIFIABLE_CREDENTIAL' | translate}}</p>
Expand All @@ -67,16 +67,20 @@ <h3 class="pl-3 h2">{{'SCHEMA' | translate}}</h3>

<!-- -->
<div class="row mt-2">
<div class="col-sm-6" *ngFor="let item of schemaItems">
<div class="col-sm-5" *ngFor="let item of schemaItems">
<div
*ngIf="
item?.schema._osConfig?.certificateTemplates !== undefined ||
item?.schema._osConfig?.certificateTemplates !== {}
"
>
*ngIf="(item?.schema?._osConfig?.certificateTemplates | keyvalue)?.length" >
<div class="card p-3 mb-3">
<h5 class="card-title">{{ item?.name }}</h5>
<p class="card-text">{{ item?.name }} {{'CERTIFICATE' | translate}}</p>

<p class="p16 fw-bold">{{ item?.name }}</p>
<div class="d-flex align-items-center">

<img src="{{imgUrl}}" class="float-left mr-2 img16" alt="">
<span class="fs-14 fw-bold" *ngFor="let certName of item?.schema?._osConfig?.certificateTemplates | keyvalue">
{{certName.key}}
</span>

</div>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/app/admin/configurations/configurations.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ export class ConfigurationsComponent implements OnInit {
constructor(public translate: TranslateService) {
this.tenantConfigList = ['Schema','Workflow','VC Template','Ownership','Roles','Theme']
}

imgUrl="/assets/images/certificate.svg";
ngOnInit(): void {

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
<div class="card w-100" *ngIf = "isShow1">
<div class="ml-1 p-3 w-100">
<div class="img-hold">
<div class="thmbCol" *ngFor="let item of credTemp" >
<div class="thmbCol" *ngFor="let item of credTemp" >
<div class="wrap">
<iframe id="iframe1" class="iframe-container embed-responsive-item"></iframe>
</div>
<div class="l12 fw-bold">{{item?.title}}</div>
</div>


<a href="/add-template/{{usecase}}/{{entityName}}">
<div class="btn img-ht">
<div class="thmbCol">
<div class="pt-c">
Expand All @@ -42,7 +43,8 @@
</div>
</div>
</div>
</div>
</a>
</div>

</div>
<div class="pt-2 ms-3 mb-3"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,8 @@ export class CreateVcTemplateComponent implements OnInit {
this.credTemp.push({

"title":Object.keys(a),
"html": res,
}, (err)=>{
console.log(err);
"html": res

});

}, (err)=>{
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/global/en-global.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"ADD_DETAILS": "Add Details",
"EDIT_DETAILS": "Edit Details",
"PREVIEW_PUBLIC_PROFILE": "Preview Public Profile",
"EDIT": "edit",
"EDIT": "Edit",
"DRAFT": "Draft",
"NO_DATA_FOUND": "No Data Found",
"PROFILE": "profile",
Expand Down
17 changes: 17 additions & 0 deletions src/assets/images/certificate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e113578

Please sign in to comment.