{# Shared partial for the Create Platform modal content. Used in two contexts: #} {# Device sync page (use_htmx not set): regular POST via method="post", redirects on success. #} {# Import page (use_htmx=True): hx-post, returns OOB swaps on success. #} {# Expected context variables: #} {# librenms_os - LibreNMS OS string, e.g. "ios" #} {# platform_name - Suggested platform name (typically same as librenms_os) #} {# manufacturers - Queryset/list of Manufacturer objects #} {# form_action - URL the form POSTs to #} {# device_pk - (optional) NetBox Device/VM pk to also assign the platform to #} {# selected_manufacturer_pk - (optional) Pre-selected manufacturer pk #} {# use_htmx - (optional) When True adds hx-post/hx-swap attributes #} {# htmx_include - (optional) CSS selector string for hx-include #} {# server_key - (optional) LibreNMS server key, forwarded as hidden field #}