I'm getting all roles and want to pre check current roles, and allow new roles to be checked.
Currently I cannot select new roles via checkbox. There populated with current roles but that is it.
<div style="display: " class="form-group">
<label class="col-lg-2 control-label"></label>
<div class="col-lg-3">
@if (count($roles) > 0)
@foreach($roles as $role)
<input type="checkbox" value="" name="assignees_roles[]" id="role-"
/>
<label for="role_">{!! $role->name !!}</label>
<a href="#" data-role="role_" class="show-permissions small">
@endforeach
@else
No Roles to set
@endif
</div>
</div>
Aucun commentaire:
Enregistrer un commentaire