Skip to content

Commit

Permalink
Fixing broken blade escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
palypster committed Feb 2, 2023
1 parent 49fa651 commit 63099d7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
4 changes: 0 additions & 4 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
<testsuite name="Feature Tests">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>

<testsuite name="Unit Tests">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
</div>
</div>
@elseif($col['type'] == 'json')<div class="row">
@@foreach($locales as $locale)
{{'@'}}foreach($locales as $locale)
<div class="col-md" v-show="shouldShowLangGroup('@{{ $locale }}')" v-cloak>
<div class="form-group row align-items-center" :class="{'has-danger': errors.has('{{ $col['name'] }}_@{{ $locale }}'), 'has-success': fields.{{ $col['name'] }}_@{{ $locale }} && fields.{{ $col['name'] }}_@{{ $locale }}.valid }">
<label for="{{ $col['name'] }}_@{{ $locale }}" class="col-md-2 col-form-label text-md-right">{{'{{'}} trans('admin.{{ $modelLangFormat }}.columns.{{ $col['name'] }}') }}</label>
Expand All @@ -106,7 +106,7 @@
</div>
</div>
</div>
@@endforeach
{{'@'}}endforeach
</div>
@elseif(!in_array($col['name'], ['published_at']))<div class="form-group row align-items-center" :class="{'has-danger': errors.has('{{ $col['name'] }}'), 'has-success': fields.{{ $col['name'] }} && fields.{{ $col['name'] }}.valid }">
<label for="{{ $col['name'] }}" class="col-form-label text-md-right" :class="isFormLocalized ? 'col-md-4' : 'col-md-2'">{{'{{'}} trans('admin.{{ $modelLangFormat }}.columns.{{ $col['name'] }}') }}</label>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/templates/admin-user/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</div>
</div>
@elseif($col['type'] == 'json')<div class="row">
@@foreach($locales as $locale)
{{'@'}}foreach($locales as $locale)
<div class="col-md" v-show="shouldShowLangGroup('@{{ $locale }}')" v-cloak>
<div class="form-group row align-items-center" :class="{'has-danger': errors.has('{{ $col['name'] }}_@{{ $locale }}'), 'has-success': fields.{{ $col['name'] }}_@{{ $locale }} && fields.{{ $col['name'] }}_@{{ $locale }}.valid }">
<label for="{{ $col['name'] }}_@{{ $locale }}" class="col-md-2 col-form-label text-md-right">{{'{{'}} trans('admin.{{ $modelLangFormat }}.columns.{{ $col['name'] }}') }}</label>
Expand All @@ -96,7 +96,7 @@
</div>
</div>
</div>
@@endforeach
{{'@'}}endforeach
</div>
@else<div class="form-group row align-items-center" :class="{'has-danger': errors.has('{{ $col['name'] }}'), 'has-success': fields.{{ $col['name'] }} && fields.{{ $col['name'] }}.valid }">
<label for="{{ $col['name'] }}" class="col-form-label text-md-right" :class="isFormLocalized ? 'col-md-4' : 'col-md-3'">{{'{{'}} trans('admin.{{ $modelLangFormat }}.columns.{{ $col['name'] }}') }}</label>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/templates/user/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</div>
</div>
@elseif($col['type'] == 'json')<div class="row">
@@foreach($locales as $locale)
{{'@'}}foreach($locales as $locale)
<div class="col-md" v-show="shouldShowLangGroup('@{{ $locale }}')" v-cloak>
<div class="form-group row align-items-center" :class="{'has-danger': errors.has('{{ $col['name'] }}_@{{ $locale }}'), 'has-success': fields.{{ $col['name'] }}_@{{ $locale }} && fields.{{ $col['name'] }}_@{{ $locale }}.valid }">
<label for="{{ $col['name'] }}_@{{ $locale }}" class="col-md-2 col-form-label text-md-right">{{'{{'}} trans('admin.{{ $modelLangFormat }}.columns.{{ $col['name'] }}') }}</label>
Expand All @@ -96,7 +96,7 @@
</div>
</div>
</div>
@@endforeach
{{'@'}}endforeach
</div>
@else<div class="form-group row align-items-center" :class="{'has-danger': errors.has('{{ $col['name'] }}'), 'has-success': fields.{{ $col['name'] }} && fields.{{ $col['name'] }}.valid }">
<label for="{{ $col['name'] }}" class="col-form-label text-md-right" :class="isFormLocalized ? 'col-md-4' : 'col-md-3'">{{'{{'}} trans('admin.{{ $modelLangFormat }}.columns.{{ $col['name'] }}') }}</label>
Expand Down

0 comments on commit 63099d7

Please sign in to comment.