-
|
- {% if result.provider_url is not null %}
- {{ result.name }}
+ {% if dto.provider_url is not null %}
+ {{ dto.name }}
{% else %}
- {{ result.name }}
+ {{ dto.name }}
{% endif %}
- {% if result.mpn is not null %}
+ {% if dto.mpn is not null %}
- {{ result.mpn }}
+ {{ dto.mpn }}
{% endif %}
|
- {{ result.description }}
- {% if result.category is not null %}
+ {{ dto.description }}
+ {% if dto.category is not null %}
- {{ result.category }}
+ {{ dto.category }}
{% endif %}
|
- {{ result.manufacturer ?? '' }}
- {% if result.footprint is not null %}
+ {{ dto.manufacturer ?? '' }}
+ {% if dto.footprint is not null %}
- {{ result.footprint }}
+ {{ dto.footprint }}
{% endif %}
|
- {{ helper.m_status_to_badge(result.manufacturing_status) }} |
+ {{ helper.m_status_to_badge(dto.manufacturing_status) }} |
- {% if result.provider_url %}
-
- {{ info_provider_label(result.provider_key)|default(result.provider_key) }}
+ {% if dto.provider_url %}
+
+ {{ info_provider_label(dto.provider_key)|default(dto.provider_key) }}
{% else %}
- {{ info_provider_label(result.provider_key)|default(result.provider_key) }}
+ {{ info_provider_label(dto.provider_key)|default(dto.provider_key) }}
{% endif %}
- {{ result.provider_id }}
+ {{ dto.provider_id }}
+ |
+ {% if result["localPart"] is not null %}
+ {# TODO: Needs translation #}
+
+
+ {% endif %}
+ |
+
+
{% if update_target %} {# We update an existing part #}
{% set href = path('info_providers_update_part',
- {'providerKey': result.provider_key, 'providerId': result.provider_id, 'id': update_target.iD}) %}
+ {'providerKey': dto.provider_key, 'providerId': dto.provider_id, 'id': update_target.iD}) %}
{% else %} {# Create a fresh part #}
{% set href = path('info_providers_create_part',
- {'providerKey': result.provider_key, 'providerId': result.provider_id}) %}
+ {'providerKey': dto.provider_key, 'providerId': dto.provider_id}) %}
{% endif %}
|