Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2015-08-31 11:59:10 +0100
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
a5807097e2b5e894d504118847360a5778edc423
a5807097
1 parent
598fd781
Fixed incorrect role showing
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
resources/views/form/model-select.blade.php → resources/views/form/role-select.blade.php
resources/views/users/form.blade.php
resources/views/form/
model
-select.blade.php
→
resources/views/form/
role
-select.blade.php
View file @
a580709
...
...
@@ -3,7 +3,7 @@
@foreach($options as $option)
<option
value=
"{{$option->id}}"
@
if
($
errors-
>
has($name)) class="neg" @endif
@if(isset($model) || old($name)) @if(old($name)
&&
old($name) === $option->id) selected @elseif(isset($model)
&&
$model->id === $option->id) selected @endif @endif
@if(isset($model) || old($name)) @if(old($name)
&&
old($name) === $option->id) selected @elseif(isset($model)
&&
$model->
role->
id === $option->id) selected @endif @endif
>
{{ $option->$displayKey }}
</option>
...
...
resources/views/users/form.blade.php
View file @
a580709
...
...
@@ -19,7 +19,7 @@
@if($currentUser->can('user-update'))
<div
class=
"form-group"
>
<label
for=
"role"
>
User Role
</label>
@include('form
/model
-select', ['name' => 'role', 'options' => \Oxbow\Role::all(), 'displayKey' => 'display_name'])
@include('form
.role
-select', ['name' => 'role', 'options' => \Oxbow\Role::all(), 'displayKey' => 'display_name'])
</div>
@endif
...
...
Please
register
or
sign in
to post a comment