summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/new.html.haml
blob: 54429107cc6fce27129df9c3c0a0177a50d7aebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

//%h2.first= t :new_ticket

= render 'tickets/table-nav'

= simple_form_for @ticket, :validate => true, :html => {:class => 'form-horizontal'} do |f|
  = f.input :title
  - if user
    = f.input :email, input_html: {value: user.email_address}
    = f.input :regarding_user, input_html: {value: user.login}
  - else
    = f.input :email
    = f.input :regarding_user
  = render :partial => 'new_comment', :locals => {:f => f}
  .form-actions
    = f.button :submit, :class => 'btn-primary'
    = link_to t(:cancel), tickets_path, :class => :btn