FEATURE: remove @lang() functions from templates.
Enumeration values (strings) are translated during pushing into collection (enumeration). So there is no need to translate it again.
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
|
||||
<select name="type" disabled>
|
||||
@foreach($types as $type => $translation)
|
||||
<option value="{{$type}}"@if($field->type_id == $type) selected @endif>@lang($translation)</option>
|
||||
<option value="{{$type}}"@if($field->type_id == $type) selected @endif>{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
<select name="resource" disabled>
|
||||
@foreach($resources as $resource => $translation)
|
||||
<option value="{{$resource}}"@if($field->resource_id == $resource) selected @endif>@lang($translation)</option>
|
||||
<option value="{{$resource}}"@if($field->resource_id == $resource) selected @endif>{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
<select name="type">
|
||||
@foreach($types as $type => $translation)
|
||||
<option value="{{$type}}"@if(old('type') == $type) selected @endif>@lang($translation)</option>
|
||||
<option value="{{$type}}"@if(old('type') == $type) selected @endif>{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
<select name="resource">
|
||||
@foreach($resources as $resource => $translation)
|
||||
<option value="{{$resource}}"@if(old('resource') == $resource) selected @endif>@lang($translation)</option>
|
||||
<option value="{{$resource}}"@if(old('resource') == $resource) selected @endif>{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user