Use name "project" instead of "device" everywhere in the frontend

This commit is contained in:
Jan Böhmer 2023-01-08 19:36:56 +01:00
parent 897ea72bd0
commit 513e7f3851
12 changed files with 47 additions and 47 deletions

View file

@ -3,15 +3,15 @@
{# @var entity App\Entity\ProjectSystem\Project #}
{% block card_title %}
<i class="fas fa-archive fa-fw"></i> {% trans %}device.caption{% endtrans %}
<i class="fas fa-archive fa-fw"></i> {% trans %}project.caption{% endtrans %}
{% endblock %}
{% block edit_title %}
{% trans %}device.edit{% endtrans %}: {{ entity.name }}
{% trans %}project.edit{% endtrans %}: {{ entity.name }}
{% endblock %}
{% block new_title %}
{% trans %}device.new{% endtrans %}
{% trans %}project.new{% endtrans %}
{% endblock %}
{% block additional_pills %}

View file

@ -98,7 +98,7 @@
<li class="nav-item">
<a class="nav-link" id="projects-tab" data-bs-toggle="tab" href="#projects" role="tab">
<i class="fas fa-archive fa-fw"></i>
{% trans %}device.labelp{% endtrans %}
{% trans %}project.labelp{% endtrans %}
<span class="badge bg-secondary">{{ part.projectBomEntries | length }}</span>
</a>
</li>

View file

@ -12,7 +12,7 @@
{% else %}
{{ helper.entity_icon(project, "me-1") }}
{% endif %}
{% trans %}device.label{% endtrans %}:&nbsp;<b>{{ project.name }}</b>
{% trans %}project.label{% endtrans %}:&nbsp;<b>{{ project.name }}</b>
</button>
</div>
<div id="entityInfo" class="accordion-collapse collapse show" data-bs-parent="#listAccordion">

View file

@ -6,7 +6,7 @@
['footprints', path('tree_footprint_root'), 'footprint.labelp', is_granted('@footprints.read') and is_granted('@parts.read')],
['manufacturers', path('tree_manufacturer_root'), 'manufacturer.labelp', is_granted('@manufacturers.read') and is_granted('@parts.read')],
['suppliers', path('tree_supplier_root'), 'supplier.labelp', is_granted('@suppliers.read') and is_granted('@parts.read')],
['devices', path('tree_device_root'), 'device.labelp', is_granted('@devices.read')],
['devices', path('tree_device_root'), 'project.labelp', is_granted('@devices.read')],
['tools', path('tree_tools'), 'tools.label', true],
] %}

View file

@ -96,7 +96,7 @@
"attachment_type": ["fa-solid fa-file-alt", "attachment_type.label"],
"category": ["fa-solid fa-tags", "category.label"],
"currency": ["fa-solid fa-coins", "currency.label"],
"device": ["fa-solid fa-archive", "device.label"],
"device": ["fa-solid fa-archive", "project.label"],
"footprint": ["fa-solid fa-microchip", "footprint.label"],
"group": ["fa-solid fa-users", "group.label"],
"label_profile": ["fa-solid fa-qrcode", "label_profile.label"],