diff options
Diffstat (limited to 'help/app/views/tickets/index.html.haml')
-rw-r--r-- | help/app/views/tickets/index.html.haml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/help/app/views/tickets/index.html.haml b/help/app/views/tickets/index.html.haml index 6db2140..8fe4055 100644 --- a/help/app/views/tickets/index.html.haml +++ b/help/app/views/tickets/index.html.haml @@ -1,9 +1,15 @@ -%h2 tickets index (just as space) +%h1 tickets index (just as space) 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 + - 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 |