Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 0093d12

Browse files
committed
Centralise form.
1 parent b030675 commit 0093d12

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

resources/views/manage/users/index.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
'name' => __('table.name'),
1616
'email' => __('table.email'),
1717
'roles_to_string' => __('table.role'),
18+
'roles' => __('table.role'),
1819
'created_at' => __('table.created_at'),
1920
'updated_at' => __('table.updated_at')
2021
],
@@ -33,7 +34,7 @@
3334
{{ __('User Management') }}
3435
<div class="float-right">
3536
@include('components.modals.button', [
36-
'id' => 'create-user-modal',
37+
'modal_btn_classes' => 'create-action-btn',
3738
'label' => __('New User'),
3839
'icon' => 'fa fa-plus'
3940
])

resources/views/manage/users/partials/forms/create.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
])
1717
@include('components.forms.select-multiple', [
1818
'input_label' => 'Role',
19+
'name' => 'roles',
1920
'options' => roles()->where('guard_name', 'web')->pluck('name', 'id'),
2021
])

resources/views/manage/users/partials/modals/form.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
])
66
@slot('modal_body')
77
{{ html()->form('POST', '#')->id('user-form')->open() }}
8+
@method('POST')
89
@include('manage.users.partials.forms.create')
910
{{ html()->form()->close() }}
1011
@endslot

0 commit comments

Comments
 (0)