{% extends "main_card.html.twig" %} {% import "info_providers/providers.macro.html.twig" as providers_macro %} {% import "helper.twig" as helper %} {% block title %}{% trans %}info_providers.search.title{% endtrans %}{% endblock %} {% block card_title %} {% trans %}info_providers.search.title{% endtrans %} {% endblock %} {% block card_content %} {{ form_start(form) }} {{ form_row(form.keyword) }} {{ form_row(form.providers) }}
{% trans %}info_providers.search.info_providers_list{% endtrans %}
{{ form_row(form.submit) }} {{ form_end(form) }} {% if results is not null %} {% for result in results %} {% endfor %}
{% trans %}name.label{% endtrans %} / {% trans %}part.table.mpn{% endtrans %} {% trans %}description.label{% endtrans %} / {% trans %}category.label{% endtrans %} {% trans %}manufacturer.label{% endtrans %} / {% trans %}footprint.label{% endtrans %} {% trans %}part.table.manufacturingStatus{% endtrans %} {% trans %}info_providers.table.provider.label{% endtrans %}
{% if result.provider_url is not null %} {{ result.name }} {% else %} {{ result.name }} {% endif %} {% if result.mpn is not null %}
{{ result.mpn }} {% endif %}
{{ result.description }} {% if result.category is not null %}
{{ result.category }} {% endif %}
{{ result.manufacturer ?? '' }} {% if result.footprint is not null %}
{{ result.footprint }} {% endif %}
{{ helper.m_status_to_badge(result.manufacturing_status) }} {% if result.provider_url %} {{ info_provider_label(result.provider_key)|default(result.provider_key) }} {% else %} {{ info_provider_label(result.provider_key)|default(result.provider_key) }} {% endif %}
{{ result.provider_id }}
{% endif %} {% endblock %}