Skip to content

feat: add configurable lifecycle_card_position setting#128

Merged
DanSheps merged 2 commits into
DanSheps:mainfrom
jsenecal:feature/configurable-card-positions
Dec 12, 2025
Merged

feat: add configurable lifecycle_card_position setting#128
DanSheps merged 2 commits into
DanSheps:mainfrom
jsenecal:feature/configurable-card-positions

Conversation

@jsenecal
Copy link
Copy Markdown
Collaborator

Summary

Add lifecycle_card_position setting to control the position of Hardware Lifecycle Info cards on Device, Module, DeviceType, and ModuleType detail pages.

Note: This PR is built on top of #127 and should be merged after it.

Changes

  • Add lifecycle_card_position setting (defaults to right_page)
  • Refactor template_content.py with BaseLifecycleContent base class to reduce code duplication
  • All 4 lifecycle info cards now respect the position setting
  • Update README with new configuration option

Configuration

PLUGINS_CONFIG = {
    'netbox_lifecycle': {
        'lifecycle_card_position': 'right_page',  # Options: left_page, right_page, full_width_page
        'contract_card_position': 'right_page',
    },
}

Tests

All 388 existing tests pass.

- Add lifecycle_card_position setting (defaults to right_page)
- Refactor template_content.py with BaseLifecycleContent base class
- All lifecycle info cards now respect the position setting
- Update README with new configuration option
@DanSheps DanSheps merged commit de206a2 into DanSheps:main Dec 12, 2025
4 checks passed
@jsenecal jsenecal deleted the feature/configurable-card-positions branch December 15, 2025 19:52
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.

2 participants