mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
Convert HAML to ERB
This commit is contained in:
parent
9fc6d6c641
commit
cb3d298bb3
2 changed files with 31 additions and 14 deletions
|
@ -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]
|
|
31
app/views/admin/contacts/partials/_statuses.html.erb
Normal file
31
app/views/admin/contacts/partials/_statuses.html.erb
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue