{% load buttons %} {% load static %} {% if object %} {% with can_calibrate=perms.nautobot_floor_plan.change_floorplan can_place=perms.nautobot_floor_plan.add_floorplantile can_move=perms.nautobot_floor_plan.change_floorplantile %} {% with can_edit=can_calibrate|default:can_place %}
Edit Floorplan Add Tile

{{ object }}

Use shift+scroll wheel to zoom in or out. Click and drag to scroll.
Add a tile by clicking the plus symbol on the grid OR by using the "Add Tile" button.
Click on a Row's Label to see the Elevation for all Racks in the row.
{% if can_edit %} {% comment %} Wave D interactive editing controls. Buttons ship disabled and panels hidden; the drag layer (floorplan_editing.js) enables them once the SVG is mounted, so a page without JS is unchanged. {% endcomment %}
{% if can_place %} {% endif %} {% if can_calibrate and object.background_image %} {% endif %}
{% if can_calibrate and object.background_image %} {% endif %}
{% if can_place %} {% endif %} {% endif %}
Save SVG
{% comment %} Screen-reader channels: a polite live region for edit announcements and an HTML mirror of the in-SVG legend (the in-SVG legend is aria-hidden; SVG is not reliably navigable). {% endcomment %}
{% comment %} Add Tippy.js resources - using local files for air-gapped environments Add Gsap.js resources - using local files for air-gapped environments {% endcomment %} {% comment %} Scale the SVG by default to match the page width, preserving its aspect-ratio. See https://css-tricks.com/scale-svg/ for more details. {% endcomment %}
{% endwith %} {% endwith %} {% else %} {% comment %} The UI should normally not even show the option to reach this view, but someone could enter it manually. {% endcomment %} No floor plan defined. Use the "Add Floor Plan" button above to create one if desired. {% endif %}