mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Only show plural forms text field on quantity unit edit page when the current language has more than 2 plural forms to prevent confusion (references #161)
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
<input type="text" class="form-control" id="name_plural" name="name_plural" value="@if($mode == 'edit'){{ $quantityunit->name_plural }}@endif">
|
<input type="text" class="form-control" id="name_plural" name="name_plural" value="@if($mode == 'edit'){{ $quantityunit->name_plural }}@endif">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@if($pluralCount > 2)
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="plural_forms">
|
<label for="plural_forms">
|
||||||
{{ $__t('Plural forms') }}<br>
|
{{ $__t('Plural forms') }}<br>
|
||||||
@@ -43,6 +44,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<textarea class="form-control" rows="3" id="plural_forms" name="plural_forms">@if($mode == 'edit'){{ $quantityunit->plural_forms }}@endif</textarea>
|
<textarea class="form-control" rows="3" id="plural_forms" name="plural_forms">@if($mode == 'edit'){{ $quantityunit->plural_forms }}@endif</textarea>
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="description">{{ $__t('Description') }}</label>
|
<label for="description">{{ $__t('Description') }}</label>
|
||||||
|
Reference in New Issue
Block a user