Show part name hint in edit page and default description and comment settings of a category now properly works

This fixes issue #196
This commit is contained in:
Jan Böhmer 2023-01-28 21:07:01 +01:00
parent f2239e99d1
commit 58105575d3
4 changed files with 20 additions and 2 deletions

View file

@ -1,4 +1,11 @@
{{ form_row(form.name) }}
{% if part.category is not null and part.category.partnameHint is not empty %}
<div class="row">
<div class="col-sm-9 offset-sm-3">
<p class="text-muted"><b>{% trans %}part.edit.name.category_hint{% endtrans %}:</b> {{ part.category.partnameHint }}</p>
</div>
</div>
{% endif %}
{{ form_row(form.description) }}
{{ form_row(form.category) }}
{{ form_row(form.tags) }}