Skip to content

Commit

Permalink
Add new item label to repeatable field
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricewijnia committed Jul 7, 2020
1 parent 987e7fe commit 895c043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/views/crud/fields/repeatable.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</div>

</div>
<button type="button" class="btn btn-outline-primary btn-sm ml-1 add-repeatable-element-button">+ {{ trans('backpack::crud.new_item') }}</button>
<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>

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

Expand Down

0 comments on commit 895c043

Please # to comment.