Переработка контроллера Organization и страницы Show для отображения 2х форм отчетности из БД
This commit is contained in:
@@ -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
|
||||
= "Нет данных"
|
||||
|
||||
Reference in New Issue
Block a user