diff options
Diffstat (limited to 'help/app/views/tickets')
-rw-r--r-- | help/app/views/tickets/index.html.haml | 6 | ||||
-rw-r--r-- | help/app/views/tickets/show.html.haml | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/help/app/views/tickets/index.html.haml b/help/app/views/tickets/index.html.haml index dff39ce..8fe4055 100644 --- a/help/app/views/tickets/index.html.haml +++ b/help/app/views/tickets/index.html.haml @@ -4,7 +4,11 @@ Create a = # below shouldn't be unless logged in %h2 Tickets = form_tag (tickets_path, :method => :get) do # want to redo as ajax, and make sure it displays the selected option - = select_tag :status, options_for_select(["open", "closed", "all"]) + - options = ["open", "closed", "all"] + - if admin? + - options << "open tickets I admin" # obviously not what we will want + - options << "all tickets I admin" # obviously not what we will want + = select_tag :status, options_for_select(options) # TODO = submit_tag "filter" - @tickets.each do |ticket| %p diff --git a/help/app/views/tickets/show.html.haml b/help/app/views/tickets/show.html.haml index acd3a61..77d168a 100644 --- a/help/app/views/tickets/show.html.haml +++ b/help/app/views/tickets/show.html.haml @@ -21,6 +21,7 @@ = 'closed' = button_to 'open', {:change_status => :open}, :method => :put = render(:partial => "comment", :collection => @ticket.comments) += #render @ticket.comments should work if view is in /app/views/comments/_comment = simple_form_for(@ticket, :html => {:novalidate => true}) do |f| #turn off html5 validations to test = f.simple_fields_for :comments, TicketComment.new do |c| |