Skip to content

Commit

Permalink
Consider itemLabel better in browser and files form fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ifox committed Mar 2, 2020
1 parent dc0c504 commit 57e4d9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion views/partials/form/_browser.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
$endpoint = $endpoint ?? (!empty($endpoints) ? null : moduleRoute($moduleName, $routePrefix ?? null, 'browser', $params ?? [], false));
$max = $max ?? 1;
$note = $note ?? 'Add' . ($max > 1 ? " up to $max ". strtolower($label) : ' one ' . Str::singular(strtolower($label)));
$itemLabel = $itemLabel ?? strtolower($label);
$note = $note ?? 'Add' . ($max > 1 ? " up to $max ". $itemLabel : ' one ' . Str::singular($itemLabel));
$sortable = $sortable ?? true;
$wide = $wide ?? false;
@endphp
Expand Down
2 changes: 1 addition & 1 deletion views/partials/form/_files.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@php
$max = $max ?? 1;
$note = $note ?? 'Add' . ($max > 1 ? " up to $max files" : ' one file');
$itemLabel = $itemLabel ?? strtolower($label);
$note = $note ?? 'Add' . ($max > 1 ? " up to $max $itemLabel" : ' one ' . Str::singular($itemLabel));
@endphp

<a17-locale
Expand Down

0 comments on commit 57e4d9d

Please sign in to comment.