Переработка контроллера Organization и страницы Show для отображения 2х форм отчетности из БД

This commit is contained in:
ARLakhin
2026-04-01 15:06:00 +03:00
parent 644d7616ae
commit 7c390e9a69
3 changed files with 65 additions and 35 deletions
+20 -15
View File
@@ -12,20 +12,25 @@
- @info_about_organisation["Сведения об организации"].each do |key, value|
.information-elem
= "#{key}: #{value}"
= render 'organisations/templates/type_doc', target: "type_doc_#{@type_doc}", org_id: "#{@org_id}"
= render 'organisations/templates/type_doc', target: "type_doc_#{@type_doc}", org_id: "#{@org.id}"
h2
= "#{@doc_name}"
.information-table
table
thead
tr
- @current_doc_info[0].each do |value|
th
= value
tbody
- @current_doc_info[1..-1].each do |values|
tr
- values.each do |value|
td
= value
- if @current_doc_info.present?
.information-table
table
thead
tr
- @current_doc_info.each do |header|
th = header
tbody
- @current_doc_info1.keys.each do |key|
tr
td = key[0]
td = key[1]
- @current_doc_info1[key].each do |value|
td = value
- else
h3
= "Нет данных"