Show email/phone options just to agents.
This commit is contained in:
parent
79bfde2fab
commit
8e5d0cee09
2 changed files with 8 additions and 2 deletions
|
@ -115,7 +115,11 @@ class Index extends App.Controller
|
||||||
{ name: 'ticket_state_id', display: 'State', tag: 'select', multiple: false, null: false, filter: @edit_form, relation: 'TicketState', default: defaults['ticket_state_id'], translate: true, class: 'medium' },
|
{ name: 'ticket_state_id', display: 'State', tag: 'select', multiple: false, null: false, filter: @edit_form, relation: 'TicketState', default: defaults['ticket_state_id'], translate: true, class: 'medium' },
|
||||||
{ name: 'ticket_priority_id', display: 'Priority', tag: 'select', multiple: false, null: false, filter: @edit_form, relation: 'TicketPriority', default: defaults['ticket_priority_id'], translate: true, class: 'medium' },
|
{ name: 'ticket_priority_id', display: 'Priority', tag: 'select', multiple: false, null: false, filter: @edit_form, relation: 'TicketPriority', default: defaults['ticket_priority_id'], translate: true, class: 'medium' },
|
||||||
]
|
]
|
||||||
@html App.view('agent_ticket_create')( head: 'New Ticket' )
|
@html App.view('agent_ticket_create')(
|
||||||
|
head: 'New Ticket'
|
||||||
|
agent: @isRole('Agent')
|
||||||
|
admin: @isRole('Admin')
|
||||||
|
)
|
||||||
|
|
||||||
new App.ControllerForm(
|
new App.ControllerForm(
|
||||||
el: @el.find('#form_create')
|
el: @el.find('#form_create')
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<h1 class="pull-left"><%- @T( 'New Ticket' ) %> <small></small></h1>
|
<h1 class="pull-left"><%- @T( 'New Ticket' ) %> <% if @admin: %><small><a href="#" data-type="settings" class="icon-edit"></a></small><% end %></h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
|
<% if @agent: %>
|
||||||
<div class="btn-group pull-right" data-toggle="buttons-radio">
|
<div class="btn-group pull-right" data-toggle="buttons-radio">
|
||||||
<button type="button" class="btn article-type" data-type="phone"><i class="icon-headphones"></i></button>
|
<button type="button" class="btn article-type" data-type="phone"><i class="icon-headphones"></i></button>
|
||||||
<button type="button" class="btn article-type" data-type="email"><i class="icon-envelope"></i></button>
|
<button type="button" class="btn article-type" data-type="email"><i class="icon-envelope"></i></button>
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue