mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
Create new author button added
This commit is contained in:
@@ -45,66 +45,68 @@
|
|||||||
/>
|
/>
|
||||||
</x-input.group>
|
</x-input.group>
|
||||||
|
|
||||||
<x-input.group :for="md5('image')" :label="__('Main picture')">
|
@if($libraryItem->lecturer_id)
|
||||||
<div class="py-4">
|
<x-input.group :for="md5('image')" :label="__('Main picture')">
|
||||||
@if ($image)
|
<div class="py-4">
|
||||||
<div class="text-gray-200">{{ __('Preview') }}:</div>
|
@if ($image)
|
||||||
<img class="h-48 object-contain" src="{{ $image->temporaryUrl() }}">
|
<div class="text-gray-200">{{ __('Preview') }}:</div>
|
||||||
@endif
|
<img class="h-48 object-contain" src="{{ $image->temporaryUrl() }}">
|
||||||
</div>
|
@endif
|
||||||
<input class="text-gray-200" type="file" wire:model="image">
|
</div>
|
||||||
@error('image') <span class="text-red-500">{{ $message }}</span> @enderror
|
<input class="text-gray-200" type="file" wire:model="image">
|
||||||
</x-input.group>
|
@error('image') <span class="text-red-500">{{ $message }}</span> @enderror
|
||||||
|
</x-input.group>
|
||||||
|
|
||||||
<x-input.group :for="md5('libraryItem.main_image_caption')" :label="__('Main image caption')">
|
<x-input.group :for="md5('libraryItem.main_image_caption')" :label="__('Main image caption')">
|
||||||
<x-input autocomplete="off" wire:model.debounce="libraryItem.main_image_caption"
|
<x-input autocomplete="off" wire:model.debounce="libraryItem.main_image_caption"
|
||||||
:placeholder="__('Main image caption')"
|
:placeholder="__('Main image caption')"
|
||||||
:cornerHint="__('Ex: Photo by Timothy Vollmer/ CC BY')"/>
|
:cornerHint="__('Ex: Photo by Timothy Vollmer/ CC BY')"/>
|
||||||
</x-input.group>
|
</x-input.group>
|
||||||
|
|
||||||
<x-input.group :for="md5('libraryItem.name')" :label="__('Title')">
|
<x-input.group :for="md5('libraryItem.name')" :label="__('Title')">
|
||||||
<x-input autocomplete="off" wire:model.debounce="libraryItem.name"
|
<x-input autocomplete="off" wire:model.debounce="libraryItem.name"
|
||||||
:placeholder="__('Title')"/>
|
:placeholder="__('Title')"/>
|
||||||
</x-input.group>
|
</x-input.group>
|
||||||
|
|
||||||
<x-input.group :for="md5('libraryItem.subtitle')" :label="__('Subtitle')">
|
<x-input.group :for="md5('libraryItem.subtitle')" :label="__('Subtitle')">
|
||||||
<x-input autocomplete="off" wire:model.debounce="libraryItem.subtitle"
|
<x-input autocomplete="off" wire:model.debounce="libraryItem.subtitle"
|
||||||
:placeholder="__('Subtitle')"/>
|
:placeholder="__('Subtitle')"/>
|
||||||
</x-input.group>
|
</x-input.group>
|
||||||
|
|
||||||
<x-input.group :for="md5('libraryItem.excerpt')" :label="__('Excerpt')">
|
<x-input.group :for="md5('libraryItem.excerpt')" :label="__('Excerpt')">
|
||||||
<x-textarea autocomplete="off" wire:model.debounce="libraryItem.excerpt"
|
<x-textarea autocomplete="off" wire:model.debounce="libraryItem.excerpt"
|
||||||
:placeholder="__('Excerpt')"/>
|
:placeholder="__('Excerpt')"/>
|
||||||
</x-input.group>
|
</x-input.group>
|
||||||
|
|
||||||
<x-input.group :for="md5('libraryItem.language_code')" :label="__('Language Code')">
|
<x-input.group :for="md5('libraryItem.language_code')" :label="__('Language Code')">
|
||||||
<x-select
|
<x-select
|
||||||
:clearable="false"
|
:clearable="false"
|
||||||
wire:model="libraryItem.language_code"
|
wire:model="libraryItem.language_code"
|
||||||
:options="collect(config('languages.languages'))->map(fn($value, $key) => ['id' => $key, 'name' => $value])->toArray()"
|
:options="collect(config('languages.languages'))->map(fn($value, $key) => ['id' => $key, 'name' => $value])->toArray()"
|
||||||
option-label="name"
|
option-label="name"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
/>
|
/>
|
||||||
</x-input.group>
|
</x-input.group>
|
||||||
|
|
||||||
<x-input.group :for="md5('libraryItem.value')" :label="__('Article as Markdown')">
|
<x-input.group :for="md5('libraryItem.value')" :label="__('Article as Markdown')">
|
||||||
<span
|
<span
|
||||||
class="text-amber-500 text-xs py-2">{{ __('For images in Markdown, please use eg. Imgur or another provider.') }}</span>
|
class="text-amber-500 text-xs py-2">{{ __('For images in Markdown, please use eg. Imgur or another provider.') }}</span>
|
||||||
<x-input.simple-mde wire:model.defer="libraryItem.value"/>
|
<x-input.simple-mde wire:model.defer="libraryItem.value"/>
|
||||||
@error('libraryItem.value') <span class="text-red-500 py-2">{{ $message }}</span> @enderror
|
@error('libraryItem.value') <span class="text-red-500 py-2">{{ $message }}</span> @enderror
|
||||||
</x-input.group>
|
</x-input.group>
|
||||||
|
|
||||||
<x-input.group :for="md5('libraryItem.read_time')" :label="__('Time to read')">
|
<x-input.group :for="md5('libraryItem.read_time')" :label="__('Time to read')">
|
||||||
<x-inputs.number min="1" autocomplete="off" wire:model.debounce="libraryItem.read_time"
|
<x-inputs.number min="1" autocomplete="off" wire:model.debounce="libraryItem.read_time"
|
||||||
:placeholder="__('Time to read')" :hint="__('How many minutes to read?')"/>
|
:placeholder="__('Time to read')" :hint="__('How many minutes to read?')"/>
|
||||||
</x-input.group>
|
</x-input.group>
|
||||||
|
|
||||||
<x-input.group :for="md5('meetupEvent.link')" label="">
|
<x-input.group :for="md5('meetupEvent.link')" label="">
|
||||||
<x-button primary wire:click="save">
|
<x-button primary wire:click="save">
|
||||||
<i class="fa fa-thin fa-save"></i>
|
<i class="fa fa-thin fa-save"></i>
|
||||||
{{ __('Save') }}
|
{{ __('Save') }}
|
||||||
</x-button>
|
</x-button>
|
||||||
</x-input.group>
|
</x-input.group>
|
||||||
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user