Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdminLTE whit jetstream not showing modals confirmations and js not working in profile options #1001

Open
judavid6 opened this issue Oct 23, 2021 · 7 comments
Labels
help-needed Help from the community is required question Just a question, not an issue or bug

Comments

@judavid6
Copy link

judavid6 commented Oct 23, 2021

Describe the bug

Jetstream provides an interface to modify the user information, but when I try to modify the next 2 options with the AdminLTE template it doesn't work.

image

Steps To Reproduce

Steps to reproduce the behavior:

  1. Here is the code I use.
@extends('adminlte::page')
@section('title','Perfil')
@section('content_header')
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
    {{ __('Profile') }}
</h2>
@stop
@section('content')
<x-app-layout>
    <x-slot name="header">
        <h2 class="font-semibold text-xl text-gray-800 leading-tight">
            {{ __('Profile') }}
        </h2>
    </x-slot>

    <div>
        <div class="max-w-7xl mx-auto py-10 sm:px-6 lg:px-8">
            @if (Laravel\Fortify\Features::canUpdateProfileInformation())
            @livewire('profile.update-profile-information-form')

            <x-jet-section-border />
            @endif

            @if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::updatePasswords()))
            <div class="mt-10 sm:mt-0">
                @livewire('profile.update-password-form')
            </div>

            <x-jet-section-border />
            @endif

            @if (Laravel\Fortify\Features::canManageTwoFactorAuthentication())
            <div class="mt-10 sm:mt-0">
                @livewire('profile.two-factor-authentication-form')
            </div>

            <x-jet-section-border />
            @endif

            <div class="mt-10 sm:mt-0">
                @livewire('profile.logout-other-browser-sessions-form')
            </div>

            @if (Laravel\Jetstream\Jetstream::hasAccountDeletionFeatures())
            <x-jet-section-border />

            <div class="mt-10 sm:mt-0">
                @livewire('profile.delete-user-form')
            </div>
            @endif
        </div>
    </div>
</x-app-layout>

@stop

@section('css')
<link rel="stylesheet" href="/css/admin_custom.css">
@stop

@section('js')
<script src="{{ mix('js/app.js') }}" defer></script>
@stop
  1. This doesn't work

image

  1. This doesn't work

image

Expected behavior

A clear and concise description of what you expected to happen.

  1. Expected

image

  1. Expected

image

Screenshots

If applicable, add screenshots to help explain your problem or to shown the issue.

Environment

Complete the next environment information.

Laravel 8
AdminLTE 3.1.0

@dfsmania dfsmania added question Just a question, not an issue or bug help-needed Help from the community is required labels Oct 23, 2021
@dfsmania
Copy link
Collaborator

Hi @judavid6 on the package we only offers support to the legacy laravel/ui authentication scaffolding. Integrating with brezee or Jetstream should be done on your own. I do not have experience with any of these authentication scaffolding. So, maybe the community can help you here...

@jonasalvarado
Copy link

Greetings, it would be of interest, to know if you managed to solve the implementation with jetstream since I find myself in the same situation.

@invaders-xx
Copy link

Using nascent-africa/jetstrap make it works, I don't have any issue with Jetstream.

Hope it helps.

@numeral42
Copy link

Hola. Buscando una solución para el uso de los modales de jestream con adminlte3 vi este problema, yo lo solucione: hice una plantilla en layouts con las secciones de adminlte3 y en un $slot cargue profile/show.blade.phe osea reemplace por y en el archivo resouces/views/profile/show.blade.php, cree un un componente app/view/components/AdminlteLayout.php y en el layouts/adminlte.blade.php copie el head de layouts/app.blade.php. perdón si no me explico bien. Espero se entienda.

@NRotili
Copy link

NRotili commented Jul 19, 2022

Hola! Podrías detallarlo un poco mejor?
Cómo incorporaste el head en las secciones de adminlte?
Saludos y gracias de antemano!

@atulmahankal
Copy link

Modifying just 2 files resolved the issue.

  1. config\adminlte.php
    'livewire' => true,

  2. resources\views\profile\show.blade.php

@extends('adminlte::page')

@section('title', 'Profile')

@section('content_header')
    <h1>Profile</h1>
@stop

@section('js')
    @vite(['resources/css/app.css', 'resources/js/app.js'])
@stop

@section('content')
    <div>
        <div class="max-w-7xl mx-auto py-10 sm:px-6 lg:px-8">
            @if (Laravel\Fortify\Features::canUpdateProfileInformation())
                @livewire('profile.update-profile-information-form')

                <x-jet-section-border />
            @endif

            @if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::updatePasswords()))
                <div class="mt-10 sm:mt-0">
                    @livewire('profile.update-password-form')
                </div>

                <x-jet-section-border />
            @endif

            @if (Laravel\Fortify\Features::canManageTwoFactorAuthentication())
                <div class="mt-10 sm:mt-0">
                    @livewire('profile.two-factor-authentication-form')
                </div>

                <x-jet-section-border />
            @endif

            <div class="mt-10 sm:mt-0">
                @livewire('profile.logout-other-browser-sessions-form')
            </div>

            @if (Laravel\Jetstream\Jetstream::hasAccountDeletionFeatures())
                <x-jet-section-border />

                <div class="mt-10 sm:mt-0">
                    @livewire('profile.delete-user-form')
                </div>
            @endif
        </div>
    </div>
@endsection

@tmgomas
Copy link

tmgomas commented Nov 8, 2022

Jetstream Using Tailwind CSS I think That is the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-needed Help from the community is required question Just a question, not an issue or bug
Projects
None yet
Development

No branches or pull requests

8 participants