diff --git a/resources/js/attributes.js b/resources/js/attributes.js index eac2aa8693..5fa9107431 100644 --- a/resources/js/attributes.js +++ b/resources/js/attributes.js @@ -1,6 +1,4 @@ let maxFields = false; -const maxFieldAlert = document.querySelector('.alert-too-many-fields'); - let liveEditURL, liveEditModal; const init = () => { @@ -15,22 +13,6 @@ const init = () => { } }; -const initAddAttribute = () => { - if (maxFields !== false) { - // Todo: migrate to vue and vanila js. - // This is also wrong, as it looks for all form inputs (search, logout, bulk) instead of the current form) - const fieldCount = $('form :input').length + 4; - //console.log('checking', fieldCount, 'vs', maxFields); - if (fieldCount > maxFields) { - maxFieldAlert.classList.remove('hidden'); - return; - } else { - maxFieldAlert.classList.add('hidden'); - } - } -}; - - const initLiveAttributes = () => { const config = document.querySelector('[name="live-attribute-config"]'); if (!config) { diff --git a/resources/views/cruds/forms/attributes/_buttons.blade.php b/resources/views/cruds/forms/attributes/_buttons.blade.php index b75e0d2442..cdbee3b5e8 100644 --- a/resources/views/cruds/forms/attributes/_buttons.blade.php +++ b/resources/views/cruds/forms/attributes/_buttons.blade.php @@ -48,12 +48,6 @@ {{ __('entities/attributes.actions.remove_all') }} - - - {!! __('entities/attributes.errors.too_many', [ - 'max' => number_format(ini_get('max_input_vars')) - ]) !!} - diff --git a/resources/views/entities/pages/attributes/edit.blade.php b/resources/views/entities/pages/attributes/edit.blade.php index 78f2cf9a03..d816643490 100644 --- a/resources/views/entities/pages/attributes/edit.blade.php +++ b/resources/views/entities/pages/attributes/edit.blade.php @@ -58,13 +58,6 @@ class="entity-form flex flex-col gap-5" - - {!! __('entities/attributes.errors.too_many', [ - 'max' => number_format(ini_get('max_input_vars')) - ]) !!} - - - @if (auth()->user()->isAdmin() && $entity->is_attributes_private) @php $role = \App\Facades\CampaignCache::adminRole();