Skip to content

Commit

Permalink
Fixed merge issue in view.blade.php and added translatable string
Browse files Browse the repository at this point in the history
  • Loading branch information
nuraeil committed Nov 16, 2021
1 parent f2c3e51 commit 5a2f878
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions resources/lang/en/button.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
'bulk_actions' => 'Bulk Actions',
'add_maintenance' => 'Add Maintenance',
'append' => 'Append',
'remove' => 'Remove',
];
7 changes: 5 additions & 2 deletions resources/views/custom_fields/fieldsets/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5a2f878

Please sign in to comment.