<%= t("client_management.new_ticket") %>
<%= form_for @ticket, :url => {:action => "create_ticket"}, :html => {:class => "form-inline"} do |f| %>
<%= f.label :subject, t("client_management.ticket_subject") + ":" %>
<%= f.text_field :subject, :placeholder => "Ticket Subject", :class => "form-control" %>
<%= f.label :category_id, t("client_management.ticket_type") + ":" %>
<%= f.select :category_id, @categories, {:prompt => "Please select"},{:class => "form-control"} %>
<% new_object = f.object.send("ticket_queries").build rescue nil %>
<%= f.fields_for :ticket_queries, new_object do |tq| %>
<%= tq.label :query, t("client_management.query") + ":" %>
<%= tq.cktext_area :query %>
<% end %>
<%= f.hidden_field :ticket_creater_cpanel_id, :value => current_cpanel_user.email %>
<%= f.hidden_field :site_type, :value => "orbit" %>
<%= f.hidden_field :status, :value => "open" %>
<%= f.hidden_field :registered_site, :value => @site.id %>
<%= f.submit "Submit", :class => "btn btn-primary" %>
<% end %>