From e26abb8684acdb81e247f3a095c6cdabca386799 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 27 Jan 2025 11:07:19 -0800 Subject: [PATCH 1/3] Replace Form::hidden with @csrf --- resources/views/settings/backups.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/settings/backups.blade.php b/resources/views/settings/backups.blade.php index 6313a6e404ee..a5d06738bfde 100644 --- a/resources/views/settings/backups.blade.php +++ b/resources/views/settings/backups.blade.php @@ -12,7 +12,7 @@
- {{ Form::hidden('_token', csrf_token()) }} + @csrf
From ef6d747b376b4983ea05fefa1cf97d91d84aa231 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 27 Jan 2025 11:15:09 -0800 Subject: [PATCH 2/3] Convert some Form:hidden in labels view --- resources/views/settings/labels.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/settings/labels.blade.php b/resources/views/settings/labels.blade.php index fa8c5dc858b2..0516dcedcde4 100644 --- a/resources/views/settings/labels.blade.php +++ b/resources/views/settings/labels.blade.php @@ -308,10 +308,10 @@ class="table table-striped snipe-table" @else - {{ Form::hidden('label2_template', old('label2_template', $setting->label2_template)) }} - {{ Form::hidden('label2_title', old('label2_title', $setting->label2_title)) }} - {{ Form::hidden('label2_asset_logo', old('label2_asset_logo', $setting->label2_asset_logo)) }} - {{ Form::hidden('label2_fields', old('label2_fields', $setting->label2_fields)) }} + + + + @endif @if ($setting->label2_enable && ($setting->label2_template != 'DefaultLabel')) From 00cdb13803d47a6ade55985455e6c6bb2cd9402a Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 27 Jan 2025 11:23:01 -0800 Subject: [PATCH 3/3] Convert remaining Form:hidden in labels view --- resources/views/settings/labels.blade.php | 34 +++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/resources/views/settings/labels.blade.php b/resources/views/settings/labels.blade.php index 0516dcedcde4..28967e7edae6 100644 --- a/resources/views/settings/labels.blade.php +++ b/resources/views/settings/labels.blade.php @@ -316,23 +316,23 @@ class="table table-striped snipe-table" @if ($setting->label2_enable && ($setting->label2_template != 'DefaultLabel')) - {{ Form::hidden('labels_per_page', old('labels_per_page', $setting->labels_per_page)) }} - {{ Form::hidden('labels_fontsize', old('labels_fontsize', $setting->labels_fontsize)) }} - {{ Form::hidden('labels_width', old('labels_width', $setting->labels_width)) }} - {{ Form::hidden('labels_height', old('labels_height', $setting->labels_height)) }} - {{ Form::hidden('labels_display_sgutter', old('labels_display_sgutter', $setting->labels_display_sgutter)) }} - {{ Form::hidden('labels_display_bgutter', old('labels_display_bgutter', $setting->labels_display_bgutter)) }} - {{ Form::hidden('labels_pmargin_top', old('labels_pmargin_top', $setting->labels_pmargin_top)) }} - {{ Form::hidden('labels_pmargin_bottom', old('labels_pmargin_bottom', $setting->labels_pmargin_bottom)) }} - {{ Form::hidden('labels_pmargin_left', old('labels_pmargin_left', $setting->labels_pmargin_left)) }} - {{ Form::hidden('labels_pmargin_right', old('labels_pmargin_right', $setting->labels_pmargin_right)) }} - {{ Form::hidden('labels_pagewidth', old('labels_pagewidth', $setting->labels_pagewidth)) }} - {{ Form::hidden('labels_pageheight', old('labels_pageheight', $setting->labels_pageheight)) }} - {{ Form::hidden('labels_display_name', old('labels_display_name', $setting->labels_display_name)) }} - {{ Form::hidden('labels_display_serial', old('labels_display_serial', $setting->labels_display_serial)) }} - {{ Form::hidden('labels_display_tag', old('labels_display_tag', $setting->labels_display_tag)) }} - {{ Form::hidden('labels_display_model', old('labels_display_model', $setting->labels_display_model)) }} - {{ Form::hidden('labels_display_company_name', old('labels_display_company_name', $setting->labels_display_company_name)) }} + + + + + + + + + + + + + + + + + @else