From 8b5f7fb6ef438ef034541d6fb500b5ab7e12f3f2 Mon Sep 17 00:00:00 2001 From: jessib Date: Wed, 31 Oct 2012 17:02:02 -0700 Subject: Very basic filtering of tickets based on status. Will want this ajax-y. --- help/app/views/tickets/index.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'help/app/views') diff --git a/help/app/views/tickets/index.html.haml b/help/app/views/tickets/index.html.haml index 6db2140..1f46433 100644 --- a/help/app/views/tickets/index.html.haml +++ b/help/app/views/tickets/index.html.haml @@ -3,7 +3,9 @@ Create a = link_to "new ticket", new_ticket_path = # below shouldn't be unless logged in %h2 Tickets -= # want to have selection option to see tickets, that are open, closed or all += 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"]) + = submit_tag "filter" - @tickets.each do |ticket| %p = link_to ticket.title, ticket -- cgit v1.2.3