mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
enable registration
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div class="bg-21gray">
|
||||
<div class="bg-21gray flex flex-col h-screen justify-between">
|
||||
{{-- HEADER --}}
|
||||
<section class="w-full">
|
||||
<div class="max-w-7xl mx-auto px-10">
|
||||
@@ -115,7 +115,7 @@
|
||||
</div>
|
||||
</section>
|
||||
{{-- FOOTER --}}
|
||||
<section class="sticky bottom-0 py-10 bg-gray-900 w-full">
|
||||
<div class="bottom-0 py-6 bg-gray-900 w-full">
|
||||
<div class="px-10 mx-auto max-w-7xl">
|
||||
<div class="flex flex-col items-center md:flex-row md:justify-between">
|
||||
<a href="#_">
|
||||
@@ -147,5 +147,5 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -13,22 +13,23 @@
|
||||
<div x-data="{photoName: null, photoPreview: null}" class="col-span-6 sm:col-span-4">
|
||||
<!-- Profile Photo File Input -->
|
||||
<input type="file" class="hidden"
|
||||
wire:model="photo"
|
||||
x-ref="photo"
|
||||
x-on:change="
|
||||
wire:model="photo"
|
||||
x-ref="photo"
|
||||
x-on:change="
|
||||
photoName = $refs.photo.files[0].name;
|
||||
const reader = new FileReader();
|
||||
reader.onload = (e) => {
|
||||
photoPreview = e.target.result;
|
||||
};
|
||||
reader.readAsDataURL($refs.photo.files[0]);
|
||||
" />
|
||||
"/>
|
||||
|
||||
<x-jet-label for="photo" value="{{ __('Photo') }}" />
|
||||
<x-jet-label for="photo" value="{{ __('Photo') }}"/>
|
||||
|
||||
<!-- Current Profile Photo -->
|
||||
<div class="mt-2" x-show="! photoPreview">
|
||||
<img src="{{ $this->user->profile_photo_url }}" alt="{{ $this->user->name }}" class="rounded-full h-20 w-20 object-cover">
|
||||
<img src="{{ $this->user->profile_photo_url }}" alt="{{ $this->user->name }}"
|
||||
class="rounded-full h-20 w-20 object-cover">
|
||||
</div>
|
||||
|
||||
<!-- New Profile Photo Preview -->
|
||||
@@ -48,28 +49,30 @@
|
||||
</x-jet-secondary-button>
|
||||
@endif
|
||||
|
||||
<x-jet-input-error for="photo" class="mt-2" />
|
||||
<x-jet-input-error for="photo" class="mt-2"/>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Name -->
|
||||
<div class="col-span-6 sm:col-span-4">
|
||||
<x-jet-label for="name" value="{{ __('Name') }}" />
|
||||
<x-jet-input id="name" type="text" class="mt-1 block w-full" wire:model.defer="state.name" autocomplete="name" />
|
||||
<x-jet-input-error for="name" class="mt-2" />
|
||||
<x-jet-label for="name" value="{{ __('Name') }}"/>
|
||||
<x-jet-input id="name" type="text" class="mt-1 block w-full" wire:model.defer="state.name"
|
||||
autocomplete="name"/>
|
||||
<x-jet-input-error for="name" class="mt-2"/>
|
||||
</div>
|
||||
|
||||
<!-- Email -->
|
||||
<div class="col-span-6 sm:col-span-4">
|
||||
<x-jet-label for="email" value="{{ __('Email') }}" />
|
||||
<x-jet-input id="email" type="email" class="mt-1 block w-full" wire:model.defer="state.email" />
|
||||
<x-jet-input-error for="email" class="mt-2" />
|
||||
<x-jet-label for="email" value="{{ __('Email') }}"/>
|
||||
<x-jet-input id="email" type="email" class="mt-1 block w-full" wire:model.defer="state.email"/>
|
||||
<x-jet-input-error for="email" class="mt-2"/>
|
||||
|
||||
@if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::emailVerification()) && ! $this->user->hasVerifiedEmail())
|
||||
<p class="text-sm mt-2">
|
||||
{{ __('Your email address is unverified.') }}
|
||||
|
||||
<button type="button" class="underline text-sm text-gray-600 hover:text-gray-900" wire:click.prevent="sendEmailVerification">
|
||||
<button type="button" class="underline text-sm text-gray-600 hover:text-gray-900"
|
||||
wire:click.prevent="sendEmailVerification">
|
||||
{{ __('Click here to re-send the verification email.') }}
|
||||
</button>
|
||||
</p>
|
||||
@@ -88,8 +91,8 @@
|
||||
{{ __('Saved.') }}
|
||||
</x-jet-action-message>
|
||||
|
||||
{{--<x-jet-button wire:loading.attr="disabled" wire:target="photo">
|
||||
<x-jet-button wire:loading.attr="disabled" wire:target="photo">
|
||||
{{ __('Save') }}
|
||||
</x-jet-button>--}}
|
||||
</x-jet-button>
|
||||
</x-slot>
|
||||
</x-jet-form-section>
|
||||
|
||||
Reference in New Issue
Block a user