% ask_setting = @ask_setting set_input_name_for_ask('ask_question') %> <% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/main-list" %> <%= stylesheet_link_tag "custom_field" %> <% end %> <%# javascript_include_tag "lib/bootstrap-datetimepicker.js" %> <%# javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"%> <%# javascript_include_tag "/assets/lib/jquery-ui-1.12.1/jquery-ui.min" %> <%# javascript_include_tag "lib/module-area" %> <%# javascript_include_tag "jquery.ui.datepicker.monthyearpicker" %> <%# javascript_include_tag "lib/bootstrap-datetimepicker" %>
<%= AskQuestion.human_attribute_name(:name) %>:<%= @ask_question.name %> | <%= AskQuestion.human_attribute_name(:mail) %>:<%= @ask_question.mail %> | <%= AskQuestion.human_attribute_name(:phone) %>:<%= @ask_question.phone %> | ||
<%= t('ask.serial_number') %>:<%= @ask_question.get_serial_number %> | ||||
<%= t('ask.ip') %>:<%= @ask_question.ip %> | ||||
<%= t('title') %>:<%= @ask_question.title %> | ||||
<%= AskQuestion.human_attribute_name(:appointment) %>:<%= @ask_question.appointment.strftime("%Y-%m-%d %H:%M") rescue nil %> | ||||
<%= f.label :reply %>
<%= f.text_area :reply, rows: 10, style: 'width: 500px' %> |
||||
<%= f.label :comment %>
<%= @ask_question.comment %> |
||||
<%= f.label :agree_show %><%= @ask_question.agree_show ? t('ask.yes') : t('ask.no') %> | ||||
<%= f.label t('situation') %> <%= f.select :situation, AskTicketStatus.all.map{|a| [a.title, a.key]} %> | ||||
<%= f.label :send_email %><%= f.radio_button :send_email, 1, checked: @ask_question.send_email? %><%= t('ask.yes') %> <%= f.radio_button :send_email, 0, checked: !@ask_question.send_email? %><%= t('ask.no') %> |