% ask_setting = @ask_setting set_input_name('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('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, [ [t('ask.is_waiting'), 'is_waiting'], [t('ask.is_processed'), 'is_processed'], [t('ask.is_referral'), 'is_referral'], [t('ask.is_published'),'is_published'] ] %> | ||||
<%= 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') %> |