Add RBAC support with roles, permissions, and session management. Implement middleware for authentication and CSRF protection. Enhance audit logging with additional fields. Update HTTP handlers and routes for new features.
This commit is contained in:
19
internal/templates/hx_iscsi_targets.html
Normal file
19
internal/templates/hx_iscsi_targets.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ define "hx_iscsi_targets" }}
|
||||
<table class="w-full">
|
||||
<thead><tr><th>Name</th><th>IQN</th><th>Action</th></tr></thead>
|
||||
<tbody>
|
||||
{{ if . }}
|
||||
{{ range . }}
|
||||
<tr>
|
||||
<td>{{ .name }}</td>
|
||||
<td>{{ .iqn }}</td>
|
||||
<td>
|
||||
<button hx-get="/api/iscsi/hx_luns/{{ .id }}">View LUNs</button>
|
||||
<button hx-get="/api/iscsi/target/{{ .id }}">Connection Info</button>
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user