diff --git a/app/Http/Livewire/CategoryEditForm.php b/app/Http/Livewire/CategoryEditForm.php new file mode 100644 index 0000000000..de5d0e5522 --- /dev/null +++ b/app/Http/Livewire/CategoryEditForm.php @@ -0,0 +1,46 @@ + - - - -
- -
- {{ Form::textarea('eula_text', old('eula_text', $item->eula_text), array('class' => 'form-control', 'aria-label'=>'eula_text')) }} -

{!! trans('admin/categories/general.eula_text_help') !!}

-

{!! trans('admin/settings/general.eula_markdown') !!}

- - {!! $errors->first('eula_text', '') !!} -
-
- - -
-
- @if ($snipeSettings->default_eula_text!='') - - @else - - @endif -
-
- - - -
-
- -
-
- - - -
-
- -
- - -
-
-
+ @include ('partials.forms.edit.image-upload', ['image_path' => app('categories_upload_path')]) @@ -114,51 +65,53 @@ @stop @section('moar_scripts') - +{{-- @if (! old('checkin_email', $item->checkin_email))--}} +{{-- handleEulaChange();--}} +{{-- @endif--}} +{{-- });--}} +{{-- --}} @stop diff --git a/resources/views/livewire/category-edit-form.blade.php b/resources/views/livewire/category-edit-form.blade.php new file mode 100644 index 0000000000..2116f2f615 --- /dev/null +++ b/resources/views/livewire/category-edit-form.blade.php @@ -0,0 +1,55 @@ +
+ +
+ +
+ {{ Form::textarea('eula_text', null, array('wire:model.lazy' => 'eulaText', 'class' => 'form-control', 'aria-label'=>'eula_text')) }} +

{!! trans('admin/categories/general.eula_text_help') !!}

+

{!! trans('admin/settings/general.eula_markdown') !!}

+ {!! $errors->first('eula_text', '') !!} +
+
+ + +
+
+ @if ($defaultEulaText!='') + + @else + + @endif +
+
+ + +
+
+ +
+
+ + +
+
+ + @if ($this->displayEmailMessage) +
+ + {{ $this->emailMessage }} +
+ @endif +
+
+