Skip to content

Commit

Permalink
update: autofill certain fields in similar 'add request' button
Browse files Browse the repository at this point in the history
  • Loading branch information
Roardom committed Oct 20, 2024
1 parent dd033ec commit 9131ee6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion resources/views/livewire/similar-torrent.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,16 @@ class="form__checkbox"
</div>
<div class="panel__action">
<a
href="{{ route('requests.create') }}"
href="{{
route('requests.create', [
'category_id' => $torrents->first()?->category_id ?? '',
'title' => rawurlencode(($work?->title ?? '') . ' ' . substr($work->release_date ?? '', 0, 4) ?? ''),
'imdb' => $work?->tmdb ?? '',
'tmdb' => $tmdbId ?? '',
'tvdb' => $work->tvdb ?? '',
'igdb' => $igdb ?? '',
])
}}"
class="form__button form__button--text"
>
{{ __('request.add-request') }}
Expand Down

0 comments on commit 9131ee6

Please sign in to comment.