Skip to content

Commit 895c043

Browse files
committed
Add new item label to repeatable field
1 parent 987e7fe commit 895c043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/views/crud/fields/repeatable.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</div>
4141

4242
</div>
43-
<button type="button" class="btn btn-outline-primary btn-sm ml-1 add-repeatable-element-button">+ {{ trans('backpack::crud.new_item') }}</button>
43+
<button type="button" class="btn btn-outline-primary btn-sm ml-1 add-repeatable-element-button">+ {{ $field['new_item_label'] ?? trans('backpack::crud.new_item') }}</button>
4444

4545
@include('crud::fields.inc.wrapper_end')
4646

0 commit comments

Comments
 (0)