Added option to "save and clone" a part, which is especially useful, when creatiing multiple similar parts.

This should (partly) fix issue 45.
This commit is contained in:
Jan Böhmer 2020-05-30 23:50:50 +02:00
parent d4818d2fa1
commit 6602015a5a
4 changed files with 26 additions and 2 deletions

View file

@ -102,8 +102,12 @@
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu p-2">
{{ form_row(form.log_comment)}}
<div class="dropdown-menu">
{{ form_widget(form.save_and_clone, {'attr': {'class': 'dropdown-item'}}) }}
<div class="dropdown-divider"></div>
<div class="p-2">
{{ form_row(form.log_comment)}}
</div>
</div>
</div>