summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/show.html.haml
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2012-10-12 14:42:57 -0700
committerjessib <jessib@riseup.net>2012-10-12 14:42:57 -0700
commit56273c13f54a872d02db286c90a8d5103cf7a663 (patch)
tree2a093d43f09a3179d571f6f7d887a1176e5c27f7 /help/app/views/tickets/show.html.haml
parent336d5f786bbd1aaf1847007db64e55f96e585b9d (diff)
more work on ticket creation/updating functionality
Diffstat (limited to 'help/app/views/tickets/show.html.haml')
-rw-r--r--help/app/views/tickets/show.html.haml10
1 files changed, 8 insertions, 2 deletions
diff --git a/help/app/views/tickets/show.html.haml b/help/app/views/tickets/show.html.haml
index 1e1fab3..04dd676 100644
--- a/help/app/views/tickets/show.html.haml
+++ b/help/app/views/tickets/show.html.haml
@@ -1,3 +1,7 @@
+- if flash[:notice]
+ =flash[:notice]
+- if flash[:alert]
+ =flash[:alert]
%h2= @ticket.title
is open?
= @ticket.is_open
@@ -6,6 +10,8 @@ code:
= render(:partial => "comment", :collection => @ticket.comments)
= simple_form_for (@ticket, :html => {:novalidate => true}) do |f| #turn off html5 validations to test
- = render :partial => 'new_comment'
+ = 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), root_url, :class => :btn \ No newline at end of file
+ = link_to t(:cancel), tickets_path, :class => :btn \ No newline at end of file