2016-02-27 20:24:42 +01:00
|
|
|
{!! csrf_field() !!}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
2016-03-05 19:09:21 +01:00
|
|
|
<h3>Role Details</h3>
|
2016-02-27 20:24:42 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="name">Role Name</label>
|
|
|
|
@include('form/text', ['name' => 'display_name'])
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="name">Short Role Description</label>
|
|
|
|
@include('form/text', ['name' => 'description'])
|
|
|
|
</div>
|
2016-03-05 19:09:21 +01:00
|
|
|
<h3>System Permissions</h3>
|
2016-02-28 11:49:41 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label> @include('settings/roles/checkbox', ['permission' => 'users-manage']) Manage users</label>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
2016-03-05 13:09:09 +01:00
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'user-roles-manage']) Manage user roles</label>
|
2016-02-28 11:49:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr class="even">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
2016-03-30 21:15:44 +02:00
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'restrictions-manage-all']) Manage all Book, Chapter & Page permissions</label>
|
2016-02-28 11:49:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
2016-03-30 21:15:44 +02:00
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'restrictions-manage-own']) Manage permissions on own Book, Chapter & Pages</label>
|
2016-02-28 11:49:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr class="even">
|
2016-02-27 20:24:42 +01:00
|
|
|
<div class="form-group">
|
2016-02-28 11:49:41 +01:00
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'settings-manage']) Manage app settings</label>
|
2016-02-27 20:24:42 +01:00
|
|
|
</div>
|
2016-03-05 19:09:21 +01:00
|
|
|
<hr class="even">
|
2016-02-28 11:49:41 +01:00
|
|
|
|
2016-02-27 20:24:42 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
2016-03-05 19:09:21 +01:00
|
|
|
|
|
|
|
<h3>Asset Permissions</h3>
|
|
|
|
<p>
|
|
|
|
These permissions control default access to the assets within the system. <br>
|
2016-03-30 21:15:44 +02:00
|
|
|
Permissions on Books, Chapters and Pages will override these permissions.
|
2016-03-05 19:09:21 +01:00
|
|
|
</p>
|
2016-02-27 20:24:42 +01:00
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th>Create</th>
|
|
|
|
<th>Edit</th>
|
|
|
|
<th>Delete</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Books</td>
|
2016-02-27 21:52:46 +01:00
|
|
|
<td>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'book-create-all']) All</label>
|
|
|
|
</td>
|
2016-02-27 20:24:42 +01:00
|
|
|
<td>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'book-update-own']) Own</label>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'book-update-all']) All</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'book-delete-own']) Own</label>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'book-delete-all']) All</label>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Chapters</td>
|
2016-02-27 21:52:46 +01:00
|
|
|
<td>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-create-own']) Own</label>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-create-all']) All</label>
|
|
|
|
</td>
|
2016-02-27 20:24:42 +01:00
|
|
|
<td>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-update-own']) Own</label>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-update-all']) All</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-delete-own']) Own</label>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-delete-all']) All</label>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Pages</td>
|
2016-02-27 21:52:46 +01:00
|
|
|
<td>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'page-create-own']) Own</label>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'page-create-all']) All</label>
|
|
|
|
</td>
|
2016-02-27 20:24:42 +01:00
|
|
|
<td>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'page-update-own']) Own</label>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'page-update-all']) All</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'page-delete-own']) Own</label>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'page-delete-all']) All</label>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Images</td>
|
|
|
|
<td>@include('settings/roles/checkbox', ['permission' => 'image-create-all'])</td>
|
|
|
|
<td>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'image-update-own']) Own</label>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'image-update-all']) All</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'image-delete-own']) Own</label>
|
|
|
|
<label>@include('settings/roles/checkbox', ['permission' => 'image-delete-all']) All</label>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2016-03-05 19:09:21 +01:00
|
|
|
|
|
|
|
<a href="/settings/roles" class="button muted">Cancel</a>
|
2016-02-27 20:24:42 +01:00
|
|
|
<button type="submit" class="button pos">Save Role</button>
|