diff options
author | anna wimbauer <anna.wibauer@gmx.de> | 2020-10-28 13:05:06 +0100 |
---|---|---|
committer | anna wimbauer <anna.wibauer@gmx.de> | 2020-10-28 13:05:06 +0100 |
commit | ba8bb8b53ad98a2491816c4b4d29a1ede6a4a457 (patch) | |
tree | 141af76b7d83c204df462b5215141bfd89f9619b | |
parent | af8a888a43da9f54ec388c97bbaa43d296130784 (diff) | |
download | reclaim-ui-ba8bb8b53ad98a2491816c4b4d29a1ede6a4a457.tar.gz reclaim-ui-ba8bb8b53ad98a2491816c4b4d29a1ede6a4a457.zip |
prettify button
-rw-r--r-- | src/app/edit-identity/edit-identity.component.html | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/src/app/edit-identity/edit-identity.component.html b/src/app/edit-identity/edit-identity.component.html index ad71ec5..348b7fc 100644 --- a/src/app/edit-identity/edit-identity.component.html +++ b/src/app/edit-identity/edit-identity.component.html | |||
@@ -174,10 +174,20 @@ | |||
174 | <div class="col-sm"><div style="min-width: 15em"> | 174 | <div class="col-sm"><div style="min-width: 15em"> |
175 | <i *ngIf="isClaimRequested(claim)" class="fa fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div> | 175 | <i *ngIf="isClaimRequested(claim)" class="fa fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div> |
176 | <div class="col-sm"> | 176 | <div class="col-sm"> |
177 | <select *ngIf="isExperimental()" class="custom-select" (change)="claim.flag=$event.target.value; "> | 177 | <div *ngIf="isExperimental()" name="newAttribute"> |
178 | <option value="0">{{ getMessage("edit_identity_html@plain") }}</option> | 178 | <div class="form-check form-check-inline"> |
179 | <option value="1">{{ getMessage("edit_identity_html@credential") }}</option> | 179 | <input class="form-check-input" type="radio" name="claim" [(ngModel)]="claim.flag" id="plainClaim" [value]="0" checked> |
180 | </select> | 180 | <label class="form-check-label" for="plainClaim"> |
181 | {{ getMessage("edit_identity_html@plain") }} | ||
182 | </label> | ||
183 | </div> | ||
184 | <div class="form-check form-check-inline"> | ||
185 | <input class="form-check-input" type="radio" name="claim" [(ngModel)]="claim.flag" id="credentialClaim" [value]="1"> | ||
186 | <label class="form-check-label" for="credentialClaim"> | ||
187 | {{ getMessage("edit_identity_html@credential") }} | ||
188 | </label> | ||
189 | </div> | ||
190 | </div> | ||
181 | 191 | ||
182 | <input *ngIf="claim.flag == '0'" placeholder="{{ getMessage('Value') }}" [(ngModel)]="claim.value"> | 192 | <input *ngIf="claim.flag == '0'" placeholder="{{ getMessage('Value') }}" [(ngModel)]="claim.value"> |
183 | <select *ngIf="claim.flag == '1'" class="custom-select" | 193 | <select *ngIf="claim.flag == '1'" class="custom-select" |
@@ -264,16 +274,27 @@ | |||
264 | </div> | 274 | </div> |
265 | </div> | 275 | </div> |
266 | <!-- New Attribute --> | 276 | <!-- New Attribute --> |
277 | |||
267 | <div class="row mb-3" [class.alert-danger]="isInConflict(newAttribute)"> | 278 | <div class="row mb-3" [class.alert-danger]="isInConflict(newAttribute)"> |
268 | <div class="col-sm"> | 279 | <div class="col-sm"> |
269 | <input [class.text-danger]="!attributeNameValid(newAttribute)" placeholder="{{ getMessage('edit_identity_html@attribute') }}" [(ngModel)]="newAttribute.name"> | 280 | <input [class.text-danger]="!attributeNameValid(newAttribute)" placeholder="{{ getMessage('edit_identity_html@attribute') }}" [(ngModel)]="newAttribute.name"> |
270 | </div> | 281 | </div> |
271 | <div class="col-sm"> | 282 | <div class="form-group col-sm" name="newAttribute"> |
272 | 283 | ||
273 | <select *ngIf="isExperimental()" class="custom-select" (change)="newAttribute.flag=$event.target.value; "> | 284 | <div *ngIf="isExperimental()" name="newAttribute"> |
274 | <option value="0">{{ getMessage("edit_identity_html@plain") }}</option> | 285 | <div class="form-check form-check-inline active"> |
275 | <option value="1">{{ getMessage("edit_identity_html@credential") }}</option> | 286 | <input class="form-check-input active" type="radio" name="newAttribute" [(ngModel)]="newAttribute.flag" id="plain" [value]="0" checked> |
276 | </select> | 287 | <label class="form-check-label active" for="plain" checked> |
288 | {{ getMessage("edit_identity_html@plain") }} | ||
289 | </label> | ||
290 | </div> | ||
291 | <div class="form-check form-check-inline"> | ||
292 | <input class="form-check-input" type="radio" name="credential" [(ngModel)]="newAttribute.flag" id="credential" [value]="1"> | ||
293 | <label class="form-check-label" for="credential"> | ||
294 | {{ getMessage("edit_identity_html@credential") }} | ||
295 | </label> | ||
296 | </div> | ||
297 | </div> | ||
277 | <input *ngIf="newAttribute.flag == '0'" placeholder="{{ getMessage('Value') }}" [class.text-danger]="!attributeValueValid(newAttribute)" [(ngModel)]="newAttribute.value"> | 298 | <input *ngIf="newAttribute.flag == '0'" placeholder="{{ getMessage('Value') }}" [class.text-danger]="!attributeValueValid(newAttribute)" [(ngModel)]="newAttribute.value"> |
278 | <select *ngIf="newAttribute.flag == '1'" class="custom-select" | 299 | <select *ngIf="newAttribute.flag == '1'" class="custom-select" |
279 | (change)="newAttribute.credential=$event.target.value; " > | 300 | (change)="newAttribute.credential=$event.target.value; " > |