mirror of
https://github.com/grocy/grocy.git
synced 2025-09-29 10:45:30 +00:00
Make it possible to hide chores/batteries (closes #1069)
This commit is contained in:
@@ -53,6 +53,17 @@
|
||||
placeholder="{{ $__t('Search') }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-xl-3">
|
||||
<div class="form-check custom-control custom-checkbox">
|
||||
<input class="form-check-input custom-control-input"
|
||||
type="checkbox"
|
||||
id="show-disabled">
|
||||
<label class="form-check-label custom-control-label"
|
||||
for="show-disabled">
|
||||
{{ $__t('Show disabled') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="float-right">
|
||||
<a id="clear-filter-button"
|
||||
@@ -89,7 +100,7 @@
|
||||
</thead>
|
||||
<tbody class="d-none">
|
||||
@foreach($batteries as $battery)
|
||||
<tr>
|
||||
<tr class="@if($battery->active == 0) text-muted @endif">
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm permission-MASTER_DATA_EDIT show-as-dialog-link"
|
||||
href="{{ $U('/battery/') }}{{ $battery->id }}?embedded"
|
||||
|
@@ -44,6 +44,19 @@
|
||||
<div class="invalid-feedback">{{ $__t('A name is required') }}</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input @if($mode=='create'
|
||||
)
|
||||
checked
|
||||
@elseif($mode=='edit'
|
||||
&&
|
||||
$battery->active == 1) checked @endif class="form-check-input custom-control-input" type="checkbox" id="active" name="active" value="1">
|
||||
<label class="form-check-label custom-control-label"
|
||||
for="active">{{ $__t('Active') }}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="description">{{ $__t('Description') }}</label>
|
||||
<input type="text"
|
||||
|
@@ -43,6 +43,19 @@
|
||||
<div class="invalid-feedback">{{ $__t('A name is required') }}</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input @if($mode=='create'
|
||||
)
|
||||
checked
|
||||
@elseif($mode=='edit'
|
||||
&&
|
||||
$chore->active == 1) checked @endif class="form-check-input custom-control-input" type="checkbox" id="active" name="active" value="1">
|
||||
<label class="form-check-label custom-control-label"
|
||||
for="active">{{ $__t('Active') }}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="description">{{ $__t('Description') }}</label>
|
||||
<textarea class="form-control"
|
||||
|
@@ -53,6 +53,17 @@
|
||||
placeholder="{{ $__t('Search') }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-xl-3">
|
||||
<div class="form-check custom-control custom-checkbox">
|
||||
<input class="form-check-input custom-control-input"
|
||||
type="checkbox"
|
||||
id="show-disabled">
|
||||
<label class="form-check-label custom-control-label"
|
||||
for="show-disabled">
|
||||
{{ $__t('Show disabled') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="float-right">
|
||||
<a id="clear-filter-button"
|
||||
@@ -89,7 +100,7 @@
|
||||
</thead>
|
||||
<tbody class="d-none">
|
||||
@foreach($chores as $chore)
|
||||
<tr>
|
||||
<tr class="@if($chore->active == 0) text-muted @endif">
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm"
|
||||
href="{{ $U('/chore/') }}{{ $chore->id }}"
|
||||
|
@@ -75,10 +75,10 @@
|
||||
<div class="form-check custom-control custom-checkbox">
|
||||
<input class="form-check-input custom-control-input"
|
||||
type="checkbox"
|
||||
id="show-disabled-products">
|
||||
id="show-disabled">
|
||||
<label class="form-check-label custom-control-label"
|
||||
for="show-disabled-products">
|
||||
{{ $__t('Show disabled products') }}
|
||||
for="show-disabled">
|
||||
{{ $__t('Show disabled') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -122,7 +122,7 @@
|
||||
</thead>
|
||||
<tbody class="d-none">
|
||||
@foreach($products as $product)
|
||||
<tr>
|
||||
<tr class="@if($product->active == 0) text-muted @endif">
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm"
|
||||
href="{{ $U('/product/') }}{{ $product->id }}"
|
||||
|
Reference in New Issue
Block a user