Skip to content

Commit

Permalink
update class padding pada halaman utama
Browse files Browse the repository at this point in the history
  • Loading branch information
manusiakemos committed Sep 22, 2024
1 parent ce1ea19 commit 697f0de
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 64 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor/
/.idea/
64 changes: 31 additions & 33 deletions src/Console/stubs/page-modal.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,43 @@
<title>{@className}</title>
</x-slot>

<main class="w-full flex-grow px-3">
<section class="content overflow-x-auto rounded-lg overflow-y-auto h-full mx-auto py-5 px-5">
<div class="pb-3">
<x-atoms.custom-breadcrumb>
<x-atoms.breadcrumb-item label="Home" href="#"/>
<x-atoms.breadcrumb-item label="{@classNameSpace}" active/>
</x-atoms.custom-breadcrumb>
</div>
<div class="mb-3">
<div class="mb-5 flex flex-grow flex-col md:flex-row items-center justify-center md:justify-between">
<x-atoms.heading label="{@classNameSpace}"/>

<div class="flex flex-wrap gap-1">
<x-button class="grow" wire:click="create" primary>
{{ __('messages.add') }} {@classNameSpace}
</x-button>
<x-button class="grow" primary wire:click="$dispatch('refreshDt', true)">
{{ __('messages.refresh_table') }}
</x-button>
</div>
<section class="content overflow-x-auto rounded-lg overflow-y-auto h-full mx-auto">
<div class="pb-3">
<x-atoms.custom-breadcrumb>
<x-atoms.breadcrumb-item label="Home" href="#" />
<x-atoms.breadcrumb-item label="{@classNameSpace}" active />
</x-atoms.custom-breadcrumb>
</div>
<div class="mb-3">
<div class="mb-5 flex flex-grow flex-col md:flex-row items-center justify-center md:justify-between">
<x-atoms.heading label="{@classNameSpace}" />

<div class="flex flex-wrap gap-1">
<x-button class="grow" wire:click="create" primary>
{{ __('messages.add') }} {@classNameSpace}
</x-button>
<x-button class="grow" primary wire:click="$dispatch('refreshDt', true)">
{{ __('messages.refresh_table') }}
</x-button>
</div>
</div>

<div id="main-content">
<div id="main-content">

{{--{@classNameLower} table data--}}
<livewire:{@classNameSlug}.{@classNameSlug}-table/>
{{-- {@classNameLower} table data --}}
<livewire:{@classNameSlug}.{@classNameSlug}-table />

{{--{@classNameLower} form--}}
@include('livewire.{@classNameSlug}._{@classNameSlug}-form')

</div>
{{-- {@classNameLower} form --}}
@include('livewire.{@classNameSlug}._{@classNameSlug}-form')

</div>
</section>
</main>

</div>
</section>


@push("scripts")
@push("scripts")
<x-atoms.default-script page-name="{@classNameSlug}"/>
@endpush
@push('scripts')
@push('scripts')
<x-atoms.default-script page-name="{@classNameSlug}" />
@endpush
@endpush
60 changes: 29 additions & 31 deletions src/Console/stubs/page.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,39 @@
<title>{@className}</title>
</x-slot>

<main class="w-full flex-grow px-3">
<section class="content overflow-x-auto rounded-lg overflow-y-auto h-full mx-auto py-5 px-5">
<div class="pb-3">
<x-atoms.custom-breadcrumb>
<x-atoms.breadcrumb-item label="Home" href="#"/>
<x-atoms.breadcrumb-item label="{@classNameSpace}" active/>
</x-atoms.custom-breadcrumb>
</div>
<div class="mb-3">
<div class="mb-5 flex flex-grow flex-col md:flex-row items-center justify-center md:justify-between">
<x-atoms.heading label="{@classNameSpace}"/>

<div class="flex flex-wrap gap-1">
<x-button class="grow" href="{{ route('{@classNameLower}.form') }}" primary>
{{ __('messages.add') }} {@classNameSpace}
</x-button>
<x-button class="grow" primary wire:click="$dispatch('refreshDt', true)">
{{ __('messages.refresh_table') }}
</x-button>
</div>
</div>
<section class="content overflow-x-auto rounded-lg overflow-y-auto h-full mx-auto">
<div class="pb-3">
<x-atoms.custom-breadcrumb>
<x-atoms.breadcrumb-item label="Home" href="#" />
<x-atoms.breadcrumb-item label="{@classNameSpace}" active />
</x-atoms.custom-breadcrumb>
</div>
<div class="mb-3">
<div class="mb-5 flex flex-grow flex-col md:flex-row items-center justify-center md:justify-between">
<x-atoms.heading label="{@classNameSpace}" />

<div id="main-content">
{{--{@classNameLower} table data--}}
<livewire:{@classNameSlug}.{@classNameSlug}-table/>
<div class="flex flex-wrap gap-1">
<x-button class="grow" href="{{ route('{@classNameLower}.form') }}" primary>
{{ __('messages.add') }} {@classNameSpace}
</x-button>
<x-button class="grow" primary wire:click="$dispatch('refreshDt', true)">
{{ __('messages.refresh_table') }}
</x-button>
</div>
</div>

<div id="main-content">
{{-- {@classNameLower} table data --}}
<livewire:{@classNameSlug}.{@classNameSlug}-table />
</div>
</section>
</main>

</div>
</section>



@push("scripts")
@push("scripts")
<x-atoms.default-script page-name="{@classNameSlug}"/>
@endpush
@endpush
@push('scripts')
@push('scripts')
<x-atoms.default-script page-name="{@classNameSlug}" />
@endpush
@endpush

0 comments on commit 697f0de

Please sign in to comment.