summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/show.html.haml
blob: a9b994e8ba51020ae631335102fb6a06259a68c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
- if flash[:notice]
  =flash[:notice]
- if flash[:alert]
  =flash[:alert]
%h2= @ticket.title
is open?
= @ticket.is_open
- if @ticket.code
  code:
  = @ticket.code
- if @ticket.email
  email:
  = @ticket.email
- if User.find(@ticket.created_by)
  Created by
  = User.find(@ticket.created_by).login 
- else
  Unauthenticated ticket creator
= 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