<div class="modal fade" id="htmx-modal" tabindex="-1" aria-hidden="true">
  <div class="modal-dialog{% if size %} modal-{{ size }}{% endif %}">
    <div class="modal-content" id="htmx-modal-content">
    </div>
  </div>
</div>

<a href="#" hx-get="{% url 'plugins:netbox_diagram:diagram_update_cache' pk=object.pk %}" hx-target="#htmx-modal" data-bs-toggle="modal" data-bs-target="#htmx-modal" class="btn btn-blue">
  <i class="mdi mdi-rocket-launch"></i>Update cache
</a>