delete_domain.hbs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <div class="content">
  2. <h2>Delete domain?</h2>
  3. <p>
  4. Are you sure do you want to delete the domain &quot;<b>{{address}}</b>&quot;?<br/>
  5. </p>
  6. {{#if hasLink}}
  7. <div class="delete-domain-checklist">
  8. <label class="checkbox">
  9. <input id="delete-domain-links" name="links" type="checkbox" />
  10. Delete all links too
  11. </label>
  12. </div>
  13. {{/if }}
  14. <div class="buttons">
  15. <button type="button" hx-on:click="closeDialog()">Cancel</button>
  16. <button
  17. type="button"
  18. class="danger confirm"
  19. hx-delete="/api/domains/admin/{id}"
  20. hx-ext="path-params"
  21. hx-vals='{"id":"{{id}}"}'
  22. hx-target="closest .content"
  23. hx-swap="none"
  24. {{#if hasLink}}
  25. hx-include=".delete-domain-checklist"
  26. {{/if}}
  27. hx-indicator="closest .content"
  28. hx-select-oob="#dialog-error"
  29. >
  30. <span>{{> icons/trash}}</span>
  31. Delete
  32. </button>
  33. {{> icons/spinner}}
  34. </div>
  35. <div id="dialog-error">
  36. {{#if error}}
  37. <p class="error">{{error}}</p>
  38. {{/if}}
  39. </div>
  40. </div>