Auditor/Organisation layouts

This commit is contained in:
ARLakhin
2026-03-12 10:14:15 +03:00
parent 0dc0f10da7
commit e55ecb7d29
10 changed files with 122 additions and 51 deletions
+2
View File
@@ -0,0 +1,2 @@
.main-header
= 'Отчетность за 2026 год'
+5
View File
@@ -0,0 +1,5 @@
.nav-container
a.link[href="/"]
= 'Организации'
a.link[href="/auditors/index"]
= 'Аудиторы'
+9 -6
View File
@@ -2,9 +2,12 @@
.header-title
= "Аудиторы"
.main-container
.organisations-data
- @auditors.each do |auditor|
.organisation-data
- @info_about_auditors[auditor].keys.each do |key|
.organisation-elem
= "#{key}: #{@info_about_auditors[auditor][key]}"
- unless @info_about_auditors.any?
= "Аудиторы не найдены"
- else
.informations-data.vh-50-height
- @info_about_auditors.each do |auditor, params|
.information-data
- params.keys.each do |key|
.information-elem
= "#{key}: #{params[key]}"
-1
View File
@@ -1 +0,0 @@
=render 'error', error: @error
+2
View File
@@ -16,4 +16,6 @@ html
= javascript_importmap_tags
= hotwire_livereload_tags if Rails.env.development?
body
= render 'header'
= render 'navbar'
= yield
+12 -6
View File
@@ -2,9 +2,15 @@
.header-title
= "Организации"
.main-container
.organisations-data
- @organisations.each do |organisation|
.organisation-data
- @info_about_organisation[organisation].keys.each do |key|
.organisation-elem
= "#{key}: #{@info_about_organisation[organisation][key]}"
.add-new
a.link[href="/reports"]
= "Добавить новую организацию"
- unless @info_about_organisations.any?
= 'Организации не найдены'
- else
.informations-data
- @info_about_organisations.each do |organisation, params|
.information-data
- params.keys.each do |key|
.information-elem
= "#{key}: #{params[key]}"