From 77bc8be5db01f464a91dbf2268f27f34f2824fd8 Mon Sep 17 00:00:00 2001 From: luciajanikova <19lucia99@gmail.com> Date: Fri, 6 Oct 2023 18:05:50 +0200 Subject: [PATCH] Add missing seeds & Update existing --- db/data/upvs_form_ks_340702.xslt | 4550 ++++++++++++++++++++++++++++++ db/seeds.rb | 61 +- 2 files changed, 4598 insertions(+), 13 deletions(-) create mode 100644 db/data/upvs_form_ks_340702.xslt diff --git a/db/data/upvs_form_ks_340702.xslt b/db/data/upvs_form_ks_340702.xslt new file mode 100644 index 00000000..d889fb02 --- /dev/null +++ b/db/data/upvs_form_ks_340702.xslt @@ -0,0 +1,4550 @@ +<!DOCTYPE html>Form

Žiadosť o vyhotovenie kópie listiny uloženej v zbierke listín

radioMethodOfService

V akej podobe žiadate o vyhotovenie kópie listiny uloženej v zbierke listín?V prípade výberu listinnej podoby je možné vybrať len jeden subjekt a k nemu jednu listinu.

radioMethodOfService_electronic
radioMethodOfService_print

Pre ktorý subjekt (zapísanú osobu) žiadate o vyhotovenie kópie listiny uloženej v zbierke listín?

inputSidlo-ListinnaForma
checkboxVyhotovenieKopieListiny-print
inputNazovListiny-print
checkboxVyhotovenieKopieListiny-print
inputNazovListiny-print
inputSidlo-ElektronickaForma
checkboxVyhotovenieKopieListiny-electronic
inputNazovListiny-electronic
checkboxVyhotovenieKopieListiny-electronic
inputNazovListiny-electronic
inputSidlo-ElektronickaForma
checkboxVyhotovenieKopieListiny-electronic
inputNazovListiny-electronic
checkboxVyhotovenieKopieListiny-electronic
inputNazovListiny-electronic
a13591
a582
a621

Aká je adresa na doručenie vyhotovenej kópie listiny/listín uložených v zbierke listín?

a666
a683
a690
a685
a686
\ No newline at end of file diff --git a/db/seeds.rb b/db/seeds.rb index 6be8aafc..292f08e3 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,25 +1,25 @@ -Page.create!( +Page.find_or_create_by!( title: 'Kontaktné informácie', content: 'Tu raz urcite budu nejake informacie o tom, ako kontaktovat ludi, ktori su za touto strankou', slug: 'kontakt', is_faq: false ) -Page.create!( +Page.find_or_create_by!( title: 'Čo je vlastne to EID, o ktorom sa tu všade píše?', content: 'Občiansky preukaz s čipom, na ktorom je aktivovaný BOK, ZEP PIN a ZEP PUK', slug: 'co-je-to-eid', is_faq: true ) -Page.create!( +Page.find_or_create_by!( title: 'O projekte Slovensko.Digital', content: 'Načo je dobrý projekt Slovensko.Digital?', slug: 'o-projekte', is_faq: false ) -journey = Journey.create!( +journey = Journey.find_or_create_by!( position: 1, title: "Založenie živnosti", slug: "zalozenie-zivnosti", @@ -31,7 +31,7 @@ published_status: "PUBLISHED" ) -step = journey.steps.create!( +step = journey.steps.find_or_create_by!( position: 1, title: "Založte si bankový účet", slug: "zalozte-si-bankovy-ucet", @@ -46,12 +46,12 @@ ", ) -step.tasks.create!( +step.tasks.find_or_create_by!( title: "Bankový účet založený", type: "SimpleTask", ) -step = journey.steps.create!( +step = journey.steps.find_or_create_by!( position: 2, title: "Ohláste svoju živnosť", slug: "ohlaste-svoju-zivnost", @@ -68,18 +68,18 @@ ", ) -step.tasks.create!( +step.tasks.find_or_create_by!( title: "Vyplňte formulár", type: "ExternalLinkTask", url: "https://navody.digital.sk/seeded-fill-form-link" ) -step.tasks.create!( +step.tasks.find_or_create_by!( title: "Podpíšte", type: "SimpleTask", ) -step = journey.steps.create!( +step = journey.steps.find_or_create_by!( position: 3, title: "Zaregistrujte sa na DPH", slug: "zaregistrojte-sa-na-dph", @@ -96,18 +96,53 @@ ", ) -step.tasks.create!( +step.tasks.find_or_create_by!( title: "Zistite, či sa potrebujete zaregistrovať na DPH", type: "SimpleTask", ) -step.tasks.create!( +step.tasks.find_or_create_by!( title: "Zaregistrujte sa na DPH", type: "SimpleTask", ) -CurrentTopic.create!( +CurrentTopic.find_or_create_by!( # key: 'Brexit', body: 'A Brexit deal has been agreed but needs to be ratified', enabled: true ) + +Upvs::FormTemplateRelatedDocument.find_or_create_by!( + posp_id: "App.GeneralAgenda", + posp_version: "1.9", + message_type: "App.GeneralAgenda", + xsd_schema: "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n", + xslt_transformation: "Všeobecná agenda Predmet: Text:ÁnoNieÁnoNie18 and string(number(substring($dateTimeString, 1, 4))) != 'NaN' \">18 and string(number(substring($dateTimeString, 1, 4))) != 'NaN' \">" +) + +Upvs::FormTemplateRelatedDocument.find_or_create_by!( + posp_id: "00166073.MSSR_ORSR_Poziadanie_o_vyhotovenie_kopie_listiny_ulozenej_v_zbierke_listin.sk", + posp_version: "1.53", + message_type: "ks_340702", + xslt_transformation: File.read(Rails.root+"db/data/upvs_form_ks_340702.xslt") +)