mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Added an alert to the build tab, when a part has a status other than "in_production".
This commit is contained in:
parent
76ec63e760
commit
fcd8d205d3
2 changed files with 12 additions and 0 deletions
|
@ -2,6 +2,12 @@
|
||||||
|
|
||||||
{% import "components/projects.macro.html.twig" as project_macros %}
|
{% import "components/projects.macro.html.twig" as project_macros %}
|
||||||
|
|
||||||
|
{% if project.status is not empty and project.status != "in_production" %}
|
||||||
|
<div class="alert mt-2 alert-warning" role="alert">
|
||||||
|
<i class="fa-solid fa-triangle-exclamation fa-fw"></i> {% trans with {"%project_status%": ('project.status.'~project.status)|trans } %}project.builds.check_project_status{% endtrans %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="alert mt-2 {% if can_build %}alert-success{% else %}alert-danger{% endif %}" role="alert">
|
<div class="alert mt-2 {% if can_build %}alert-success{% else %}alert-danger{% endif %}" role="alert">
|
||||||
{% if not can_build %}
|
{% if not can_build %}
|
||||||
<h5><i class="fa-solid fa-circle-exclamation fa-fw"></i> {% trans %}project.builds.build_not_possible{% endtrans %}</h5>
|
<h5><i class="fa-solid fa-circle-exclamation fa-fw"></i> {% trans %}project.builds.build_not_possible{% endtrans %}</h5>
|
||||||
|
|
|
@ -10333,5 +10333,11 @@ Element 3</target>
|
||||||
<target><![CDATA[You have enough stocked to build <b>%max_builds%</b> builds of this project.]]></target>
|
<target><![CDATA[You have enough stocked to build <b>%max_builds%</b> builds of this project.]]></target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
|
<unit id="fZhqvmk" name="project.builds.check_project_status">
|
||||||
|
<segment>
|
||||||
|
<source>project.builds.check_project_status</source>
|
||||||
|
<target><![CDATA[The current project status is <b>"%project_status%"</b>. You should check if you really want to build the project with this status!]]></target>
|
||||||
|
</segment>
|
||||||
|
</unit>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue