summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/_edit_form.html.haml
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-07-05 18:16:24 -0700
committerelijah <elijah@riseup.net>2013-07-05 18:16:24 -0700
commitdc98ad8c6445182d60b3f1909e0260ace6fbfca5 (patch)
tree00527737a38bdafcd2e175bb6caf5e30b3360de1 /help/app/views/tickets/_edit_form.html.haml
parentb2124020f123bf7a44b21555e6aefb5699bdcc21 (diff)
tickets - replace input[type=submit] tags with button[type=submit] tags
Diffstat (limited to 'help/app/views/tickets/_edit_form.html.haml')
-rw-r--r--help/app/views/tickets/_edit_form.html.haml7
1 files changed, 3 insertions, 4 deletions
diff --git a/help/app/views/tickets/_edit_form.html.haml b/help/app/views/tickets/_edit_form.html.haml
index 9846a43..5252c2e 100644
--- a/help/app/views/tickets/_edit_form.html.haml
+++ b/help/app/views/tickets/_edit_form.html.haml
@@ -39,11 +39,10 @@
= t(:regarding_account)
= regarding_user_link
= f.text_field :regarding_user
- = f.submit t(:save), :class => 'btn'
+ = f.button t(:save), :name => 'commit', :class => 'btn', :type => 'submit', :value => 'save'
- if @ticket.is_open?
- = f.submit t(:close), :class => 'btn'
+ = f.button t(:close), :name => 'commit', :class => 'btn', :type => 'submit', :value => 'close'
- else
- = f.submit t(:open), :class => 'btn'
+ = f.button t(:open), :name => 'commit', :class => 'btn', :type => 'submit', :value => 'open'
- if admin?
= link_to t(:destroy), auto_ticket_path(@ticket), :confirm => t(:are_you_sure), :method => :delete, :class => 'btn'
-