mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-13 06:56:48 +00:00
add landing pages for meetups
This commit is contained in:
119
resources/views/vendor/livewire-tables/components/table/tr/bulk-actions.blade.php
vendored
Normal file
119
resources/views/vendor/livewire-tables/components/table/tr/bulk-actions.blade.php
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
@aware(['component'])
|
||||
@props(['rows'])
|
||||
|
||||
@if ($component->bulkActionsAreEnabled() && $component->hasBulkActions() && $component->hasSelected())
|
||||
@php
|
||||
$table = $component->getTableName();
|
||||
$theme = $component->getTheme();
|
||||
$colspan = $component->getColspanCount();
|
||||
$selected = $component->getSelectedCount();
|
||||
$selectAll = $component->selectAllIsEnabled();
|
||||
@endphp
|
||||
|
||||
@if ($theme === 'tailwind')
|
||||
<x-livewire-tables::table.tr.plain
|
||||
wire:key="bulk-select-message-{{ $table }}"
|
||||
class="bg-indigo-50 dark:bg-gray-900 dark:text-white"
|
||||
>
|
||||
<x-livewire-tables::table.td.plain :colspan="$colspan">
|
||||
@if ($selectAll)
|
||||
<div wire:key="all-selected-{{ $table }}">
|
||||
<span>
|
||||
@lang('You are currently selecting all')
|
||||
<strong>{{ number_format($rows->total()) }}</strong>
|
||||
@lang('rows').
|
||||
</span>
|
||||
|
||||
<button
|
||||
wire:click="clearSelected"
|
||||
wire:loading.attr="disabled"
|
||||
type="button"
|
||||
class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium focus:outline-none focus:text-gray-800 focus:underline transition duration-150 ease-in-out dark:text-white dark:hover:text-gray-400"
|
||||
>
|
||||
@lang('Deselect All')
|
||||
</button>
|
||||
</div>
|
||||
@else
|
||||
<div wire:key="some-selected-{{ $table }}">
|
||||
<span>
|
||||
@lang('You have selected')
|
||||
<strong>{{ $selected }}</strong>
|
||||
@lang('rows, do you want to select all')
|
||||
<strong>{{ number_format($rows->total()) }}</strong>?
|
||||
</span>
|
||||
|
||||
<button
|
||||
wire:click="setAllSelected"
|
||||
wire:loading.attr="disabled"
|
||||
type="button"
|
||||
class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium focus:outline-none focus:text-gray-800 focus:underline transition duration-150 ease-in-out dark:text-white dark:hover:text-gray-400"
|
||||
>
|
||||
@lang('Select All')
|
||||
</button>
|
||||
|
||||
<button
|
||||
wire:click="clearSelected"
|
||||
wire:loading.attr="disabled"
|
||||
type="button"
|
||||
class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium focus:outline-none focus:text-gray-800 focus:underline transition duration-150 ease-in-out dark:text-white dark:hover:text-gray-400"
|
||||
>
|
||||
@lang('Deselect All')
|
||||
</button>
|
||||
</div>
|
||||
@endif
|
||||
</x-livewire-tables::table.td.plain>
|
||||
</x-livewire-tables::table.tr.plain>
|
||||
@elseif ($theme === 'bootstrap-4' || $theme === 'bootstrap-5')
|
||||
<x-livewire-tables::table.tr.plain
|
||||
wire:key="bulk-select-message-{{ $table }}"
|
||||
>
|
||||
<x-livewire-tables::table.td.plain :colspan="$colspan">
|
||||
@if ($selectAll)
|
||||
<div wire:key="all-selected-{{ $table }}">
|
||||
<span>
|
||||
@lang('You are currently selecting all')
|
||||
<strong>{{ number_format($rows->total()) }}</strong>
|
||||
@lang('rows').
|
||||
</span>
|
||||
|
||||
<button
|
||||
wire:click="clearSelected"
|
||||
wire:loading.attr="disabled"
|
||||
type="button"
|
||||
class="btn btn-primary btn-sm"
|
||||
>
|
||||
@lang('Deselect All')
|
||||
</button>
|
||||
</div>
|
||||
@else
|
||||
<div wire:key="some-selected-{{ $table }}">
|
||||
<span>
|
||||
@lang('You have selected')
|
||||
<strong>{{ $selected }}</strong>
|
||||
@lang('rows, do you want to select all')
|
||||
<strong>{{ number_format($rows->total()) }}</strong>?
|
||||
</span>
|
||||
|
||||
<button
|
||||
wire:click="setAllSelected"
|
||||
wire:loading.attr="disabled"
|
||||
type="button"
|
||||
class="btn btn-primary btn-sm"
|
||||
>
|
||||
@lang('Select All')
|
||||
</button>
|
||||
|
||||
<button
|
||||
wire:click="clearSelected"
|
||||
wire:loading.attr="disabled"
|
||||
type="button"
|
||||
class="btn btn-primary btn-sm"
|
||||
>
|
||||
@lang('Deselect All')
|
||||
</button>
|
||||
</div>
|
||||
@endif
|
||||
</x-livewire-tables::table.td.plain>
|
||||
</x-livewire-tables::table.tr.plain>
|
||||
@endif
|
||||
@endif
|
||||
30
resources/views/vendor/livewire-tables/components/table/tr/footer.blade.php
vendored
Normal file
30
resources/views/vendor/livewire-tables/components/table/tr/footer.blade.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
@aware(['component'])
|
||||
@props(['rows'])
|
||||
|
||||
|
||||
<x-livewire-tables::table.tr.plain
|
||||
:customAttributes="$this->getFooterTrAttributes($rows)"
|
||||
wire:key="footer-{{ $this->getTableName() }}"
|
||||
>
|
||||
@if ($this->currentlyReorderingIsEnabled())
|
||||
<x-livewire-tables::table.td.plain />
|
||||
@endif
|
||||
|
||||
@if ($this->bulkActionsAreEnabled() && $this->hasBulkActions())
|
||||
<x-livewire-tables::table.td.plain />
|
||||
@endif
|
||||
|
||||
@if ($this->collapsingColumnsAreEnabled() && $this->hasCollapsedColumns())
|
||||
<x-livewire-tables::table.td.row-contents rowIndex="-1" :hidden="true" />
|
||||
@endif
|
||||
|
||||
@foreach($this->getColumns() as $colIndex => $column)
|
||||
@continue($column->isHidden())
|
||||
@continue($this->columnSelectIsEnabled() && ! $this->columnSelectIsEnabledForColumn($column))
|
||||
@continue($this->currentlyReorderingIsDisabled() && $column->isReorderColumn() && $this->hideReorderColumnUnlessReorderingIsEnabled())
|
||||
|
||||
<x-livewire-tables::table.td.plain :column="$column" :customAttributes="$this->getFooterTdAttributes($column, $rows, $colIndex)">
|
||||
{{ $column->getFooterContents($rows) }}
|
||||
</x-livewire-tables::table.td.plain>
|
||||
@endforeach
|
||||
</x-livewire-tables::table.tr.plain>
|
||||
24
resources/views/vendor/livewire-tables/components/table/tr/plain.blade.php
vendored
Normal file
24
resources/views/vendor/livewire-tables/components/table/tr/plain.blade.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
@aware(['component'])
|
||||
@props(['customAttributes' => []])
|
||||
|
||||
@php
|
||||
$theme = $component->getTheme();
|
||||
@endphp
|
||||
|
||||
@if ($theme === 'tailwind')
|
||||
<tr {{ $attributes
|
||||
->merge($customAttributes)
|
||||
->class(['bg-white dark:bg-gray-700 dark:text-white' => $customAttributes['default'] ?? true])
|
||||
->except('default')
|
||||
}}>
|
||||
{{ $slot }}
|
||||
</tr>
|
||||
@elseif ($theme === 'bootstrap-4' || $theme === 'bootstrap-5')
|
||||
<tr {{ $attributes
|
||||
->merge($customAttributes)
|
||||
->class(['' => $customAttributes['default'] ?? true])
|
||||
->except('default')
|
||||
}}>
|
||||
{{ $slot }}
|
||||
</tr>
|
||||
@endif
|
||||
30
resources/views/vendor/livewire-tables/components/table/tr/secondary-header.blade.php
vendored
Normal file
30
resources/views/vendor/livewire-tables/components/table/tr/secondary-header.blade.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
@aware(['component'])
|
||||
@props(['rows'])
|
||||
|
||||
|
||||
<x-livewire-tables::table.tr.plain
|
||||
:customAttributes="$this->getSecondaryHeaderTrAttributes($rows)"
|
||||
wire:key="secondary-header-{{ $this->getTableName() }}"
|
||||
>
|
||||
@if ($this->currentlyReorderingIsEnabled())
|
||||
<x-livewire-tables::table.td.plain />
|
||||
@endif
|
||||
|
||||
@if ($this->bulkActionsAreEnabled() && $this->hasBulkActions())
|
||||
<x-livewire-tables::table.td.plain />
|
||||
@endif
|
||||
|
||||
@if ($this->collapsingColumnsAreEnabled() && $this->hasCollapsedColumns())
|
||||
<x-livewire-tables::table.td.row-contents rowIndex="-1" :hidden="true" />
|
||||
@endif
|
||||
|
||||
@foreach($this->getColumns() as $colIndex => $column)
|
||||
@continue($column->isHidden())
|
||||
@continue($this->columnSelectIsEnabled() && ! $this->columnSelectIsEnabledForColumn($column))
|
||||
@continue($this->currentlyReorderingIsDisabled() && $column->isReorderColumn() && $this->hideReorderColumnUnlessReorderingIsEnabled())
|
||||
|
||||
<x-livewire-tables::table.td.plain :column="$column" :customAttributes="$this->getSecondaryHeaderTdAttributes($column, $rows, $colIndex)">
|
||||
{{ $column->getSecondaryHeaderContents($rows) }}
|
||||
</x-livewire-tables::table.td.plain>
|
||||
@endforeach
|
||||
</x-livewire-tables::table.tr.plain>
|
||||
Reference in New Issue
Block a user