mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-14 12:24:33 +02:00
28 lines
1.3 KiB
Twig
28 lines
1.3 KiB
Twig
|
{% set can_build = buildHelper.projectBuildable(project) %}
|
||
|
|
||
|
{% import "components/projects.macro.html.twig" as project_macros %}
|
||
|
|
||
|
<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>
|
||
|
<b>{% trans %}project.builds.following_bom_entries_miss_instock{% endtrans %}</b>
|
||
|
<ul>
|
||
|
{% for bom_entry in buildHelper.nonBuildableProjectBomEntries(project) %}
|
||
|
<li>{{ project_macros.project_bom_entry_with_missing_instock(bom_entry) }}</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
{% else %}
|
||
|
<h5><i class="fa-solid fa-circle-check fa-fw"></i> {% trans %}project.builds.build_possible{% endtrans %}</h5>
|
||
|
<span>{% trans with {"%max_builds%": buildHelper.maximumBuildableCount(project)} %}project.builds.number_of_builds_possible{% endtrans %}</span>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="row mt-2">
|
||
|
<div class="col-4">
|
||
|
<div class="input-group mb-3">
|
||
|
<input type="number" min="1" class="form-control" placeholder="Number" aria-describedby="button-addon2" required>
|
||
|
<button class="btn btn-outline-secondary" type="button" id="button-addon2">Build</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|