Convert HAML to ERB

This commit is contained in:
Artur Beljajev 2019-10-16 19:19:10 +03:00
parent 9fc6d6c641
commit cb3d298bb3
2 changed files with 31 additions and 14 deletions

View file

@ -1,14 +0,0 @@
.panel{class: 'panel-default'}
.panel-heading
= t(:statuses)
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%thead
%tr
%th{class: 'col-xs-6'}= t(:status)
%th{class: 'col-xs-6'}= t(:notes)
%tbody
- contact.statuses.each do |status|
%tr
%td= status
%td= contact.status_notes[status]

View file

@ -0,0 +1,31 @@
<div class="panel-default panel">
<div class="panel-heading">
<%= t(:statuses) %>
</div>
<div class="table-responsive">
<table class="table table-hover table-bordered table-condensed">
<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>
<td>
<%= status %>
</td>
<td>
<%= contact.status_notes[status] %>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>