This commit is contained in:
Artur Beljajev 2019-10-16 19:20:24 +03:00
parent cb3d298bb3
commit 64ea8d328a

View file

@ -1,30 +1,24 @@
<div class="panel-default panel"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<%= t(:statuses) %> <%= t(:statuses) %>
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-hover table-bordered table-condensed"> <table class="table table-hover table-bordered table-condensed">
<thead> <thead>
<tr>
<th class="col-xs-6">
<%= t(:status) %>
</th>
<th class="col-xs-6">
<%= t(:notes) %>
</th>
</tr>
</thead>
<tbody>
<% contact.statuses.each do |status| %>
<tr> <tr>
<td> <th class="col-xs-6"><%= t(:status) %></th>
<%= status %> <th class="col-xs-6"><%= t(:notes) %></th>
</td>
<td>
<%= contact.status_notes[status] %>
</td>
</tr> </tr>
<% end %> </thead>
<tbody>
<% contact.statuses.each do |status| %>
<tr>
<td><%= status %></td>
<td><%= contact.status_notes[status] %></td>
</tr>
<% end %>
</tbody> </tbody>
</table> </table>
</div> </div>