mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 17:24:07 +00:00
Unified product-/chore-/battery-card modal handling
This commit is contained in:
@@ -199,7 +199,7 @@
|
||||
</a>
|
||||
@endif
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item product-name-cell"
|
||||
<a class="dropdown-item productcard-trigger"
|
||||
data-product-id="{{ $stockEntry->product_id }}"
|
||||
type="button"
|
||||
href="#">
|
||||
@@ -247,7 +247,7 @@
|
||||
data-product-id="{{ $stockEntry->product_id }}">
|
||||
{{ $stockEntry->product_id }}
|
||||
</td>
|
||||
<td class="product-name-cell cursor-link"
|
||||
<td class="productcard-trigger cursor-link"
|
||||
data-product-id="{{ $stockEntry->product_id }}">
|
||||
{{ FindObjectInArrayByPropertyValue($products, 'id', $stockEntry->product_id)->name }}
|
||||
</td>
|
||||
@@ -319,20 +319,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade"
|
||||
id="productcard-modal"
|
||||
tabindex="-1">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content text-center">
|
||||
<div class="modal-body">
|
||||
@include('components.productcard')
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button"
|
||||
class="btn btn-secondary"
|
||||
data-dismiss="modal">{{ $__t('Close') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@include('components.productcard', [
|
||||
'asModal' => true
|
||||
])
|
||||
@stop
|
||||
|
Reference in New Issue
Block a user