uccser/cs-field-guide

View on GitHub
csfieldguide/templates/interactives/close-window.html

Summary

Maintainability
Test Coverage
{% extends interactive_mode_template %}

{% load i18n %}
{% load static %}

{% block interactive_html %}
  <div id="interactive-close-window" class="container-fluid text-center">
    <div class="row justify-content-center mb-3">
      <div class="col-12">
        <h3>{% trans "Do you wish to close this window?" %}</h3>
      </div>
      <div class="col-12">
        <button type="button" id="close-window-yes-button" class="btn btn-success btn-lg">{% trans "Yes" %}</button>
        <button type="button" id="close-window-no-button" class="btn btn-secondary btn-lg" disabled>{% trans "No" %}</button>
      </div>
    </div>
  </div>
{% endblock interactive_html %}

{% block interactive_js %}
  <script type="text/javascript" src="{% static 'interactives/close-window/js/close-window.js' %}"></script>
{% endblock interactive_js %}