Skip to content

Add Licenses card to Device and VM detail pages#147

Merged
DanSheps merged 1 commit into
DanSheps:mainfrom
jsenecal:feature/86-license-card
Mar 29, 2026
Merged

Add Licenses card to Device and VM detail pages#147
DanSheps merged 1 commit into
DanSheps:mainfrom
jsenecal:feature/86-license-card

Conversation

@jsenecal

Copy link
Copy Markdown
Collaborator

Summary

  • Add Licenses card to Device and Virtual Machine detail pages
  • Card only renders when the device/VM has license assignments
  • "Assign License" button in card header pre-fills the device/VM
  • "Show all Licenses" link appears when more than 10 assignments exist
  • New license_card_position setting (defaults to right_page)

Closes #86

Tests

  • HTMX views require authentication
  • Card hidden when no license assignments exist
  • Assignments display License, Manufacturer, Vendor, Quantity
  • "Assign License" button links with device/VM prefilled
  • "Show all" link appears only when >10 assignments
  • Both Device and VM views covered

Display assigned licenses on device and virtual machine detail pages
using the same HTMX pattern as support contracts. Card is hidden when
no license assignments exist. Includes an "Assign License" button and
a "Show all" link when more than 10 assignments are present.
@jsenecal

jsenecal commented Mar 28, 2026

Copy link
Copy Markdown
Collaborator Author

The license card includes an "Assign License" button in the card header. The existing contract card doesn't have an equivalent "Assign Contract" button - we could add one for parity in a follow-up.

@DanSheps DanSheps enabled auto-merge March 29, 2026 00:23
@DanSheps DanSheps merged commit fd4baf0 into DanSheps:main Mar 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Licenses card to Device view

2 participants