Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Dec 13, 2023
1 parent 7b8d9a9 commit 7f97389
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 130 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"laravel/laravel": "^10.16",
"laravel/pint": "^1.6",
"mockery/mockery": "^1.4.4",
"nunomaduro/larastan": "^2.1.6",
"larastan/larastan": "^2.7.0",
"phpunit/phpunit": "^10.2.5"
},
"minimum-stability": "dev",
Expand Down
237 changes: 118 additions & 119 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 15 additions & 10 deletions resources/views/table/actions.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,21 @@ class="btn btn--primary btn--sm"
</button>
</div>
<form class="data-table-alert__column" autocomplete="off">
<select
class="form-control form-control--sm"
aria-label="{{ __('Actions') }}"
x-on:change="$dispatch('open-'+$event.target.value)"
>
<option value="">--- {{ __('Select Action') }} ---</option>
@foreach($actions as $action)
<option value="{{ $action['modalKey'] }}">{{ $action['name'] }}</option>
@endforeach
</select>
<div class="form-group--stacked">
<select x-ref="actions" class="form-control form-control--sm" aria-label="{{ __('Actions') }}">
<option value="" disabled selected>{{ __('Select Action') }}</option>
@foreach($actions as $action)
<option value="{{ $action['modalKey'] }}">{{ $action['name'] }}</option>
@endforeach
</select>
<button
type="button"
class="btn btn--primary btn--sm"
x-on:click="$dispatch('open-'+$refs.actions.value)"
>
{{ __('Run') }}
</button>
</div>
@foreach($actions as $action)
@include($action['template'], $action)
@endforeach
Expand Down

1 comment on commit 7f97389

@szepeviktor
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.