Added tab actions to tab header.
This commit is contained in:
parent
71dd5bb406
commit
201638724a
3 changed files with 13 additions and 14 deletions
|
@ -461,12 +461,12 @@ class ContentSidebarTabsRight extends App.ControllerContent
|
|||
callback: (el) ->
|
||||
el.html('some ticket')
|
||||
actions: [
|
||||
name: 'Change Customer'
|
||||
class: 'glyphicon glyphicon-transfer'
|
||||
title: 'Change Customer'
|
||||
name: 'change-customer'
|
||||
callback: changeCustomerTicket
|
||||
,
|
||||
name: 'Edit Customer'
|
||||
class: 'glyphicon glyphicon-edit'
|
||||
title: 'Edit Customer'
|
||||
name: 'edit-customer'
|
||||
callback: editCustomerTicket
|
||||
]
|
||||
,
|
||||
|
@ -476,12 +476,12 @@ class ContentSidebarTabsRight extends App.ControllerContent
|
|||
callback: (el) ->
|
||||
el.html('some customer')
|
||||
actions: [
|
||||
name: 'Change Customer'
|
||||
class: 'glyphicon glyphicon-transfer'
|
||||
title: 'Change Customer'
|
||||
name: 'change-customer'
|
||||
callback: changeCustomerCustomer
|
||||
,
|
||||
name: 'Edit Customer'
|
||||
class: 'glyphicon glyphicon-edit'
|
||||
title: 'Edit Customer'
|
||||
name: 'edit-customer'
|
||||
callback: editCustomerCustomer
|
||||
]
|
||||
,
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<div class="dropdown dropdown--actions">
|
||||
<div class="dropdown-toggle horizontal center" id="userAction" data-toggle="dropdown">
|
||||
<% if @type isnt 'small': %>
|
||||
<div class="light cog icon"></div>
|
||||
<% if @type isnt 'small': %><label><%- @T('Action') %></label><% end %>
|
||||
<label><%- @T('Action') %></label>
|
||||
<% end %>
|
||||
<span class="select-arrow icon"></span>
|
||||
</div>
|
||||
<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="userAction">
|
||||
|
|
|
@ -1,13 +1,10 @@
|
|||
<% for item in @items: %>
|
||||
<div class="sidebar bottom-form-shadow flex hide" data-tab="<%= item.name %>">
|
||||
<div class="horizontal center">
|
||||
<h2 class="flex u-textTruncate"><%- @T( item.head ) %></h2>
|
||||
<div class="js-actions"></div>
|
||||
<!--
|
||||
<h2 class="flex u-textTruncate"><%- @T( item.head ) %><div class="js-actions"></div></h2>
|
||||
<div class="tabsSidebar-close centered u-clickable">
|
||||
<div class="arrow-right icon"></div>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
|
|
Loading…
Reference in a new issue