summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/index.html.haml
blob: 8fe405587549ccdcb87a367afd6a0b57f871d5fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
%h1 tickets index (just as space)
Create a 
= link_to "new ticket", new_ticket_path
= # 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
  - 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
  = link_to ticket.title, ticket
= #render(:partial => "ticket", :collection => @tickets)