summaryrefslogtreecommitdiff
path: root/engines/support/app/views/tickets/_new_comment_form.html.haml
blob: 05a0d4c39908d0012ba03c07f6d00c4b72c3e2fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-#
-# for posting a new comment to an existing ticket.
-#
= simple_form_for @ticket, :html => {:class => 'slim'}  do |f|
  = hidden_ticket_fields
  = f.simple_fields_for :comments, @comment, :wrapper => false, :html => {:class => 'slim'} do |c|
    = c.input :body, :label => false, :as => :text,
      :input_html => {:class => "full-width", :rows=> 5}
    - if admin?
      = c.input :private,
        :as => :boolean,
        :label => false,
        :inline_label => true
  = f.button :loading, t(".post_reply", cascade: true),
    class: 'btn-primary',
    value: 'post_reply'
  - if logged_in? && @ticket.is_open
    = f.button :loading, t(".reply_and_close", cascade: true),
      value: 'reply_and_close'
    = btn t(".cancel"), auto_tickets_path