diff options
author | elijah <elijah@riseup.net> | 2013-06-19 00:33:19 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-06-19 00:33:19 -0700 |
commit | c0dcf6bd6ae163ab39886a86c337d008ac2365a6 (patch) | |
tree | c704a349a4993f060344c826b649a65f386cc79f /help/app/views/tickets/new.html.haml | |
parent | a089c452a414e7d34d49f0e2703c632141361e2b (diff) |
new ui for tickets
Diffstat (limited to 'help/app/views/tickets/new.html.haml')
-rw-r--r-- | help/app/views/tickets/new.html.haml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/help/app/views/tickets/new.html.haml b/help/app/views/tickets/new.html.haml index 5442910..acb9537 100644 --- a/help/app/views/tickets/new.html.haml +++ b/help/app/views/tickets/new.html.haml @@ -1,17 +1,17 @@ - -//%h2.first= t :new_ticket - = render 'tickets/table-nav' = simple_form_for @ticket, :validate => true, :html => {:class => 'form-horizontal'} do |f| - = f.input :title + = f.input :title, :label => t(:subject) - 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} + = f.simple_fields_for :comments, @comment do |c| + = c.input :body, :label => t(:description), :as => :text, :input_html => {:class => "full-width", :rows=> 5} + - if admin? + = c.input :private, :as => :boolean, :label => false, :inline_label => true .form-actions = f.button :submit, :class => 'btn-primary' = link_to t(:cancel), tickets_path, :class => :btn |