Revert changing buttons in 49fd9b419a

This commit is contained in:
Deon George 2025-03-13 21:20:57 +11:00
parent 7debd9ff2b
commit b260912e01
2 changed files with 3 additions and 3 deletions

View File

@ -220,7 +220,7 @@
<!-- All other attributes -->
@default
@php($clone=TRUE)
<button @class(['btn','btn-sm','btn-outline-primary','mt-3','addable','d-none'=>(! $new)]) id="{{ $o->name }}-addnew"><i class="fas fa-fw fa-plus"></i> @lang('Add Value')</button>
<span @class(['btn','btn-sm','btn-outline-primary','mt-3','addable','d-none'=>(! $new)]) id="{{ $o->name }}-addnew"><i class="fas fa-fw fa-plus"></i> @lang('Add Value')</span>
@section('page-scripts')
@if($clone && $edit && $o->can_addvalues)

View File

@ -178,8 +178,8 @@
})
$('.row.d-none').removeClass('d-none');
$('button.addable.d-none').removeClass('d-none');
$('button.deletable.d-none').removeClass('d-none');
$('span.addable.d-none').removeClass('d-none');
$('span.deletable.d-none').removeClass('d-none');
@if($o->getMissingAttributes()->count())
$('#newattr-select.d-none').removeClass('d-none');