summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/show.html.haml
blob: 04dd67668341a7d59c1e0f657edcf96001375b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- if flash[:notice]
  =flash[:notice]
- if flash[:alert]
  =flash[:alert]
%h2= @ticket.title
is open?
= @ticket.is_open
code:
= @ticket.code
= render(:partial => "comment", :collection => @ticket.comments)

= simple_form_for (@ticket, :html => {:novalidate => true}) do |f| #turn off html5 validations to test
  = f.simple_fields_for :comments, TicketComment.new do |c|
    = c.input :body, :label => 'Comment', :as => :text
  = #render :partial => 'new_comment'
  = f.button :submit
  = link_to t(:cancel), tickets_path, :class => :btn