{% extends "collections/paginated_base.html" %}
{% load static %}

{% block page_title %}Scenarios{% endblock %}

{% block action_modals %}
  {# Load required scripts before modal #}
  <script src="{% static 'js/alpine/components/widgets.js' %}"></script>
  <script src="{% static 'js/api/additional-information.js' %}"></script>
  {% include "modals/collections/new_scenario_modal.html" %}
{% endblock action_modals %}

{% block action_button %}
  {% if meta.can_edit or not meta.url_contains_package %}
    <button
      type="button"
      class="btn btn-primary btn-sm"
      onclick="document.getElementById('new_scenario_modal').showModal(); return false;"
    >
      New Scenario
    </button>
  {% endif %}
{% endblock action_button %}

{% block description %}
  <p>
    A scenario contains meta-information that can be attached to other data
    (compounds, rules, ..).
  </p>
  <a
    target="_blank"
    href="https://wiki.envipath.org/index.php/scenarios"
    class="link link-primary"
  >
    Learn more &gt;&gt;
  </a>
{% endblock description %}
