add user role components

This commit is contained in:
Roland Schneider
2025-11-20 15:51:21 +01:00
parent cc483e6ed5
commit 86f62b0c4d
22 changed files with 870 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
<!-- dvbooking-cli/src/templates/angular/details.component.html.tpl -->
<!-- Generated by the CLI -->
<div class="p-4 md:p-8">
<ng-container *ngIf="userRole$ | async as userRole; else loading">
<div class="card bg-base-100 shadow-xl max-w-2xl mx-auto">
<div class="card-body">
<h2 class="card-title text-3xl">UserRole Details</h2>
<div class="overflow-x-auto mt-4">
<table class="table w-full">
<tbody>
<tr>
<th>id</th>
<td>{{ userRole.id }}</td>
</tr>
<tr>
<th>name</th>
<td>{{ userRole.name }}</td>
</tr>
</tbody>
</table>
</div>
<div class="card-actions justify-end mt-6">
<a routerLink="/user-role" class="btn btn-secondary">Back to List</a>
<a routerLink="/user-role/{{ userRole.id }}/edit" class="btn btn-primary">Edit</a>
</div>
</div>
</div>
</ng-container>
<ng-template #loading>
<div class="text-center p-8">
<span class="loading loading-spinner loading-lg"></span>
</div>
</ng-template>
</div>