A free open source IT asset/license management system
Fixed merge issue in view.blade.php and added translatable string
Wächtler, Yannick5a2f8788a939
diff --git a/resources/lang/en/button.php b/resources/lang/en/button.phpindex fe659171f0..438dac3cac 100644--- a/resources/lang/en/button.php+++ b/resources/lang/en/button.php@@ -20,4 +20,5 @@ return ['bulk_actions' => 'Bulk Actions','add_maintenance' => 'Add Maintenance','append' => 'Append',+ 'remove' => 'Remove',];diff --git a/resources/views/custom_fields/fieldsets/view.blade.php b/resources/views/custom_fields/fieldsets/view.blade.phpindex ef58e86368..f4c5f1b682 100644--- a/resources/views/custom_fields/fieldsets/view.blade.php+++ b/resources/views/custom_fields/fieldsets/view.blade.php@@ -57,6 +57,7 @@<td>{{$field->element}}</td><td>{{ $field->field_encrypted=='1' ? trans('general.yes') : trans('general.no') }}</td><td>+@if ($field->pivot->required)<form method="post" action="{{ route('fields.optional', [$custom_fieldset->id, $field->id]) }}">@csrf@@ -70,11 +71,13 @@<button type="submit" class="btn btn-link"><i class="fa fa-times text-danger" aria-hidden="true"></i></button></form>@endif+</td><td>@can('update', $custom_fieldset)- <a href="{{ route('fields.disassociate', [$field, $custom_fieldset->id]) }}" class="btn btn-sm btn-danger">{{ trans('button.remove') }}</a>- @endcan+ <form method="post" action="{{ route('fields.disassociate', [$field, $custom_fieldset->id]) }}">+ @csrf+ <button type="submit" class="btn btn-sm btn-danger">{{ trans('button.remove') }}</button> @endcan</td></tr>@endforeach