Improved history view.
This commit is contained in:
parent
e577daaae8
commit
0186c8f70d
1 changed files with 1 additions and 15 deletions
|
@ -38,23 +38,9 @@ class App.TicketHistory extends App.ControllerModal
|
|||
|
||||
render: ->
|
||||
|
||||
# create table/overview
|
||||
table = @table(
|
||||
overview_extended: [
|
||||
{ name: 'history_type', },
|
||||
{ name: 'history_attribute', },
|
||||
{ name: 'value_from', },
|
||||
{ name: 'value_to', },
|
||||
{ name: 'created_by', class: 'user-data', data: { id: 1 } },
|
||||
{ name: 'created_at', callback: @humanTime },
|
||||
],
|
||||
model: App.History,
|
||||
@html App.view('agent_ticket_history')(
|
||||
objects: App.History.all(),
|
||||
)
|
||||
|
||||
@html App.view('agent_ticket_history')()
|
||||
@el.find('.table_history').append(table)
|
||||
|
||||
@modalShow()
|
||||
|
||||
@userPopups()
|
||||
|
|
Loading…
Reference in a new issue