2017-04-11 18:31:56 +01:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-header" role="tab" id="heading-{{ $key_id }}">
|
|
|
|
<h5 class="mb-0">
|
2017-03-21 21:48:55 +00:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#{{ $parent_id }}" href="#collapse-{{ $key_id }}" aria-expanded="true" aria-controls="collapse-{{ $key_id }}">{{ $title }}</a>
|
2017-04-11 18:31:56 +01:00
|
|
|
</h5>
|
2017-03-21 21:48:55 +00:00
|
|
|
</div>
|
|
|
|
<div id="collapse-{{ $key_id }}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-{{ $key_id }}">
|
2017-04-11 18:31:56 +01:00
|
|
|
<div class="card-block">
|
2017-03-21 21:48:55 +00:00
|
|
|
<p style="margin-bottom: 20px;"><a class="select-all" href="#">Select All</a> · <a class="select-none" href="">Select None</a></p>
|
|
|
|
|
2017-04-14 10:23:47 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<h5>Album Permissions</h5>
|
|
|
|
|
|
|
|
@php ($permission = Theme::getPermission($all_permissions, 'album', 'list'))
|
|
|
|
<div class="checkbox">
|
|
|
|
<label for="permission|{{ $key_id }}|{{ $permission->id }}">
|
|
|
|
<input id="permission|{{ $key_id }}|{{ $permission->id }}" name="permissions[{{ $object_id }}][]" value="{{ $permission->id }}" type="checkbox"{{ call_user_func($callback, $callback_object, $permission) ? ' checked="checked"' : '' }} /> {{ trans(sprintf('permissions.%s.%s', $permission->section, $permission->description)) }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-03-21 21:48:55 +00:00
|
|
|
@foreach ($all_permissions as $permission)
|
2017-03-21 22:18:29 +00:00
|
|
|
@if ($object_id == 'anonymous' && $permission->section == 'album' && $permission->description != 'list' && $permission->description != 'view')
|
|
|
|
@continue
|
|
|
|
@endif
|
2017-04-14 10:23:47 +01:00
|
|
|
|
2017-03-21 21:48:55 +00:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|