Skip to content

Commit

Permalink
Ubah view namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
uyab committed Jan 24, 2020
1 parent af21a63 commit 94fb969
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/epicentrum.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'prefix' => 'epicentrum',
],
'view' => [
'layout' => 'ui::layouts.app',
'layout' => 'laravolt::layouts.app',
],
'menu' => [
'enable' => true,
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/page-header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="item">
@foreach($actions ?? [] as $action)
@if(is_array($action))
@includeWhen($action['visible'] ?? true, 'ui::components.button', ['action' => $action])
@includeWhen($action['visible'] ?? true, 'laravolt::components.button', ['action' => $action])
@else
{!! $action !!}
@endif
Expand Down
2 changes: 1 addition & 1 deletion resources/views/my/password/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@section('content')

@component('ui::components.panel', ['title' => __('Edit Password')])
@component('laravolt::components.panel', ['title' => __('Edit Password')])
{!! form()->open()->action(route('epicentrum::my.password.update'))->horizontal() !!}
{!! form()->password('password_current')->label(__('laravolt::users.password_current')) !!}
{!! form()->password('password')->label(__('laravolt::users.password_new')) !!}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/my/profile/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@section('content')

@component('ui::components.panel', ['title' => __('Edit Profil')])
@component('laravolt::components.panel', ['title' => __('Edit Profil')])
{!! form()->bind($user)->put(route('epicentrum::my.profile.update'))->horizontal() !!}

{!! form()->text('name')->label(__('laravolt::users.name')) !!}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/roles/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@endpush

@section('content')
@component('ui::components.panel', ['title' => __('laravolt::label.add_role')])
@component('laravolt::components.panel', ['title' => __('laravolt::label.add_role')])
{!! SemanticForm::open()->post()->action(route('epicentrum::roles.store')) !!}
{!! SemanticForm::text('name', old('name'))->label(trans('laravolt::roles.name'))->required() !!}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/roles/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


@section('content')
@component('ui::components.panel', ['title' => __('laravolt::label.edit_role')])
@component('laravolt::components.panel', ['title' => __('laravolt::label.edit_role')])
{!! SemanticForm::open()->put()->action(route('epicentrum::roles.update', $role['id'])) !!}
<div class="field required">
{!! SemanticForm::text('name', old('name', $role['name']))->label(trans('laravolt::roles.name')) !!}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/users/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@endpush

@section('content')
@component('ui::components.panel', ['title' => __('laravolt::menu.add_user')])
@component('laravolt::components.panel', ['title' => __('laravolt::menu.add_user')])
{!! form()->open()->post()->action(route('epicentrum::users.store')) !!}
{!! form()->text('name')->label(trans('laravolt::users.name'))->required() !!}
{!! form()->text('email')->label(trans('laravolt::users.email'))->required() !!}
Expand Down
4 changes: 2 additions & 2 deletions src/Platform/Providers/UiServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ protected function bootViews()
'views'
);

Paginator::defaultView('ui::pagination.default');
Paginator::defaultSimpleView('ui::pagination.simple');
Paginator::defaultView('laravolt::pagination.default');
Paginator::defaultSimpleView('laravolt::pagination.simple');

return $this;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Platform/Services/Flash.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function injectScript(Response $response)
return 0;
});

$script = $this->view->make('ui::flash', compact('bags'))->render();
$script = $this->view->make('laravolt::flash', compact('bags'))->render();

if (false !== $pos) {
$content = substr($content, 0, $pos).$script.substr($content, $pos);
Expand Down
2 changes: 1 addition & 1 deletion stubs/dashboard.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@extends('ui::layouts.app')
@extends('laravolt::layouts.app')

@section('content')
<div style="display: flex; min-height: 600px; align-items: center; justify-content: center; flex-direction: column">
Expand Down

0 comments on commit 94fb969

Please sign in to comment.