{% load helpers %} {% comment %} Renders a "Add Cable" button that links to the unified cable_add form with the given termination pre-filled as the A side. Required context: `termination` (a CableTermination instance). Optional context: `return_url` (defaults to termination.get_absolute_url). Caller is responsible for guarding on `perms.dcim.add_cable`. {% endcomment %} {% firstof return_url termination.get_absolute_url as cable_return_url %} Add Cable