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

{% block page_title %}Rules{% endblock %}

{% 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_rule_modal').showModal(); return false;"
    >
      New Rule
    </button>
  {% endif %}
{% endblock action_button %}

{% block action_modals %}
  {% include "modals/collections/new_rule_modal.html" %}
{% endblock action_modals %}

{% block description %}
  <p>
    A rule describes a biotransformation reaction template that is defined as
    SMIRKS.
  </p>
  <a
    target="_blank"
    href="https://wiki.envipath.org/index.php/Rules"
    class="link link-primary"
  >
    Learn more &gt;&gt;
  </a>
{% endblock description %}
