Added an alert to the build tab, when a part has a status other than "in_production".

This commit is contained in:
Jan Böhmer 2023-01-18 23:15:31 +01:00
parent 76ec63e760
commit fcd8d205d3
2 changed files with 12 additions and 0 deletions

View file

@ -2,6 +2,12 @@
{% 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">
{% if not can_build %}
<h5><i class="fa-solid fa-circle-exclamation fa-fw"></i> {% trans %}project.builds.build_not_possible{% endtrans %}</h5>

View file

@ -10333,5 +10333,11 @@ Element 3</target>
<target><![CDATA[You have enough stocked to build <b>%max_builds%</b> builds of this project.]]></target>
</segment>
</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>
</xliff>