Added edit link on shift type page
This commit is contained in:
parent
b62d4b4dce
commit
8140ebd1cc
|
@ -15,6 +15,8 @@
|
||||||
|
|
||||||
{% if is_index|default(false) %}
|
{% if is_index|default(false) %}
|
||||||
{{ m.button(m.icon('plus-lg'), url('/admin/shifttypes/edit'), 'secondary') }}
|
{{ m.button(m.icon('plus-lg'), url('/admin/shifttypes/edit'), 'secondary') }}
|
||||||
|
{% elseif has_permission_to('shifttypes') and is_view|default(false) %}
|
||||||
|
{{ m.button(m.icon('pencil'), url('admin/shifttypes/edit/' ~ shifttype.id), null, 'sm', __('form.edit')) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ class ShiftTypesController extends BaseController
|
||||||
|
|
||||||
return $this->response->withView(
|
return $this->response->withView(
|
||||||
'admin/shifttypes/view',
|
'admin/shifttypes/view',
|
||||||
['shifttype' => $shiftType]
|
['shifttype' => $shiftType, 'is_view' => true]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue