mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
31 lines
No EOL
939 B
Twig
31 lines
No EOL
939 B
Twig
{% extends "main_card.html.twig" %}
|
|
|
|
{% block title %}{% trans %}project.import_bom{% endtrans %}{% endblock %}
|
|
|
|
{% block before_card %}
|
|
{% if errors %}
|
|
<div class="alert alert-danger">
|
|
<h4><i class="fa-solid fa-exclamation-triangle fa-fw"></i> {% trans %}parts.import.errors.title{% endtrans %}</h4>
|
|
<ul>
|
|
{% for violation in errors %}
|
|
<li>
|
|
<b>{{ violation.propertyPath }}: </b>
|
|
{{ violation.message|trans(violation.parameters, 'validators') }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block card_title %}
|
|
<i class="fa-solid fa-file-import fa-fw"></i>
|
|
{% trans %}project.import_bom{% endtrans %}{% if project %}: <i>{{ project.name }}</i>{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block card_content %}
|
|
|
|
{{ form(form) }}
|
|
|
|
{% endblock %} |