Added edit customer action.
This commit is contained in:
parent
bb8f5958e6
commit
6f05bf7c61
1 changed files with 11 additions and 2 deletions
|
@ -431,7 +431,6 @@ class Sidebar extends App.Controller
|
||||||
|
|
||||||
render: ->
|
render: ->
|
||||||
|
|
||||||
|
|
||||||
items = []
|
items = []
|
||||||
if @params['customer_id']
|
if @params['customer_id']
|
||||||
|
|
||||||
|
@ -450,6 +449,16 @@ class Sidebar extends App.Controller
|
||||||
callback: callback
|
callback: callback
|
||||||
)
|
)
|
||||||
|
|
||||||
|
editCustomer = (e, el) =>
|
||||||
|
new App.ControllerGenericEdit(
|
||||||
|
id: @params.customer_id
|
||||||
|
genericObject: 'User'
|
||||||
|
screen: 'edit'
|
||||||
|
pageData:
|
||||||
|
title: 'Users'
|
||||||
|
object: 'User'
|
||||||
|
objects: 'Users'
|
||||||
|
)
|
||||||
items.push {
|
items.push {
|
||||||
head: 'Customer'
|
head: 'Customer'
|
||||||
name: 'customer'
|
name: 'customer'
|
||||||
|
@ -458,7 +467,7 @@ class Sidebar extends App.Controller
|
||||||
{
|
{
|
||||||
name: 'Edit Customer'
|
name: 'Edit Customer'
|
||||||
class: 'glyphicon glyphicon-edit'
|
class: 'glyphicon glyphicon-edit'
|
||||||
#callback: editCustomer
|
callback: editCustomer
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
callback: showCustomer
|
callback: showCustomer
|
||||||
|
|
Loading…
Reference in a new issue