|
32 | 32 | resource.card = "decidim/budgets/project" |
33 | 33 | resource.actions = %(vote) |
34 | 34 | resource.searchable = true |
35 | | - # resource.route_name = "budget_project" |
36 | 35 | end |
37 | 36 |
|
38 | 37 | component.register_stat :budgets_count, primary: true, priority: Decidim::StatsRegistry::LOW_PRIORITY do |components| |
|
89 | 88 | end |
90 | 89 |
|
91 | 90 | component.seeds do |participatory_space| |
| 91 | + landing_page_content = Decidim::Faker::Localized.localized do |
| 92 | + "<h2>#{::Faker::Lorem.sentence}</h2>" \ |
| 93 | + "<p>#{::Faker::Lorem.paragraph}</p>" \ |
| 94 | + "<p>#{::Faker::Lorem.paragraph}</p>" |
| 95 | + end |
| 96 | + |
92 | 97 | component = Decidim::Component.create!( |
93 | 98 | name: Decidim::Components::Namer.new(participatory_space.organization.available_locales, :budgets).i18n_name, |
94 | 99 | manifest_name: :budgets, |
95 | 100 | published_at: Time.current, |
96 | 101 | participatory_space: participatory_space, |
97 | 102 | settings: { |
98 | | - title: Decidim::Faker::Localized.sentence(4), |
99 | | - description: Decidim::Faker::Localized.paragraph(3), |
100 | | - highlighted_heading: Decidim::Faker::Localized.sentence(4), |
101 | | - list_heading: Decidim::Faker::Localized.sentence(4), |
102 | | - more_information: Decidim::Faker::Localized.sentence(4), |
| 103 | + landing_page_content: landing_page_content, |
| 104 | + more_information_modal: Decidim::Faker::Localized.paragraph(4), |
103 | 105 | workflow: %w(one random all).sample |
104 | 106 | } |
105 | 107 | ) |
|
0 commit comments