51 lines
2.9 KiB
PHP
51 lines
2.9 KiB
PHP
<div
|
|
data-te-modal-init
|
|
id="modalCreatePlaylist"
|
|
tabindex="-1"
|
|
aria-labelledby="modalCreatePlaylist"
|
|
aria-modal="true"
|
|
role="dialog"
|
|
class="fixed inset-0 z-[1055] hidden overflow-y-auto bg-black/60 backdrop-blur-sm"
|
|
>
|
|
<div data-te-modal-dialog-ref class="flex min-h-screen items-center justify-center p-4">
|
|
<div class="relative w-full max-w-2xl overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-2xl dark:border-neutral-700 dark:bg-neutral-900">
|
|
<x-modal-header :title="__('Create Playlist')" />
|
|
|
|
<!--Modal body-->
|
|
<div class="relative p-4">
|
|
<form method="POST" action="{{ route('profile.playlists.create') }}">
|
|
@csrf
|
|
|
|
<div class="p-4">
|
|
<label class="mb-2 leading-tight text-gray-800 dark:text-gray-200 w-full" for="name">Playlist Name:</label>
|
|
<x-text-input id="name" class="block mt-1 w-full" type="text" name="name" maxlength="30" required autofocus />
|
|
<x-input-error :messages="$errors->get('name')" class="mt-2" />
|
|
</div>
|
|
|
|
<div class="p-4">
|
|
<label class="mb-2 leading-tight text-gray-800 dark:text-gray-200 w-full" for="visiblity">Visibility:</label>
|
|
<select name="visiblity" id="visiblity" class="block w-full text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-rose-800 focus:border-rose-900 dark:bg-neutral-900 dark:border-neutral-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-rose-800 dark:focus:border-rose-900">
|
|
<option value="public">Public</option>
|
|
<option value="private" selected>Private</option>
|
|
</select>
|
|
<x-input-error :messages="$errors->get('visiblity')" class="mt-2" />
|
|
</div>
|
|
|
|
<div class="flex flex-shrink-0 flex-wrap items-center justify-end rounded-b-md p-4 gap-3">
|
|
<button
|
|
type="button"
|
|
data-te-modal-dismiss
|
|
class="cursor-pointer rounded-xl border border-neutral-300 px-5 py-2.5 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100 dark:border-neutral-600 dark:text-neutral-200 dark:hover:bg-neutral-800">
|
|
Cancel
|
|
</button>
|
|
<button
|
|
type="submit"
|
|
class="cursor-pointer rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700">
|
|
Create
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |