Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
d22a026e
Unverified
Commit
d22a026e
authored
Oct 11, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Empty out the role create - edit - index views
parent
343e346c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
239 deletions
+1
-239
create.blade.php
Modules/User/Resources/views/admin/roles/create.blade.php
+0
-60
edit.blade.php
Modules/User/Resources/views/admin/roles/edit.blade.php
+1
-79
index.blade.php
Modules/User/Resources/views/admin/roles/index.blade.php
+0
-100
No files found.
Modules/User/Resources/views/admin/roles/create.blade.php
View file @
d22a026e
@
extends
(
'layouts.master'
)
@
extends
(
'layouts.master'
)
@
section
(
'content-header'
)
@
section
(
'content-header'
)
<
h1
>
New
Role
</
h1
>
<
ol
class
="
breadcrumb
">
<li><a href="
{{
route
(
'dashboard.index'
)
}}
"><i class="
fa
fa
-
dashboard
"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li class=""><a href="
{{
route
(
'admin.user.role.index'
)
}}
">{{ trans('user::roles.breadcrumb.roles') }}</a></li>
<li class="
active
">{{ trans('user::roles.breadcrumb.new') }}</li>
</ol>
@
stop
@
stop
@
section
(
'content'
)
@
section
(
'content'
)
{!! Form::open(['route' => 'admin.user.role.store', 'method' => 'post']) !!}
<div class="
row
">
<div class="
col
-
md
-
12
">
<div class="
nav
-
tabs
-
custom
">
<ul class="
nav
nav
-
tabs
">
<li class="
active
"><a href="
#tab_1-1" data-toggle="tab">{{ trans('user::roles.tabs.data') }}</a></li>
<
li
class
=""><
a
href
=
"#tab_2-2"
data
-
toggle
=
"tab"
>
{{
trans
(
'user::roles.tabs.permissions'
)
}}
</
a
></
li
>
</
ul
>
<
div
class
="
tab
-
content
">
<div class="
tab
-
pane
active
" id="
tab_1
-
1
">
<div class="
box
-
body
">
<div class="
row
">
<div class="
col
-
sm
-
6
">
<div class="
form
-
group
{{
$errors
->
has
(
'name'
)
?
' has-error'
:
''
}}
">
{!! Form::label('name', trans('user::roles.form.name')) !!}
{!! Form::text('name', old('name'), ['class' => 'form-control', 'data-slug' => 'source', 'placeholder' => trans('user::roles.form.name')]) !!}
{!!
$errors->first
('name', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
<div class="
col
-
sm
-
6
">
<div class="
form
-
group
{{
$errors
->
has
(
'slug'
)
?
' has-error'
:
''
}}
">
{!! Form::label('slug', trans('user::roles.form.slug')) !!}
{!! Form::text('slug', old('slug'), ['class' => 'form-control slug', 'data-slug' => 'target', 'placeholder' => trans('user::roles.form.slug')]) !!}
{!!
$errors->first
('slug', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
</div>
</div>
</div>
<div class="
tab
-
pane
" id="
tab_2
-
2
">
@include('user::admin.partials.permissions-create')
</div>
<div class="
box
-
footer
">
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">{{ trans('user::button.create') }}</button>
<a class="
btn
btn
-
danger
pull
-
right
btn
-
flat
" href="
{{
route
(
'admin.user.role.index'
)}}
"><i class="
fa
fa
-
times
"></i> {{ trans('user::button.cancel') }}</a>
</div>
</div>
</div>
</div>
</div>
{!! Form::close() !!}
@
stop
@
stop
@
section
(
'footer'
)
@
section
(
'footer'
)
<
a
data
-
toggle
=
"modal"
data
-
target
=
"#keyboardShortcutsModal"
><
i
class
="
fa
fa
-
keyboard
-
o
"></i></a>
<
a
data
-
toggle
=
"modal"
data
-
target
=
"#keyboardShortcutsModal"
><
i
class
="
fa
fa
-
keyboard
-
o
"></i></a>
...
@@ -63,17 +16,4 @@
...
@@ -63,17 +16,4 @@
@stop
@stop
@push('js-stack')
@push('js-stack')
<script>
$( document ).ready(function() {
$('input[type="
checkbox
"].flat-blue, input[type="
radio
"].flat-blue').iCheck({
checkboxClass: 'icheckbox_flat-blue',
radioClass: 'iradio_flat-blue'
});
$(document).keypressAction({
actions: [
{ key: 'b', route: "
<?=
route
(
'admin.user.role.index'
)
?>
" }
]
});
});
</script>
@endpush
@endpush
Modules/User/Resources/views/admin/roles/edit.blade.php
View file @
d22a026e
@
extends
(
'layouts.master'
)
@
extends
(
'layouts.master'
)
@
section
(
'content-header'
)
@
section
(
'content-header'
)
<
h1
>
{{
trans
(
'user::roles.title.edit'
)
}}
<
small
>
{{
$role
->
name
}}
</
small
>
</
h1
>
<
ol
class
="
breadcrumb
">
<li><a href="
{{
route
(
'dashboard.index'
)
}}
"><i class="
fa
fa
-
dashboard
"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li class=""><a href="
{{
route
(
'admin.user.role.index'
)
}}
">{{ trans('user::roles.breadcrumb.roles') }}</a></li>
<li class="
active
">{{ trans('user::roles.breadcrumb.edit') }}</li>
</ol>
@
stop
@
stop
@
section
(
'content'
)
@
section
(
'content'
)
{!! Form::open(['route' => ['admin.user.role.update',
$role->id
], 'method' => 'put']) !!}
<div class="
row
">
<div class="
col
-
md
-
12
">
<div class="
nav
-
tabs
-
custom
">
<ul class="
nav
nav
-
tabs
">
<li class="
active
"><a href="
#tab_1-1" data-toggle="tab">{{ trans('user::roles.tabs.data') }}</a></li>
<
li
class
=""><
a
href
=
"#tab_2-2"
data
-
toggle
=
"tab"
>
{{
trans
(
'user::roles.tabs.permissions'
)
}}
</
a
></
li
>
<
li
class
=""><
a
href
=
"#tab_3-3"
data
-
toggle
=
"tab"
>
{{
trans
(
'user::users.title.users'
)
}}
</
a
></
li
>
</
ul
>
<
div
class
="
tab
-
content
">
<div class="
tab
-
pane
active
" id="
tab_1
-
1
">
<div class="
box
-
body
">
<div class="
row
">
<div class="
col
-
sm
-
6
">
<div class="
form
-
group
{{
$errors
->
has
(
'name'
)
?
' has-error'
:
''
}}
">
{!! Form::label('name', trans('user::roles.form.name')) !!}
{!! Form::text('name', old('name',
$role->name
), ['class' => 'form-control', 'data-slug' => 'source', 'placeholder' => trans('user::roles.form.name')]) !!}
{!!
$errors->first
('name', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
<div class="
col
-
sm
-
6
">
<div class="
form
-
group
{{
$errors
->
has
(
'slug'
)
?
' has-error'
:
''
}}
">
{!! Form::label('slug', trans('user::roles.form.slug')) !!}
{!! Form::text('slug', old('slug',
$role->slug
), ['class' => 'form-control slug', 'data-slug' => 'target', 'placeholder' => trans('user::roles.form.slug')]) !!}
{!!
$errors->first
('slug', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
</div>
</div>
</div><!-- /.tab-pane -->
<div class="
tab
-
pane
" id="
tab_2
-
2
">
@include('user::admin.partials.permissions', ['model' =>
$role
])
</div><!-- /.tab-pane -->
<div class="
tab
-
pane
" id="
tab_3
-
3
">
<div class="
box
-
body
">
<div class="
row
">
<div class="
col
-
md
-
12
">
<h3>{{ trans('user::roles.title.users-with-roles') }}</h3>
<ul>
<?php foreach (
$role->users
as
$user
): ?>
<li>
<a href="
{{
route
(
'admin.user.user.edit'
,
[
$user
->
id
])
}}
">{{
$user->present
()->fullname() }}</a>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
</div>
<div class="
box
-
footer
">
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">{{ trans('user::button.update') }}</button>
<a class="
btn
btn
-
danger
pull
-
right
btn
-
flat
" href="
{{
route
(
'admin.user.role.index'
)}}
"><i class="
fa
fa
-
times
"></i> {{ trans('user::button.cancel') }}</a>
</div>
</div><!-- /.tab-content -->
</div>
</div>
</div>
{!! Form::close() !!}
@
stop
@
stop
@
section
(
'footer'
)
@
section
(
'footer'
)
<
a
data
-
toggle
=
"modal"
data
-
target
=
"#keyboardShortcutsModal"
><
i
class
="
fa
fa
-
keyboard
-
o
"></i></a>
<
a
data
-
toggle
=
"modal"
data
-
target
=
"#keyboardShortcutsModal"
><
i
class
="
fa
fa
-
keyboard
-
o
"></i></a>
...
@@ -82,17 +17,4 @@
...
@@ -82,17 +17,4 @@
@stop
@stop
@push('js-stack')
@push('js-stack')
<script>
$( document ).ready(function() {
$(document).keypressAction({
actions: [
{ key: 'b', route: "
<?=
route
(
'admin.user.role.index'
)
?>
" }
]
});
$('input[type="checkbox"].flat-blue, input[type="radio"].flat-blue').iCheck({
checkboxClass: 'icheckbox_flat-blue',
radioClass: 'iradio_flat-blue'
});
});
</script>
@endpush
@endpush
Modules/User/Resources/views/admin/roles/index.blade.php
View file @
d22a026e
@
extends
(
'layouts.master'
)
@
extends
(
'layouts.master'
)
@
section
(
'content-header'
)
@
section
(
'content-header'
)
<h1>
{{ trans('user::roles.title.roles') }}
</h1>
<ol
class=
"breadcrumb"
>
<li><a
href=
"{{ route('dashboard.index') }}"
><i
class=
"fa fa-dashboard"
></i>
{{ trans('core::core.breadcrumb.home') }}
</a></li>
<li
class=
"active"
>
{{ trans('user::roles.breadcrumb.roles') }}
</li>
</ol>
@
stop
@
stop
@
section
(
'content'
)
@
section
(
'content'
)
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<div
class=
"row"
>
<div
class=
"btn-group pull-right"
style=
"margin: 0 15px 15px 0;"
>
<a
href=
"{{ route('admin.user.role.create') }}"
class=
"btn btn-primary btn-flat"
style=
"padding: 4px 10px;"
>
<i
class=
"fa fa-pencil"
></i>
{{ trans('user::roles.button.new-role') }}
</a>
</div>
</div>
<div
class=
"box box box-primary"
>
<div
class=
"box-header"
>
</div>
<!-- /.box-header -->
<div
class=
"box-body"
>
<table
class=
"data-table table table-bordered table-hover"
>
<thead>
<tr>
<td>
Id
</td>
<th>
{{ trans('user::roles.table.name') }}
</th>
<th>
{{ trans('user::users.table.created-at') }}
</th>
<th
data-sortable=
"false"
>
{{ trans('user::users.table.actions') }}
</th>
</tr>
</thead>
<tbody>
<?php
if
(
isset
(
$roles
))
:
?>
<?php
foreach
(
$roles
as
$role
)
:
?>
<tr>
<td>
<a
href=
"{{ route('admin.user.role.edit', [$role->id]) }}"
>
{{ $role->id }}
</a>
</td>
<td>
<a
href=
"{{ route('admin.user.role.edit', [$role->id]) }}"
>
{{ $role->name }}
</a>
</td>
<td>
<a
href=
"{{ route('admin.user.role.edit', [$role->id]) }}"
>
{{ $role->created_at }}
</a>
</td>
<td>
<div
class=
"btn-group"
>
<a
href=
"{{ route('admin.user.role.edit', [$role->id]) }}"
class=
"btn btn-default btn-flat"
><i
class=
"fa fa-pencil"
></i></a>
<button
class=
"btn btn-danger btn-flat"
data-toggle=
"modal"
data-target=
"#modal-delete-confirmation"
data-action-target=
"{{ route('admin.user.role.destroy', [$role->id]) }}"
><i
class=
"fa fa-trash"
></i></button>
</div>
</td>
</tr>
<?php
endforeach
;
?>
<?php
endif
;
?>
</tbody>
<tfoot>
<tr>
<td>
Id
</td>
<th>
{{ trans('user::roles.table.name') }}
</th>
<th>
{{ trans('user::users.table.created-at') }}
</th>
<th>
{{ trans('user::users.table.actions') }}
</th>
</tr>
</tfoot>
</table>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col (MAIN) -->
</div>
</div>
@include('core::partials.delete-modal')
@
stop
@
stop
@
push
(
'js-stack'
)
@
push
(
'js-stack'
)
<?php
$locale
=
App
::
getLocale
();
?>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
document
).
keypressAction
({
actions
:
[
{
key
:
'
c
'
,
route
:
"
<?=
route
(
'admin.user.role.create'
)
?>
"
}
]
});
});
$
(
function
()
{
$
(
'
.data-table
'
).
dataTable
({
"
paginate
"
:
true
,
"
lengthChange
"
:
true
,
"
filter
"
:
true
,
"
sort
"
:
true
,
"
info
"
:
true
,
"
autoWidth
"
:
true
,
"
order
"
:
[[
0
,
"
desc
"
]],
"
language
"
:
{
"
url
"
:
'
<?php
echo
Module
::
asset
(
"core:js/vendor/datatables/
{
$locale
}
.json"
)
?>
'
}
});
});
</script>
@
endpush
@
endpush
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment