Skip to content

Commit

Permalink
Merge pull request #3008 from mauricewijnia/add-new-item-label-to-rep…
Browse files Browse the repository at this point in the history
…eatable

[Feature] Add new item label to repeatable field
  • Loading branch information
tabacitu authored Jul 8, 2020
2 parents e5e0e76 + 895c043 commit e9c505b
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 e9c505b

Please # to comment.