summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/new.html.haml
blob: 7d3f76c1c6189db232ede4a84d85cc6f3111fef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
= render 'tickets/table-nav'

= simple_form_for @ticket, :validate => true, :html => {:class => 'form-horizontal'} do |f|
  = f.input :title, :label => t(:subject)
  - 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
  = f.simple_fields_for :comments, @comment do |c|
    = c.input :body, :label => t(:description), :as => :text, :input_html => {:class => "full-width", :rows=> 5}
    - if admin?
      = c.input :private, :as => :boolean, :label => false, :inline_label => true
  .form-actions
    = f.button :submit, :class => 'btn-primary'
    - if logged_in?
      = link_to t(:cancel), tickets_path, :class => :btn