summaryrefslogtreecommitdiff
path: root/engines/support/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'engines/support/app/views')
-rw-r--r--engines/support/app/views/tickets/_edit_form.html.haml12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/support/app/views/tickets/_edit_form.html.haml b/engines/support/app/views/tickets/_edit_form.html.haml
index 7958334..bf175fe 100644
--- a/engines/support/app/views/tickets/_edit_form.html.haml
+++ b/engines/support/app/views/tickets/_edit_form.html.haml
@@ -21,9 +21,13 @@
= hidden_ticket_fields
%p.first
- if @ticket.is_open?
- %span.label.label-info= t(:open)
+ %span.label.label-info
+ %b{style: 'padding:10px'}= t(:open)
+ = f.button :loading, t(:close), value: 'close', class: 'btn-mini'
- else
- %span.label.label-success= t(:closed)
+ %span.label.label-success
+ %b{style: 'padding:10px'}= t(:closed)
+ = f.button :loading, t(:open), value: 'open', class: 'btn-mini'
%span.label.label-clear= t(:created_by_on, :user => created_by, :time => @ticket.created_at.to_s(:short)).html_safe
%div= t(:subject)
= f.text_field :subject, :class => 'large full-width'
@@ -40,9 +44,5 @@
= regarding_user_link
= f.text_field :regarding_user
= f.button :loading, t(:save), :value => 'save'
- - if @ticket.is_open?
- = f.button :loading, t(:close), :value => 'close'
- - else
- = f.button :loading, t(:open), :value => 'open'
- if admin?
= link_to t(:destroy), auto_ticket_path(@ticket), :confirm => t(:are_you_sure), :method => :delete, :class => 'btn'