Skip to content

Commit

Permalink
UPD: обновляет таблицу приборов, добавляет отображение помещения и то…
Browse files Browse the repository at this point in the history
…чки контроля
  • Loading branch information
owlscatcher committed Feb 12, 2024
1 parent 83fadf6 commit f80c7f4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 11 additions & 2 deletions app/views/shared/index/_device.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,16 @@
</div>
<div class="col-10 shadow rounded my-4">
<div class="table-responsive">
<table class="table table-hover">
<table class="table table-hover text-nowrap">
<thead>
<tr>
<tr class="text-nowrap">
<th scope="col"><%=t('activerecord.attributes.device.tabel_id')%></th>
<th scope="col"><%=t('activerecord.attributes.device.serial_id')%></th>
<th scope="col"><%=t('activerecord.attributes.device.device_model')%></th>
<th scope="col"><%=t('activerecord.attributes.device.year_of_production')%></th>
<th scope="col"><%=t('activerecord.attributes.device.year_of_commissioning')%></th>
<th scope="col"><%=t('activerecord.attributes.device.room')%></th>
<th scope="col"><%=t('activerecord.attributes.device.control_point')%></th>
<% if current_user.admin? %>
<th scope="col"><%=t('activerecord.attributes.device.service')%></th>
<% end %>
Expand All @@ -99,6 +101,13 @@
<td><%= device.device_model.name %></td>
<td><%= device.year_of_production %></td>
<td><%= device.year_of_commissioning %></td>
<% if device.control_point_id? %>
<td><%= device.control_point.room.name %></td>
<td><%= device.control_point.name %></td>
<% else %>
<td><%= "——" %></td>
<td><%= "——" %></td>
<% end %>
<% if current_user.admin? %>
<td><%= device.service.name %></td>
<% end %>
Expand Down
4 changes: 2 additions & 2 deletions config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ ru:
device_reg_group: Рег. группа
year_of_production: Год выпуска
year_of_commissioning: Год ввода
room: Расположение
room_id: Расположение
room: Помещение
room_id: Помещение
date_of_inspection: Дата инспекции
supplementary_kit: Набор
service: Служба
Expand Down

0 comments on commit f80c7f4

Please sign in to comment.