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