summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/new.html.haml
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-17 01:27:01 -0700
committerelijah <elijah@riseup.net>2013-07-04 03:57:59 -0700
commit7d58f640e89a89a4767e59883b864afcd4e9dad4 (patch)
tree5ddb5705c2062931c3e9478b8e6440150deaf4e1 /help/app/views/tickets/new.html.haml
parent3f51128e24e1ca3247169066aa6a03090df98dd6 (diff)
new ui - ticket navigation
Diffstat (limited to 'help/app/views/tickets/new.html.haml')
-rw-r--r--help/app/views/tickets/new.html.haml25
1 files changed, 16 insertions, 9 deletions
diff --git a/help/app/views/tickets/new.html.haml b/help/app/views/tickets/new.html.haml
index 1aa689b..5442910 100644
--- a/help/app/views/tickets/new.html.haml
+++ b/help/app/views/tickets/new.html.haml
@@ -1,10 +1,17 @@
-.span12
- %h2=t :new_ticket
- = simple_form_for @ticket, :validate => true, :html => {:class => 'form-horizontal'} do |f|
- = f.input :title
- = f.input :email if !current_user #hmm--might authenticated users want to submit an alternate email?
+
+//%h2.first= t :new_ticket
+
+= render 'tickets/table-nav'
+
+= simple_form_for @ticket, :validate => true, :html => {:class => 'form-horizontal'} do |f|
+ = f.input :title
+ - if user
+ = f.input :email, input_html: {value: user.email_address}
+ = f.input :regarding_user, input_html: {value: user.login}
+ - else
+ = f.input :email
= f.input :regarding_user
- = render :partial => 'new_comment', :locals => {:f => f}
- .form-actions
- = f.button :submit, :class => 'btn-primary'
- = link_to t(:cancel), tickets_path, :class => :btn
+ = render :partial => 'new_comment', :locals => {:f => f}
+ .form-actions
+ = f.button :submit, :class => 'btn-primary'
+ = link_to t(:cancel), tickets_path, :class => :btn