mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-20 18:09:30 +00:00
Use name "project" instead of "device" everywhere in the frontend
This commit is contained in:
parent
897ea72bd0
commit
513e7f3851
12 changed files with 47 additions and 47 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
{% else %}
|
||||
{{ helper.entity_icon(project, "me-1") }}
|
||||
{% endif %}
|
||||
{% trans %}device.label{% endtrans %}: <b>{{ project.name }}</b>
|
||||
{% trans %}project.label{% endtrans %}: <b>{{ project.name }}</b>
|
||||
</button>
|
||||
</div>
|
||||
<div id="entityInfo" class="accordion-collapse collapse show" data-bs-parent="#listAccordion">
|
||||
|
|
|
|||
|
|
@ -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],
|
||||
] %}
|
||||
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue