mirror of
https://github.com/grocy/grocy.git
synced 2026-04-08 05:36:15 +02: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:
parent
970e5edfa3
commit
328d96ed60
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user