diff options
author | jessib <jessib@riseup.net> | 2012-10-05 15:41:03 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2012-10-05 15:41:03 -0700 |
commit | a6de1561461cc719fddd8175c93588a47513a4b8 (patch) | |
tree | f406d98575b0515135808750f22bcb03be02b1af /help/app/views/tickets/new.html.haml | |
parent | 118d9ab5c9f4d7a82b7cf24774ef12d3c221f8ef (diff) |
Rough code to add & comment on tickets.
Diffstat (limited to 'help/app/views/tickets/new.html.haml')
-rw-r--r-- | help/app/views/tickets/new.html.haml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/help/app/views/tickets/new.html.haml b/help/app/views/tickets/new.html.haml new file mode 100644 index 0000000..fd1bcd4 --- /dev/null +++ b/help/app/views/tickets/new.html.haml @@ -0,0 +1,14 @@ +%h2=t :new_ticket += simple_form_for @ticket do |f| + = f.input :title + = #f.input :email #if there is no current_user + = f.input :email if !User.current_test + = #simple_fields_for :comment do |c| + = #c.input :body, :label => 'Comment', :as => :text + = #f.input :comment + = render :partial => 'new_comment' + = # regarding_user if not logged in + = # email if not logged in + = #f.button :submit, :value => t(:submit), :class => 'btn-primary' + = f.button :submit + = link_to t(:cancel), root_url, :class => :btn |