summaryrefslogtreecommitdiff
path: root/engines/support/app/views/tickets/new.html.haml
blob: d0b0f89f2351e3a7aca47b1593a5344c1175d186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
= render 'tickets/tabs'

= simple_form_for @ticket, :validate => true, :html => {:class => 'form-horizontal'} do |f|
  = hidden_ticket_fields
  = f.input :subject
  = f.input :email
  = f.input :regarding_user
  = f.simple_fields_for :comments, @comment do |c|
    = c.input :body, :as => :text, :input_html => {:class => "full-width", :rows=> 5}
    - if admin?
      = c.input :private, :as => :boolean, :label => false, :inline_label => true
  = f.button :wrapped, cancel: (logged_in? ? auto_tickets_path : home_path)