{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block page_content %}
  {% include "inventory/_navigation.html" %}
  <div class="page-header">
    <h1>Consumir Produto</h1>
  </div>
  {{ wtf.quick_form(form) }}
{% endblock %}

{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block page_content %}
  {% include "inventory/_navigation.html" %}
  <div class="page-header">
    <h1>Consumir Produto</h1>
  </div>
  {{ wtf.quick_form(form) }}
{% endblock %}

{% block scripts %}
{{ super() }}
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.4/css/select2.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.4/js/select2.min.js"></script>
  <script type="text/javascript">
  $('#stock_product_id').select2({
      "language": {
          "noResults": function() {
              return "Nenhum resultado encontrado. <a href='{{ url_for('inventory.purchase_product') }}'>Adicionar ao estoque.</a>"
          }
      },
      escapeMarkup: function (markup) {
          return markup;
      }
  });
  </script>
{% endblock %}

Add Select2 to consume product form
:rocket: Add Select2 to consume product form
