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:
23
internal/templates/iscsi.html
Normal file
23
internal/templates/iscsi.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{{ define "iscsi" }}
|
||||
<div class="p-4">
|
||||
<h2 class="text-xl">iSCSI Targets</h2>
|
||||
<div hx-get="/api/iscsi/hx_targets" hx-swap="outerHTML"></div>
|
||||
<div class="mt-4">
|
||||
<h3>Create Target</h3>
|
||||
<form hx-post="/api/iscsi/create_target">
|
||||
<label>Name: <input type="text" name="name"/></label>
|
||||
<label>IQN: <input type="text" name="iqn"/></label>
|
||||
<button type="submit">Create Target</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="mt-4">
|
||||
<h3>Create LUN</h3>
|
||||
<form hx-post="/api/iscsi/create_lun">
|
||||
<label>Target ID: <input type="text" name="target_id"/></label>
|
||||
<label>ZVol path: <input type="text" name="zvol"/></label>
|
||||
<label>Size (e.g. 10G): <input type="text" name="size"/></label>
|
||||
<button type="submit">Create LUN</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user