65 lines
2.5 KiB
Plaintext
65 lines
2.5 KiB
Plaintext
<% content_for :page_specific_css do %>
|
||
<%= stylesheet_link_tag "lib/main-forms" %>
|
||
<%= stylesheet_link_tag "lib/main-list" %>
|
||
<% end %>
|
||
<% content_for :page_specific_javascript do %>
|
||
<%= javascript_include_tag "lib/module-area" %>
|
||
<% end %>
|
||
|
||
<div class="input-area">
|
||
<div id="ask-asks">
|
||
<table class="table">
|
||
<tr>
|
||
<td><%= AskQuestion.human_attribute_name(:name) %>:<%= @ask_question.name %></td>
|
||
<!-- <td><%= AskQuestion.human_attribute_name(:identity) %>:
|
||
<% Tag.where({:id => @ask_question[:identity]}).each do |tag| %>
|
||
<%= tag.name %>
|
||
<% end %>
|
||
</td> -->
|
||
<td><%= AskQuestion.human_attribute_name(:mail) %>:<%= @ask_question.mail %></td>
|
||
<td><%= AskQuestion.human_attribute_name(:phone) %>:<%= @ask_question.phone %></td>
|
||
<!-- <td><%= AskQuestion.human_attribute_name(:fax) %>:<%= @ask_question.fax %></td> -->
|
||
</tr>
|
||
<tr>
|
||
<td colspan="5"><%= AskQuestion.human_attribute_name(:appointment) %>:<%= @ask_question.appointment.strftime("%Y-%m-%d %H:%M") %></td>
|
||
<!-- <td colspan="5"><%= AskQuestion.human_attribute_name(:name) %>:<%= @ask_question.name %></td> -->
|
||
</tr>
|
||
<tr>
|
||
<!-- <td colspan="5"><%= AskQuestion.human_attribute_name(:name) %>:<br/><%= @ask_question.name.gsub(/[(\n)(\r)]/, "\n" => "<br/>", "\r" => "" ).html_safe %></td> -->
|
||
</tr>
|
||
|
||
<tr>
|
||
<td colspan="5">
|
||
<%= f.label :reply %>
|
||
<br/> <%= f.text_area :reply, rows: 10, style: 'width: 500px' %>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="5">
|
||
<%= f.label :comment %>
|
||
<br/> <%= f.text_field :comment, style: 'width: 500px' %></td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="5"><%= f.label t('situation') %> <%= f.select :situation, [
|
||
[t('is_waiting'), 'is_waiting'],
|
||
[t('is_processed'), 'is_processed'],
|
||
[t('is_referral'), 'is_referral']
|
||
] %></td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td colspan="5">
|
||
<%= 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') %>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-actions">
|
||
<%= f.submit t('submit'), class: 'btn btn-primary' %>
|
||
<%= f.button t('cancel'), type: 'reset', class: 'btn' %>
|
||
</div>
|