app/views/tasks/_modal_show.html.erb
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">#<%= @task.id %> : <%= @task.name %></h4>
</div>
<div class="modal-body">
<table class="table table-striped table-hover table-responsive table-bordered">
<thead>
<tr>
<td class="col-md-3"></td>
<td><%= t "default.value" %></td>
</tr>
<thead>
<tbody>
<tr>
<td><%= t "activerecord.attributes.task.name"%></td>
<td><%= @task.name =%></td>
</tr>
<tr>
<td><%= t "activerecord.attributes.task.days"%></td>
<td><%= @task.days =%></td>
</tr>
<tr>
<td><%= t "activerecord.attributes.task.memo"%></td>
<td><%= simple_format(h(@task.memo)) =%></td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<%= button_tag t("default.close"), {'type' => 'button','data-dismiss' => 'modal' } %>
</div>
</div>
</div>