diff options
author | jessib <jessib@riseup.net> | 2012-11-02 15:10:45 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2012-11-02 15:10:45 -0700 |
commit | fb1c8e60335fefc55191eee16d83f53d2e9a2031 (patch) | |
tree | d29fd3fd7867711c8ffb9231077a245fec7c8b1c /help/app/views/tickets | |
parent | 4db41d772725387ba36240cf8f3529780e896755 (diff) |
Some rough functionality for tickets, like showing ticket list for admins, and initial way to close tickets.
Diffstat (limited to 'help/app/views/tickets')
-rw-r--r-- | help/app/views/tickets/index.html.haml | 2 | ||||
-rw-r--r-- | help/app/views/tickets/show.html.haml | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/help/app/views/tickets/index.html.haml b/help/app/views/tickets/index.html.haml index 1f46433..dff39ce 100644 --- a/help/app/views/tickets/index.html.haml +++ b/help/app/views/tickets/index.html.haml @@ -1,4 +1,4 @@ -%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 diff --git a/help/app/views/tickets/show.html.haml b/help/app/views/tickets/show.html.haml index a9b994e..3fb1d34 100644 --- a/help/app/views/tickets/show.html.haml +++ b/help/app/views/tickets/show.html.haml @@ -1,10 +1,10 @@ +%h1 tickets show (just as space) +%h1 tickets show (just as space) - if flash[:notice] =flash[:notice] - if flash[:alert] =flash[:alert] %h2= @ticket.title -is open? -= @ticket.is_open - if @ticket.code code: = @ticket.code @@ -22,5 +22,8 @@ is open? = f.simple_fields_for :comments, TicketComment.new do |c| = c.input :body, :label => 'Comment', :as => :text = #render :partial => 'new_comment' - = f.button :submit + = f.label :is_open + = f.select :is_open, [true, false] + = f.button :submit # have button to close + = # want to ahve button to close = link_to t(:cancel), tickets_path, :class => :btn
\ No newline at end of file |