Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nmaas Portal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nmaas
nmaas Portal
Commits
25e6e051
Commit
25e6e051
authored
2 years ago
by
kbeyro
Browse files
Options
Downloads
Patches
Plain Diff
update domain views
parent
12ffbe30
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/appmarket/domains/domain/domain.component.html
+41
-39
41 additions, 39 deletions
src/app/appmarket/domains/domain/domain.component.html
src/app/appmarket/domains/list/domainslist.component.html
+1
-1
1 addition, 1 deletion
src/app/appmarket/domains/list/domainslist.component.html
with
42 additions
and
40 deletions
src/app/appmarket/domains/domain/domain.component.html
+
41
−
39
View file @
25e6e051
...
...
@@ -101,6 +101,47 @@
</div>
</div>
<div
class=
"panel panel-default"
*ngIf=
"isInMode(ComponentMode.VIEW) && !authService.hasRole('ROLE_OPERATOR')"
>
<div
class=
"panel-heading"
>
{{ 'DOMAIN_DETAILS.DOMAIN_USERS' | translate }}
</div>
<div
class=
"panel-body"
>
<table
class=
"table table-hover table-condensed"
aria-describedby=
"Domains details table"
>
<thead>
<tr>
<th
scope=
"col"
*roles=
"['ROLE_SYSTEM_ADMIN']"
>
{{ 'DOMAIN_DETAILS.ID' | translate }}
</th>
<th
scope=
"col"
>
{{ 'DOMAIN_DETAILS.USER_NAME' | translate }}
</th>
<th
scope=
"col"
>
{{ 'DOMAIN_DETAILS.FIRST_NAME' | translate }}
</th>
<th
scope=
"col"
>
{{ 'DOMAIN_DETAILS.LAST_NAME' | translate }}
</th>
<th
scope=
"col"
>
{{ 'DOMAIN_DETAILS.ROLES' | translate }}
</th>
<th
scope=
"col"
>
</th>
</tr>
</thead>
<tbody>
<ng-template
ngFor
let-user
[ngForOf]=
"domainUsers"
>
<tr>
<td
*ngIf=
"authService.hasRole('ROLE_SYSTEM_ADMIN')"
>
{{user.id}}
</td>
<td>
{{user.username}}
</td>
<td>
{{user.firstname}}
</td>
<td>
{{user.lastname}}
</td>
<td
*ngIf=
"domainId == domainService.getGlobalDomainId()"
>
<div
*ngFor=
"let role of filterDomainNames(user); last as isLast"
>
<span
*ngIf=
"!isLast"
style=
"float:left;padding-right: 3px"
>
{{role.role | slice:5}}@{{this.getDomainName(role.domainId)|async}},
</span>
<span
*ngIf=
"isLast"
style=
"float:left"
>
{{role.role | slice:5}}@{{this.getDomainName(role.domainId)|async}}
</span>
</div>
</td>
<td
*ngIf=
"domainId != domainService.getGlobalDomainId()"
>
<span
*ngFor=
"let role of this.getDomainRoleNames(user.roles)"
>
{{"ENUM.USER_ROLES." + role.role.toUpperCase() | translate}}
</span>
</td>
</tr>
</ng-template>
</tbody>
</table>
</div>
</div>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
{{ 'DOMAIN_DETAILS.APP_STATUS' | translate }}
</div>
<div
class=
"panel-body"
>
...
...
@@ -185,46 +226,7 @@
<div
class=
"panel panel-default"
*ngIf=
"isInMode(ComponentMode.VIEW) && !authService.hasRole('ROLE_OPERATOR')"
>
<div
class=
"panel-heading"
>
{{ 'DOMAIN_DETAILS.DOMAIN_USERS' | translate }}
</div>
<div
class=
"panel-body"
>
<table
class=
"table table-hover table-condensed"
aria-describedby=
"Domains details table"
>
<thead>
<tr>
<th
scope=
"col"
*roles=
"['ROLE_SYSTEM_ADMIN']"
>
{{ 'DOMAIN_DETAILS.ID' | translate }}
</th>
<th
scope=
"col"
>
{{ 'DOMAIN_DETAILS.USER_NAME' | translate }}
</th>
<th
scope=
"col"
>
{{ 'DOMAIN_DETAILS.FIRST_NAME' | translate }}
</th>
<th
scope=
"col"
>
{{ 'DOMAIN_DETAILS.LAST_NAME' | translate }}
</th>
<th
scope=
"col"
>
{{ 'DOMAIN_DETAILS.ROLES' | translate }}
</th>
<th
scope=
"col"
>
</th>
</tr>
</thead>
<tbody>
<ng-template
ngFor
let-user
[ngForOf]=
"domainUsers"
>
<tr>
<td
*ngIf=
"authService.hasRole('ROLE_SYSTEM_ADMIN')"
>
{{user.id}}
</td>
<td>
{{user.username}}
</td>
<td>
{{user.firstname}}
</td>
<td>
{{user.lastname}}
</td>
<td
*ngIf=
"domainId == domainService.getGlobalDomainId()"
>
<div
*ngFor=
"let role of filterDomainNames(user); last as isLast"
>
<span
*ngIf=
"!isLast"
style=
"float:left;padding-right: 3px"
>
{{role.role | slice:5}}@{{this.getDomainName(role.domainId)|async}},
</span>
<span
*ngIf=
"isLast"
style=
"float:left"
>
{{role.role | slice:5}}@{{this.getDomainName(role.domainId)|async}}
</span>
</div>
</td>
<td
*ngIf=
"domainId != domainService.getGlobalDomainId()"
>
<span
*ngFor=
"let role of this.getDomainRoleNames(user.roles)"
>
{{"ENUM.USER_ROLES." + role.role.toUpperCase() | translate}}
</span>
</td>
</tr>
</ng-template>
</tbody>
</table>
</div>
</div>
<button
*ngIf=
"!isInMode(ComponentMode.VIEW)"
type=
"submit"
class=
"btn btn-default"
[disabled]=
"!domainForm.form.valid"
>
{{ 'DOMAIN_DETAILS.SUBMIT_BUTTON' | translate }}
</button>
...
...
This diff is collapsed.
Click to expand it.
src/app/appmarket/domains/list/domainslist.component.html
+
1
−
1
View file @
25e6e051
...
...
@@ -5,7 +5,7 @@
<a
*roles=
"['ROLE_SYSTEM_ADMIN']"
[routerLink]=
"['add']"
class=
"btn btn-primary"
role=
"button"
>
{{'DOMAINS.ADD_BUTTON' | translate}}
</a>
</div>
<div
class=
"flex"
style=
"align-content: center; margin-top: 8px;"
>
<div
*roles=
"['ROLE_SYSTEM_ADMIN']"
class=
"flex"
style=
"align-content: center; margin-top: 8px;"
>
<span
style=
"align-content: center; margin-right: 5px;"
>
{{'DOMAINS.NOTACTIVE' | translate}}
</span>
<p-checkbox
id=
"showNotActive"
[binary]=
"true"
[(ngModel)]=
" showNotActive"
></p-checkbox>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment