summaryrefslogtreecommitdiff
path: root/engines/support/app/views/tickets
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-04-23 17:14:30 +0200
committerAzul <azul@leap.se>2014-04-25 12:18:40 +0200
commit615261a6f0d1bae5d999e3014f18191ed1ba1008 (patch)
tree79474809cd24b0286eee2fd95f434a81df79762a /engines/support/app/views/tickets
parente727d211630591a3aaed5eba0eb50c7d4964b6f8 (diff)
move open and close buttons into status display
They do not save any changes. So i think it's better to keep them separated from the Save button that does save changes.
Diffstat (limited to 'engines/support/app/views/tickets')
-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'