Moving assets inclusion to component

parent 99df2256
@if ($editor->getEditorCssPartial() !== null)
@if (Cache::store('array')->add('textareaCssLoaded', true, 100))
@include($editor->getEditorCssPartial())
@endif
@endif
<div class='{{ $errors->has("{$lang}.{$fieldName}") ? ' has-error' : '' }}'>
{!! Form::label("{$lang}[{$fieldName}]", $labelName) !!}
<textarea class="{{ $editor->getEditorClass() }}" name="{{$lang}}[{$fieldName}]" rows="10" cols="80">{{ $slot }}</textarea>
{!! $errors->first("{$lang}.{$fieldName}", '<span class="help-block">:message</span>') !!}
</div>
@if ($editor->getEditorJsPartial() !== null)
@if (Cache::store('array')->add('textareaJsLoaded', true, 100))
@include($editor->getEditorJsPartial())
@endif
@endif
......@@ -19,10 +19,6 @@
</style>
@stop
@if ($editor->getEditorCssPartial() !== null)
@include($editor->getEditorCssPartial())
@endif
@section('content')
{!! Form::open(['route' => ['admin.page.page.store'], 'method' => 'post']) !!}
<div class="row">
......@@ -106,7 +102,3 @@
});
</script>
@stop
@if ($editor->getEditorJsPartial() !== null)
@include($editor->getEditorJsPartial())
@endif
......@@ -19,10 +19,6 @@
</style>
@stop
@if ($editor->getEditorCssPartial() !== null)
@include($editor->getEditorCssPartial())
@endif
@section('content')
{!! Form::open(['route' => ['admin.page.page.update', $page->id], 'method' => 'put']) !!}
<div class="row">
......@@ -113,7 +109,3 @@
});
</script>
@stop
@if ($editor->getEditorJsPartial() !== null)
@include($editor->getEditorJsPartial())
@endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment