mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-21 19:34:54 +02:00
Added simple possibility to favorite/unfavorite and delete multiple parts at once.
This commit is contained in:
parent
123b229638
commit
6f6ac0f128
4 changed files with 185 additions and 7 deletions
|
@ -1,12 +1,31 @@
|
|||
<form method="post" action="{{ url("table_action") }}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('table_action') }}">
|
||||
|
||||
<div id="part_list" class="" data-datatable data-settings='{{ datatable_settings(datatable)|escape('html_attr') }}'>
|
||||
<div class="card-body">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4>{% trans %}part_list.loading.caption{% endtrans %}</h4>
|
||||
<h6>{% trans %}part_list.loading.message{% endtrans %}</h6>
|
||||
<input type="hidden" name="redirect_back" value="{{ app.request.uri }}">
|
||||
|
||||
<input type="hidden" name="ids" id="select_ids" value="">
|
||||
|
||||
<div class="d-none" id="select_panel">
|
||||
<p><span id="select_count"></span> elements selected!</p>
|
||||
|
||||
<select name="action">
|
||||
<option value="favorite">Favorite</option>
|
||||
<option value="unfavorite">Unfavorite</option>
|
||||
<option value="delete">Delete</option>
|
||||
</select>
|
||||
|
||||
<button type="submit" class="btn btn-secondary">Submit</button>
|
||||
</div>
|
||||
|
||||
<div id="part_list" class="" data-select="true" data-part_table="true" data-datatable data-settings='{{ datatable_settings(datatable)|escape('html_attr') }}'>
|
||||
<div class="card-body">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4>{% trans %}part_list.loading.caption{% endtrans %}</h4>
|
||||
<h6>{% trans %}part_list.loading.message{% endtrans %}</h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue