website/web/templates/partials/alert_modal.html
Noah Petherbridge 1c013aa8d8 Alert/Confirm Modals + Auto Revoke Certification Photo
* If a Certified member deletes the final picture from their gallery page, their
  Certification Photo will be automatically rejected and they are instructed to
  begin the process again from the beginning.
* Add nice Alert and Confirm modals around the website in place of the standard
  browser feature. Note: the inline confirm on submit buttons are still using
  the standard feature for now, as intercepting submit buttons named "intent"
  causes problems in getting the final form to submit.
2024-12-23 14:58:39 -08:00

31 lines
1.2 KiB
HTML

<!-- "Alert" & "Confirm" modals to replace native browser features. -->
{{define "alert-modal"}}
<div class="modal nonshy-important-modal" id="nonshy-alert-modal">
<div class="modal-background"></div>
<div class="modal-content">
<div class="card">
<div class="card-header has-background-warning">
<p class="card-header-title has-text-dark-dark">
<span id="nonshy-alert-modal-title">Alert</span>
</p>
</div>
<div class="card-content content">
<div id="nonshy-alert-modal-body">Alert</div>
</div>
<div class="card-footer has-text-centered">
<div class="card-footer-item">
<button type="button" class="button is-success nonshy-alert-ok-button">
Ok
</button>
<button type="button" class="button ml-4 nonshy-alert-cancel-button">
Cancel
</button>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="/static/js/alert-modal.js?build={{.BuildHash}}"></script>
{{end}}