Added tab actions to tab header.

This commit is contained in:
Martin Edenhofer 2014-11-12 13:49:39 +01:00
parent 71dd5bb406
commit 201638724a
3 changed files with 13 additions and 14 deletions

View file

@ -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
]
,

View file

@ -1,7 +1,9 @@
<div class="dropdown dropdown--actions">
<div class="dropdown-toggle horizontal center" id="userAction" data-toggle="dropdown">
<div class="light cog icon"></div>
<% if @type isnt 'small': %><label><%- @T('Action') %></label><% end %>
<% if @type isnt 'small': %>
<div class="light cog icon"></div>
<label><%- @T('Action') %></label>
<% end %>
<span class="select-arrow icon"></span>
</div>
<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="userAction">

View file

@ -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>