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:
Michal Kváček
2016-01-27 01:57:44 +01:00
parent ff17e528ae
commit e7bc0aaf4a
2 changed files with 4 additions and 4 deletions
@@ -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>