[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[reclaim-ui] 262/459: some cleanup
From: |
gnunet |
Subject: |
[reclaim-ui] 262/459: some cleanup |
Date: |
Fri, 11 Jun 2021 23:25:54 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository reclaim-ui.
commit 9e409195ec49a79c109eae9e420b4e632939119c
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Thu Aug 6 00:38:44 2020 +0200
some cleanup
---
src/app/edit-identity/edit-identity.component.html | 34 ++++++++++------------
src/styles.scss | 4 +++
2 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/src/app/edit-identity/edit-identity.component.html
b/src/app/edit-identity/edit-identity.component.html
index e592a61..eb0dada 100644
--- a/src/app/edit-identity/edit-identity.component.html
+++ b/src/app/edit-identity/edit-identity.component.html
@@ -2,13 +2,18 @@
<div class="m-2 card">
<div class="card-avatar card-img-top">
<div class="card-avatar-character text-dark">
- <h2>Manage identity: <i>{{ identity.name }}</i></h2>
+ <h2 class="fa-2x"><i class="fa fa-user-circle pr-2"></i> {{
identity.name }}</h2>
</div>
</div>
<!-- Attribute table -->
<div class="card-body">
<div>
- <h3 class="card-subtitle mb-2" (click)="showGeneralInfo =
!showGeneralInfo"><span *ngIf="showGeneralInfo" class="fa
fa-chevron-down"></span><span class="fa fa-chevron-right"
*ngIf="!showGeneralInfo"></span> General user information</h3>
+ <h3 class="card-subtitle mb-2">Basic user information <span
(click)="showGeneralInfo = !showGeneralInfo" class="fa
fa-question-circle"></span></h3>
+ <div class="alert alert-secondary fade show" *ngIf="showGeneralInfo">
+ The attributes below correspond to the standard scopes of the OpenID
Connect
+ specification: profile, email, phone and address.
+ </div>
+
<table class="table pb-1" *ngIf="showGeneralInfo">
<tbody>
<!-- Standard "profile" claims first -->
@@ -47,8 +52,6 @@
</tr>
</tbody>
</table>
- <h3 class="card-subtitle mb-2" (click)="showEmailInfo =
!showEmailInfo"><span class="fa" [class.fa-eye-slash]="!showEmailInfo"
[class.fa-eye]="showEmailInfo"></span> Email</h3>
-
<table class="table pb-1">
<tbody>
<!-- Standard "email" claims first -->
@@ -89,7 +92,6 @@
</table>
- <h6 class="card-subtitle mb-2">Address:</h6>
<table class="table pb-1">
<tbody>
<!-- Standard "address" claims first -->
@@ -129,7 +131,6 @@
</tbody>
</table>
- <h6 class="card-subtitle mb-2">Phone:</h6>
<table class="table pb-1">
<tbody>
<!-- Standard "phone" claims first -->
@@ -138,8 +139,6 @@
[class.alert-danger]="newAttribute.name === claim.name"
*ngFor="let claim of existingPhoneClaims">
<td><div style="min-width: 15em"><b>{{ getDescription(claim)
}}</b></div></td>
- <td>
- </td>
<td>
<input *ngIf="!isClaimAttested(claim)" placeholder="Value"
[(ngModel)]="claim.value">
<span *ngIf="isClaimAttested(claim)" >{{ getAttestedValue(claim)
}} issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
@@ -160,12 +159,11 @@
*ngFor="let claim of missingPhoneClaims">
<td><div style="min-width: 15em"><b>{{ getDescription(claim)
}}</b></div></td>
<td>
- <select class="custom-select"
(change)="claim.flag=$event.target.value; ">
+ <select *ngIf="isExperimental()" class="custom-select"
(change)="claim.flag=$event.target.value; ">
<option value="0">Plain</option>
<option value="1">Attested</option>
</select>
- </td>
- <td>
+
<input *ngIf="claim.flag == '0'" placeholder="Value"
[(ngModel)]="claim.value">
<select *ngIf="claim.flag == '1'" class="custom-select"
(change)="claim.attestation=$event.target.value; ">
@@ -183,7 +181,8 @@
</option>
</select>
- </td>
+ </td>
+
<td>
</td>
</tr>
@@ -191,7 +190,8 @@
</table>
- <h6 class="card-subtitle mb-2">Additional information:</h6>
+ <h3 class="card-subtitle mb-2">Additional information <span
(click)="showExtraInfo = !showExtraInfo" class="fa
fa-question-circle"></span></h3>
+ <div class="alert alert-secondary fade show" *ngIf="showExtraInfo">These
are non-standard claims.</div>
<!-- Missing "non-standard" claims that are requested -->
<table class="table pb-1"
*ngIf="isAnyRequestedNonStandardClaimMissing()">
@@ -250,14 +250,11 @@
<input [class.text-danger]="!attributeNameValid(newAttribute)"
placeholder="Attribute" [(ngModel)]="newAttribute.name">
</td>
<td>
- <select class="custom-select"
(change)="newAttribute.flag=$event.target.value; ">
+
+ <select *ngIf="isExperimental()" class="custom-select"
(change)="newAttribute.flag=$event.target.value; ">
<option value="0">Plain</option>
<option value="1">Attested</option>
</select>
- </td>
- <td>
-
-
<input *ngIf="newAttribute.flag == '0'" placeholder="Value"
[class.text-danger]="!attributeValueValid(newAttribute)"
[(ngModel)]="newAttribute.value">
<select *ngIf="newAttribute.flag == '1'" class="custom-select"
(change)="newAttribute.attestation=$event.target.value; ">
@@ -274,7 +271,6 @@
{{claim.value}} <i>({{claim.name}})</i>
</option>
</select>
-
</td>
<td>
<button [disabled]="!canAddAttribute(newAttribute)" class="btn
btn-primary" (click)="addAttribute()">
diff --git a/src/styles.scss b/src/styles.scss
index 7fc0e61..2019ad2 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -27,6 +27,10 @@ div.card {
width: auto;
}
+table tr button.btn {
+ margin: 0;
+}
+
button.btn, a.btn {
box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.5);
border-radius: 10rem;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [reclaim-ui] 243/459: fix, (continued)
- [reclaim-ui] 243/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 257/459: minor wording change, gnunet, 2021/06/11
- [reclaim-ui] 248/459: minor info change, gnunet, 2021/06/11
- [reclaim-ui] 275/459: more info boxes, gnunet, 2021/06/11
- [reclaim-ui] 250/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 273/459: better requested claim handling, gnunet, 2021/06/11
- [reclaim-ui] 268/459: style, gnunet, 2021/06/11
- [reclaim-ui] 233/459: make discovery experimental, gnunet, 2021/06/11
- [reclaim-ui] 246/459: scopes in configuration, gnunet, 2021/06/11
- [reclaim-ui] 254/459: fix array splicing, gnunet, 2021/06/11
- [reclaim-ui] 262/459: some cleanup,
gnunet <=
- [reclaim-ui] 252/459: minor fix, gnunet, 2021/06/11
- [reclaim-ui] 260/459: fix flag settings, gnunet, 2021/06/11
- [reclaim-ui] 263/459: add spinner when saving, gnunet, 2021/06/11
- [reclaim-ui] 291/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 282/459: style change, gnunet, 2021/06/11
- [reclaim-ui] 265/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 287/459: add danger, gnunet, 2021/06/11
- [reclaim-ui] 241/459: formatting, gnunet, 2021/06/11
- [reclaim-ui] 264/459: fix phone number claim name; pass claims parameter, gnunet, 2021/06/11
- [reclaim-ui] 258/459: -minor, gnunet, 2021/06/11