blob: ab008d2de553f06ce12d63bab0cbeaad89ef6442 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
- @show_navigation = params[:user_id].present?
= render 'tickets/tabs'
- user = @user if admin?
- user ||= current_user
= simple_form_for @ticket, :validate => true, :html => {:class => 'form-horizontal'} do |f|
= hidden_ticket_fields
= f.input :subject
= f.input :email, input_html: {value: user.email_address}
= f.input :regarding_user, input_html: {value: user.login}
= 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
= f.button :wrapped, cancel: (logged_in? ? auto_tickets_path : home_path)
|