SU2-33 | Фикс критических и серьёзных ошибок, удаление/перезагрузка организации, пагинация, favicon
This commit is contained in:
@@ -7,9 +7,7 @@ html
|
||||
meta name="turbo-refresh-method" content="morph"
|
||||
= csrf_meta_tags
|
||||
= csp_meta_tag
|
||||
/ = favicon_link_tag 'favicon.ico'
|
||||
/ = favicon_link_tag 'favicon-32x32.png', sizes: '32x32'
|
||||
/ = favicon_link_tag 'apple-icon.png', rel: 'apple-touch-icon'
|
||||
= favicon_link_tag 'favicon.svg', type: 'image/svg+xml'
|
||||
= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload"
|
||||
= stylesheet_link_tag "application", media: "all", "data-turbo-track": "reload"
|
||||
script[async src="https://ga.jspm.io/npm:es-module-shims@1.8.2/dist/es-module-shims.js" data-turbo-track="reload"]
|
||||
|
||||
@@ -17,3 +17,4 @@
|
||||
.information-button
|
||||
a.link[href="/organisations/#{organisation}"]
|
||||
= "Подробнее"
|
||||
== pagy_nav(@pagy)
|
||||
|
||||
@@ -14,6 +14,17 @@
|
||||
- @info_about_organisation["Сведения об организации"].each do |key, value|
|
||||
.information-elem
|
||||
= "#{key}: #{value}"
|
||||
.organisation-actions
|
||||
= link_to "/organisations/#{@org.id}/reload",
|
||||
class: 'link-action',
|
||||
data: { turbo_method: :post, turbo_confirm: 'Перекачать данные с nalog.gov.ru?' } do
|
||||
i.bi.bi-arrow-clockwise
|
||||
| Обновить данные
|
||||
= link_to "/organisations/#{@org.id}",
|
||||
class: 'link-action link-action--danger',
|
||||
data: { turbo_method: :delete, turbo_confirm: 'Удалить организацию и все её данные? Это действие необратимо.' } do
|
||||
i.bi.bi-trash
|
||||
| Удалить
|
||||
= render 'organisations/templates/type_doc', target: "type_doc_#{@type_doc}", org_id: "#{@org.id}"
|
||||
h2
|
||||
= "#{@doc_name}"
|
||||
|
||||
Reference in New Issue
Block a user