diff options
author | elijah <elijah@riseup.net> | 2013-06-19 00:33:19 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-07-04 04:00:47 -0700 |
commit | 8393058ac15d72be702a6de481d6129aed4bbef3 (patch) | |
tree | 79af217151c3622058b79b2511c55c1b2babb3da /help/app/views/tickets/_new_comment_form.html.haml | |
parent | e58fd0550b4a29fac9d52dc8a78d04333ccc8c06 (diff) |
new ui for tickets
Diffstat (limited to 'help/app/views/tickets/_new_comment_form.html.haml')
-rw-r--r-- | help/app/views/tickets/_new_comment_form.html.haml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/help/app/views/tickets/_new_comment_form.html.haml b/help/app/views/tickets/_new_comment_form.html.haml new file mode 100644 index 0000000..b273503 --- /dev/null +++ b/help/app/views/tickets/_new_comment_form.html.haml @@ -0,0 +1,13 @@ +-# +-# for posting a new comment to an existing ticket. +-# += simple_form_for @ticket, :html => {:class => 'slim'} do |f| + = f.simple_fields_for :comments, @comment, :wrapper => :none, :html => {:class => 'slim'} do |c| + = c.input :body, :label => false, :as => :text, :input_html => {:class => "full-width", :rows=> 5} + - if admin? + = c.input :private, :as => :boolean, :label => false, :inline_label => true + = f.button :submit, t(:post_reply), :class => 'btn-primary' + - if @ticket.is_open + = f.button :submit, t(:reply_and_close) + = link_to t(:destroy), ticket_path, :confirm => 'are you sure?', :method => :delete, :class => 'btn btn-danger' if admin? + = link_to t(:cancel), tickets_path, :class => :btn |