first upload all files
This commit is contained in:
18
Modules/User/Resources/views/admin/roles/create.blade.php
Normal file
18
Modules/User/Resources/views/admin/roles/create.blade.php
Normal file
@@ -0,0 +1,18 @@
|
||||
@extends('admin::layout')
|
||||
|
||||
@component('admin::components.page.header')
|
||||
@slot('title', trans('admin::resource.create', ['resource' => trans('user::roles.role')]))
|
||||
|
||||
<li><a href="{{ route('admin.roles.index') }}">{{ trans('user::roles.roles') }}</a></li>
|
||||
<li class="active">{{ trans('admin::resource.create', ['resource' => trans('user::roles.role')]) }}</li>
|
||||
@endcomponent
|
||||
|
||||
@section('content')
|
||||
<form method="POST" action="{{ route('admin.roles.store') }}" class="form-horizontal" id="role-create-form" novalidate>
|
||||
{{ csrf_field() }}
|
||||
|
||||
{!! $tabs->render(compact('role')) !!}
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
@include('user::admin.roles.partials.shortcuts')
|
||||
20
Modules/User/Resources/views/admin/roles/edit.blade.php
Normal file
20
Modules/User/Resources/views/admin/roles/edit.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
@extends('admin::layout')
|
||||
|
||||
@component('admin::components.page.header')
|
||||
@slot('title', trans('admin::resource.edit', ['resource' => trans('user::roles.role')]))
|
||||
@slot('subtitle', $role->name)
|
||||
|
||||
<li><a href="{{ route('admin.roles.index') }}">{{ trans('user::roles.roles') }}</a></li>
|
||||
<li class="active">{{ trans('admin::resource.edit', ['resource' => trans('user::roles.role')]) }}</li>
|
||||
@endcomponent
|
||||
|
||||
@section('content')
|
||||
<form method="POST" action="{{ route('admin.roles.update', $role) }}" class="form-horizontal" id="role-edit-form" novalidate>
|
||||
{{ csrf_field() }}
|
||||
{{ method_field('put') }}
|
||||
|
||||
{!! $tabs->render(compact('role')) !!}
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
@include('user::admin.roles.partials.shortcuts')
|
||||
36
Modules/User/Resources/views/admin/roles/index.blade.php
Normal file
36
Modules/User/Resources/views/admin/roles/index.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
@extends('admin::layout')
|
||||
|
||||
@component('admin::components.page.header')
|
||||
@slot('title', trans('user::roles.roles'))
|
||||
|
||||
<li class="active">{{ trans('user::roles.roles') }}</li>
|
||||
@endcomponent
|
||||
|
||||
@component('admin::components.page.index_table')
|
||||
@slot('buttons', ['create'])
|
||||
@slot('resource', 'roles')
|
||||
@slot('name', trans('user::roles.role'))
|
||||
|
||||
@slot('thead')
|
||||
<tr>
|
||||
@include('admin::partials.table.select_all')
|
||||
|
||||
<th>{{ trans('admin::admin.table.id') }}</th>
|
||||
<th>{{ trans('user::roles.table.name') }}</th>
|
||||
<th data-sort>{{ trans('admin::admin.table.created') }}</th>
|
||||
</tr>
|
||||
@endslot
|
||||
@endcomponent
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
new DataTable('#roles-table .table', {
|
||||
columns: [
|
||||
{ data: 'checkbox', orderable: false, searchable: false, width: '3%' },
|
||||
{ data: 'id', width: '5%' },
|
||||
{ data: 'name', name: 'translations.name', orderable: false, defaultContent: '' },
|
||||
{ data: 'created', name: 'created_at' },
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,14 @@
|
||||
@push('shortcuts')
|
||||
<dl class="dl-horizontal">
|
||||
<dt><code>b</code></dt>
|
||||
<dd>{{ trans('user::roles.navigation.back to index') }}</dd>
|
||||
</dl>
|
||||
@endpush
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
keypressAction([
|
||||
{ key: 'b', route: "{{ route('admin.roles.index') }}" },
|
||||
]);
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,5 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
{{ Form::text('name', trans('user::attributes.roles.name'), $errors, $role, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user