Auditor/Organisation layouts
This commit is contained in:
@@ -29,11 +29,3 @@ body {
|
|||||||
font-family: 'Inter', sans-serif;
|
font-family: 'Inter', sans-serif;
|
||||||
background-color: var(--bg-color);
|
background-color: var(--bg-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 1024px) {
|
|
||||||
.main-container.top-main{
|
|
||||||
margin-left: 144px;
|
|
||||||
width: calc(100% - 144px);
|
|
||||||
// margin: 0 auto;]
|
|
||||||
// max-width: 1260px;
|
|
||||||
}}
|
|
||||||
|
|||||||
@@ -1,3 +1,38 @@
|
|||||||
|
.main-header {
|
||||||
|
width: 100vw;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 2.5rem;
|
||||||
|
font-weight: var(--bold);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-container {
|
||||||
|
width: 20%;
|
||||||
|
margin: 0 auto;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-new {
|
||||||
|
text-align: center;
|
||||||
|
width: 100vw;
|
||||||
|
margin-block: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.link {
|
||||||
|
border: 1px solid black;
|
||||||
|
border-radius: 20px 20px;
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
a.link:hover {
|
||||||
|
background-color: black;
|
||||||
|
color: var(--white-color)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.header{
|
.header{
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -7,23 +42,40 @@
|
|||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
font-weight: var(--bold);
|
font-weight: var(--bold);
|
||||||
}
|
}
|
||||||
.organisations-data {
|
|
||||||
|
.informations-data {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
border: 8px solid black;
|
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
min-width: 300px;
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.vh-50-height {
|
||||||
|
height: 50vh;
|
||||||
|
}
|
||||||
|
|
||||||
.organisation-data {
|
.information-data {
|
||||||
border: 2px solid grey;
|
border: 2px solid black;
|
||||||
white-space: pre-line;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
padding: 5px;
|
||||||
}
|
}
|
||||||
.organisation-elem {
|
|
||||||
|
.information-elem {
|
||||||
font-weight: var(--semi-bold);
|
font-weight: var(--semi-bold);
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
|
padding: 2.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.green {
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-new-organisation {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
padding: 10px;
|
||||||
|
margin: 10px 0;
|
||||||
}
|
}
|
||||||
@@ -1,17 +1,16 @@
|
|||||||
class AuditorsController < ApplicationController
|
class AuditorsController < ApplicationController
|
||||||
def index
|
def index
|
||||||
@auditors = ["A", "B", "C"]
|
@info_about_auditors = {"A" => {"Наименование аудиторской организации/ФИО индивидуального аудитора" => "ООО \"Инвест-Аудит\"",
|
||||||
@info_about_auditors = {"A" => {"ИНН" => 1000,
|
"ИНН" => 7606073440,
|
||||||
"Наименование" =>"ООО-БАШИР",
|
"ОГРН/ОРГНИП" => 1097606001250
|
||||||
"ОГРН" => "123145"
|
|
||||||
},
|
},
|
||||||
"B" => {"ИНН" => 1000,
|
"B" => {"Наименование аудиторской организации/ФИО индивидуального аудитора" => "ООО \"Инвест-Аудит\"",
|
||||||
"Наименование" =>"ООО-БАШИР",
|
"ИНН" => 7606073440,
|
||||||
"ОГРН" => "123145"
|
"ОГРН/ОРГНИП" => 1097606001250
|
||||||
},
|
},
|
||||||
"C" => {"ИНН" => 1000,
|
"C" => {"Наименование аудиторской организации/ФИО индивидуального аудитора" => "ООО \"Инвест-Аудит\"",
|
||||||
"Наименование" =>"ООО-БАШИР",
|
"ИНН" => 7606073440,
|
||||||
"ОГРН" => "123145"
|
"ОГРН/ОРГНИП" => 1097606001250
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,21 +1,32 @@
|
|||||||
class WelcomeController < ApplicationController
|
class WelcomeController < ApplicationController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@organisations = ["A", "B", "C"]
|
@info_about_organisations = {"A" => {"ИНН" => 7707602010,
|
||||||
@info_about_organisation = {"A" => {"ИНН" => 1000,
|
"Полное наименование юридического лица" =>"Публичное акционерное общество \"М.видео\"",
|
||||||
"Наименование" =>"ООО-БАШИР",
|
"КПП" => 770101001,
|
||||||
"КПП" => "123145",
|
"Код по ОКПО" => 71630621,
|
||||||
"Код по ОКПО" => "123123",
|
"Форма собственности (по ОКФС)" => "34 Совместная частная и иностранная собственность",
|
||||||
|
"Организационно-правовая форма (по ОКОПФ)" => "12247 Публичные акционерные общества",
|
||||||
|
"Вид экономической деятельности по ОКВЭД 2" => "70.10.1",
|
||||||
|
"Местонахождение (адрес)" => "105066, г. Москва, ул. Красносельская Нижн., д. 40/12, к. 20, пом. II"
|
||||||
},
|
},
|
||||||
"B" => {"ИНН" => 1000,
|
"B" => {"ИНН" => 7707602010,
|
||||||
"Наименование" =>"ООО-БАШИР",
|
"Полное наименование юридического лица" =>"Публичное акционерное общество \"М.видео\"",
|
||||||
"КПП" => "123145",
|
"КПП" => 770101001,
|
||||||
"Код по ОКПО" => "123123",
|
"Код по ОКПО" => 71630621,
|
||||||
|
"Форма собственности (по ОКФС)" => "34 Совместная частная и иностранная собственность",
|
||||||
|
"Организационно-правовая форма (по ОКОПФ)" => "12247 Публичные акционерные общества",
|
||||||
|
"Вид экономической деятельности по ОКВЭД 2" => "70.10.1",
|
||||||
|
"Местонахождение (адрес)" => "105066, г. Москва, ул. Красносельская Нижн., д. 40/12, к. 20, пом. II"
|
||||||
},
|
},
|
||||||
"C" => {"ИНН" => 1000,
|
"C" => {"ИНН" => 7707602010,
|
||||||
"Наименование" =>"ООО-БАШИР",
|
"Полное наименование юридического лица" =>"Публичное акционерное общество \"М.видео\"",
|
||||||
"КПП" => "123145",
|
"КПП" => 770101001,
|
||||||
"Код по ОКПО" => "123123",
|
"Код по ОКПО" => 71630621,
|
||||||
|
"Форма собственности (по ОКФС)" => "34 Совместная частная и иностранная собственность",
|
||||||
|
"Организационно-правовая форма (по ОКОПФ)" => "12247 Публичные акционерные общества",
|
||||||
|
"Вид экономической деятельности по ОКВЭД 2" => "70.10.1",
|
||||||
|
"Местонахождение (адрес)" => "105066, г. Москва, ул. Красносельская Нижн., д. 40/12, к. 20, пом. II"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
.main-header
|
||||||
|
= 'Отчетность за 2026 год'
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
.nav-container
|
||||||
|
a.link[href="/"]
|
||||||
|
= 'Организации'
|
||||||
|
a.link[href="/auditors/index"]
|
||||||
|
= 'Аудиторы'
|
||||||
@@ -2,9 +2,12 @@
|
|||||||
.header-title
|
.header-title
|
||||||
= "Аудиторы"
|
= "Аудиторы"
|
||||||
.main-container
|
.main-container
|
||||||
.organisations-data
|
- unless @info_about_auditors.any?
|
||||||
- @auditors.each do |auditor|
|
= "Аудиторы не найдены"
|
||||||
.organisation-data
|
- else
|
||||||
- @info_about_auditors[auditor].keys.each do |key|
|
.informations-data.vh-50-height
|
||||||
.organisation-elem
|
- @info_about_auditors.each do |auditor, params|
|
||||||
= "#{key}: #{@info_about_auditors[auditor][key]}"
|
.information-data
|
||||||
|
- params.keys.each do |key|
|
||||||
|
.information-elem
|
||||||
|
= "#{key}: #{params[key]}"
|
||||||
@@ -1 +0,0 @@
|
|||||||
=render 'error', error: @error
|
|
||||||
@@ -16,4 +16,6 @@ html
|
|||||||
= javascript_importmap_tags
|
= javascript_importmap_tags
|
||||||
= hotwire_livereload_tags if Rails.env.development?
|
= hotwire_livereload_tags if Rails.env.development?
|
||||||
body
|
body
|
||||||
|
= render 'header'
|
||||||
|
= render 'navbar'
|
||||||
= yield
|
= yield
|
||||||
@@ -2,9 +2,15 @@
|
|||||||
.header-title
|
.header-title
|
||||||
= "Организации"
|
= "Организации"
|
||||||
.main-container
|
.main-container
|
||||||
.organisations-data
|
.add-new
|
||||||
- @organisations.each do |organisation|
|
a.link[href="/reports"]
|
||||||
.organisation-data
|
= "Добавить новую организацию"
|
||||||
- @info_about_organisation[organisation].keys.each do |key|
|
- unless @info_about_organisations.any?
|
||||||
.organisation-elem
|
= 'Организации не найдены'
|
||||||
= "#{key}: #{@info_about_organisation[organisation][key]}"
|
- else
|
||||||
|
.informations-data
|
||||||
|
- @info_about_organisations.each do |organisation, params|
|
||||||
|
.information-data
|
||||||
|
- params.keys.each do |key|
|
||||||
|
.information-elem
|
||||||
|
= "#{key}: #{params[key]}"
|
||||||
Reference in New Issue
Block a user