decidim-consultations 0.11.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +51 -0
- data/Rakefile +3 -0
- data/app/assets/config/decidim_consultations_manifest.js +5 -0
- data/app/assets/config/decidim_consultations_manifest.scss +3 -0
- data/app/assets/images/decidim/consultations/icon.svg +70 -0
- data/app/assets/images/decidim/consultations/icon2.svg +88 -0
- data/app/assets/javascripts/decidim/consultations/show_more.js.es6 +12 -0
- data/app/assets/javascripts/decidim/consultations/social_share.js +2 -0
- data/app/assets/javascripts/decidim/consultations/utils.js.es6 +19 -0
- data/app/assets/javascripts/decidim/consultations/vote_dialog.js +36 -0
- data/app/assets/stylesheets/decidim/consultations/_question.scss +46 -0
- data/app/assets/stylesheets/decidim/consultations/_stats.scss +22 -0
- data/app/assets/stylesheets/decidim/consultations/_video_wrapper.scss +14 -0
- data/app/assets/stylesheets/decidim/consultations/banners/_block-banner.scss +39 -0
- data/app/assets/stylesheets/decidim/consultations/consultations.scss +6 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-banner.scss +13 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-card.scss +17 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-header.scss +115 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-home-banner.scss +15 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-home-intro.scss +30 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-intro.scss +11 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-title.scss +26 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations_nav.scss +7 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/introductory_image.scss +3 -0
- data/app/assets/stylesheets/decidim/consultations/highlighted-content-banner.css.scss +42 -0
- data/app/assets/stylesheets/decidim/consultations/social_share.css.scss +18 -0
- data/app/commands/decidim/consultations/admin/create_consultation.rb +61 -0
- data/app/commands/decidim/consultations/admin/create_question.rb +68 -0
- data/app/commands/decidim/consultations/admin/create_response.rb +39 -0
- data/app/commands/decidim/consultations/admin/publish_consultation.rb +34 -0
- data/app/commands/decidim/consultations/admin/publish_consultation_results.rb +34 -0
- data/app/commands/decidim/consultations/admin/publish_question.rb +34 -0
- data/app/commands/decidim/consultations/admin/unpublish_consultation.rb +34 -0
- data/app/commands/decidim/consultations/admin/unpublish_consultation_results.rb +34 -0
- data/app/commands/decidim/consultations/admin/unpublish_question.rb +34 -0
- data/app/commands/decidim/consultations/admin/update_consultation.rb +64 -0
- data/app/commands/decidim/consultations/admin/update_question.rb +72 -0
- data/app/commands/decidim/consultations/admin/update_response.rb +46 -0
- data/app/commands/decidim/consultations/unvote_question.rb +37 -0
- data/app/commands/decidim/consultations/vote_question.rb +42 -0
- data/app/constraints/decidim/consultations/current_component.rb +28 -0
- data/app/constraints/decidim/consultations/current_question.rb +36 -0
- data/app/controllers/concerns/decidim/consultations/action_authorization.rb +38 -0
- data/app/controllers/concerns/decidim/consultations/admin/consultation_admin.rb +24 -0
- data/app/controllers/concerns/decidim/consultations/admin/question_admin.rb +28 -0
- data/app/controllers/concerns/decidim/consultations/needs_consultation.rb +54 -0
- data/app/controllers/concerns/decidim/consultations/needs_question.rb +79 -0
- data/app/controllers/concerns/decidim/consultations/orderable.rb +52 -0
- data/app/controllers/decidim/consultations/admin/application_controller.rb +14 -0
- data/app/controllers/decidim/consultations/admin/categories_controller.rb +13 -0
- data/app/controllers/decidim/consultations/admin/component_permissions_controller.rb +13 -0
- data/app/controllers/decidim/consultations/admin/components_controller.rb +13 -0
- data/app/controllers/decidim/consultations/admin/consultation_publications_controller.rb +44 -0
- data/app/controllers/decidim/consultations/admin/consultation_results_publications_controller.rb +44 -0
- data/app/controllers/decidim/consultations/admin/consultations_controller.rb +100 -0
- data/app/controllers/decidim/consultations/admin/question_attachments_controller.rb +25 -0
- data/app/controllers/decidim/consultations/admin/question_publications_controller.rb +44 -0
- data/app/controllers/decidim/consultations/admin/questions_controller.rb +88 -0
- data/app/controllers/decidim/consultations/admin/responses_controller.rb +85 -0
- data/app/controllers/decidim/consultations/consultation_widgets_controller.rb +25 -0
- data/app/controllers/decidim/consultations/consultations_controller.rb +75 -0
- data/app/controllers/decidim/consultations/question_votes_controller.rb +40 -0
- data/app/controllers/decidim/consultations/question_widgets_controller.rb +26 -0
- data/app/controllers/decidim/consultations/questions_controller.rb +23 -0
- data/app/forms/decidim/consultations/admin/consultation_form.rb +56 -0
- data/app/forms/decidim/consultations/admin/question_form.rb +74 -0
- data/app/forms/decidim/consultations/admin/response_form.rb +18 -0
- data/app/forms/decidim/consultations/vote_form.rb +28 -0
- data/app/helpers/decidim/consultations/admin/consultations_helper.rb +14 -0
- data/app/helpers/decidim/consultations/admin/questions_helper.rb +14 -0
- data/app/helpers/decidim/consultations/consultations_helper.rb +17 -0
- data/app/models/concerns/decidim/consultations/override_categorization.rb +21 -0
- data/app/models/concerns/decidim/consultations/publicable_results.rb +51 -0
- data/app/models/decidim/consultation.rb +79 -0
- data/app/models/decidim/consultations/abilities/admin/consultation_admin_ability.rb +34 -0
- data/app/models/decidim/consultations/abilities/admin/question_admin_ability.rb +30 -0
- data/app/models/decidim/consultations/abilities/admin/response_admin_ability.rb +26 -0
- data/app/models/decidim/consultations/abilities/current_user_ability.rb +45 -0
- data/app/models/decidim/consultations/abilities/everyone_ability.rb +23 -0
- data/app/models/decidim/consultations/application_record.rb +9 -0
- data/app/models/decidim/consultations/question.rb +127 -0
- data/app/models/decidim/consultations/response.rb +19 -0
- data/app/models/decidim/consultations/vote.rb +26 -0
- data/app/presenters/decidim/consultations/question_stats_presenter.rb +52 -0
- data/app/queries/decidim/consultations/admin/admin_users.rb +40 -0
- data/app/queries/decidim/consultations/organization_active_consultations.rb +20 -0
- data/app/queries/decidim/consultations/organization_consultations.rb +20 -0
- data/app/queries/decidim/consultations/organization_questions.rb +20 -0
- data/app/services/decidim/consultations/consultation_search.rb +51 -0
- data/app/views/decidim/consultations/_consultation.html.erb +32 -0
- data/app/views/decidim/consultations/admin/consultations/_form.html.erb +58 -0
- data/app/views/decidim/consultations/admin/consultations/edit.html.erb +42 -0
- data/app/views/decidim/consultations/admin/consultations/index.html.erb +74 -0
- data/app/views/decidim/consultations/admin/consultations/new.html.erb +11 -0
- data/app/views/decidim/consultations/admin/questions/_form.html.erb +84 -0
- data/app/views/decidim/consultations/admin/questions/edit.html.erb +32 -0
- data/app/views/decidim/consultations/admin/questions/index.html.erb +74 -0
- data/app/views/decidim/consultations/admin/questions/new.html.erb +13 -0
- data/app/views/decidim/consultations/admin/responses/_form.html.erb +11 -0
- data/app/views/decidim/consultations/admin/responses/edit.html.erb +18 -0
- data/app/views/decidim/consultations/admin/responses/index.html.erb +48 -0
- data/app/views/decidim/consultations/admin/responses/new.html.erb +13 -0
- data/app/views/decidim/consultations/consultation_widgets/show.html.erb +5 -0
- data/app/views/decidim/consultations/consultations/_consultation_card.html.erb +24 -0
- data/app/views/decidim/consultations/consultations/_consultation_details.html.erb +17 -0
- data/app/views/decidim/consultations/consultations/_consultations.html.erb +16 -0
- data/app/views/decidim/consultations/consultations/_count.html.erb +1 -0
- data/app/views/decidim/consultations/consultations/_filters.html.erb +25 -0
- data/app/views/decidim/consultations/consultations/_filters_small_view.html.erb +23 -0
- data/app/views/decidim/consultations/consultations/_highlighted_questions.html.erb +13 -0
- data/app/views/decidim/consultations/consultations/_question.html.erb +40 -0
- data/app/views/decidim/consultations/consultations/_regular_questions.html.erb +14 -0
- data/app/views/decidim/consultations/consultations/finished.html.erb +15 -0
- data/app/views/decidim/consultations/consultations/index.html.erb +27 -0
- data/app/views/decidim/consultations/consultations/index.js.erb +10 -0
- data/app/views/decidim/consultations/consultations/show.html.erb +11 -0
- data/app/views/decidim/consultations/question_votes/update_vote_button.js.erb +9 -0
- data/app/views/decidim/consultations/question_widgets/show.html.erb +2 -0
- data/app/views/decidim/consultations/questions/_results.html.erb +15 -0
- data/app/views/decidim/consultations/questions/_right_column.html.erb +20 -0
- data/app/views/decidim/consultations/questions/_statistics.html.erb +31 -0
- data/app/views/decidim/consultations/questions/_technical_data.html.erb +38 -0
- data/app/views/decidim/consultations/questions/_vote_button.html.erb +76 -0
- data/app/views/decidim/consultations/questions/_vote_modal.html.erb +27 -0
- data/app/views/decidim/consultations/questions/_vote_modal_confirm.html.erb +33 -0
- data/app/views/decidim/consultations/questions/show.html.erb +58 -0
- data/app/views/layouts/decidim/_consultation_header.html.erb +16 -0
- data/app/views/layouts/decidim/_consultation_voting_data.html.erb +10 -0
- data/app/views/layouts/decidim/_question_components.html.erb +38 -0
- data/app/views/layouts/decidim/_question_header.html.erb +46 -0
- data/app/views/layouts/decidim/admin/consultation.html.erb +28 -0
- data/app/views/layouts/decidim/admin/consultations.html.erb +16 -0
- data/app/views/layouts/decidim/admin/question.html.erb +72 -0
- data/app/views/layouts/decidim/consultation.html.erb +17 -0
- data/app/views/layouts/decidim/consultation_choose.html.erb +7 -0
- data/app/views/layouts/decidim/question.html.erb +19 -0
- data/config/locales/ca.yml +248 -0
- data/config/locales/en.yml +249 -0
- data/config/locales/es.yml +248 -0
- data/config/locales/eu.yml +248 -0
- data/config/locales/fi.yml +248 -0
- data/config/locales/fr.yml +248 -0
- data/config/locales/gl.yml +248 -0
- data/config/locales/it.yml +248 -0
- data/config/locales/nl.yml +248 -0
- data/config/locales/pl.yml +258 -0
- data/config/locales/pt-BR.yml +248 -0
- data/config/locales/pt.yml +248 -0
- data/config/locales/ru.yml +6 -0
- data/config/locales/sv.yml +248 -0
- data/config/locales/uk.yml +6 -0
- data/db/migrate/20180109092205_create_decidim_consultations.rb +37 -0
- data/db/migrate/20180112053247_create_decidim_consultations_questions.rb +35 -0
- data/db/migrate/20180115132000_add_end_voting_date_to_decidim_consultations.rb +18 -0
- data/db/migrate/20180115170933_add_slug_to_decidim_consultations_questions.rb +32 -0
- data/db/migrate/20180119084217_create_decidim_consultations_votes.rb +17 -0
- data/db/migrate/20180119084331_add_votes_count_to_decidim_consultations_question.rb +7 -0
- data/db/migrate/20180122113155_add_origin_scope_to_decidim_consultations_questions.rb +8 -0
- data/db/migrate/20180122113400_add_origin_title_to_decidim_consultations_questions.rb +8 -0
- data/db/migrate/20180122113447_add_origin_string_to_decidim_consultations_questions.rb +7 -0
- data/db/migrate/20180126142459_add_enable_highlighted_banner_to_decidim_consultations.rb +7 -0
- data/db/migrate/20180129063438_add_i_frame_url_to_decidim_consultations_questions.rb +8 -0
- data/db/migrate/20180129063700_create_decidim_consultations_responses.rb +14 -0
- data/db/migrate/20180129122226_rename_decidim_consultations_vote_to_decidim_consultations_endorsement.rb +7 -0
- data/db/migrate/20180129122504_rename_decidim_consultations_questions_votes_count_to_endorsements_count.rb +7 -0
- data/db/migrate/20180130060754_add_responses_count_to_decidim_consultations_questions.rb +22 -0
- data/db/migrate/20180130110449_rename_vote_related_attributes.rb +9 -0
- data/db/migrate/20180130142018_add_decidim_user_group_id_to_decidim_consultations_endorsements.rb +7 -0
- data/db/migrate/20180130142411_rename_vote_indexes_to_endorsement_indexes.rb +36 -0
- data/db/migrate/20180131083844_add_response_to_decidim_consultations_endorsements.rb +10 -0
- data/db/migrate/20180201135823_rename_endorsement_to_vote.rb +23 -0
- data/db/migrate/20180202050920_add_hero_image_to_decidim_consultations_question.rb +8 -0
- data/db/migrate/20180202085309_add_results_published_at_to_decidim_consultations.rb +7 -0
- data/db/migrate/20180202133655_add_votes_count_to_decidim_consultations_response.rb +7 -0
- data/db/migrate/20180212100503_remove_enable_highlighted_banner_flag.rb +7 -0
- data/db/migrate/20180219092120_add_order_to_decidim_consultations_questions.rb +7 -0
- data/db/migrate/20180320100658_add_introductory_image_to_decidim_consultations.rb +7 -0
- data/db/seeds/Exampledocument.pdf +0 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/db/seeds/homepage_image.jpg +0 -0
- data/lib/decidim/consultations.rb +18 -0
- data/lib/decidim/consultations/admin.rb +10 -0
- data/lib/decidim/consultations/admin_engine.rb +72 -0
- data/lib/decidim/consultations/engine.rb +83 -0
- data/lib/decidim/consultations/participatory_space.rb +171 -0
- data/lib/decidim/consultations/test/factories.rb +104 -0
- data/lib/decidim/consultations/version.rb +9 -0
- metadata +288 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b5b66084360da05f75652bec1fa0da1fdbacdc0f4a0cf65b9d7ab484bcc80c9f
|
4
|
+
data.tar.gz: 738d93da5870b48e688b531db22b767aaa974e614b73da6094131fc2e119ff77
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a4bf1f802a5e94b958cecb9fd96ea70914404496053c82c82fcb6e943a5ba0bf249d18116cab1a549b13e8db66d4406270aaf4547120f0174639dd23718aaf36
|
7
|
+
data.tar.gz: 53ace30c6fec63b609ab6d301759f22d8eac0e78b2adb0c4329b80528fc91cacdc253111b65c488877261122e694b465c8ea9d57864fb68be3923a70fc035d9d
|
data/README.md
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
# Decidim::Consultations
|
2
|
+
|
3
|
+
Decidim consultatios is a Decidim plugin that allows managing public consultations.
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
This plugin provides:
|
8
|
+
|
9
|
+
* A CRUD engine to manage consultations.
|
10
|
+
|
11
|
+
* Public views for initiatives via a high level section in the main menu.
|
12
|
+
|
13
|
+
* An URL that can be used in conjunction with an iframe element in order to embed a consultation inside an external page.
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
Add this line to your application's Gemfile:
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
gem 'decidim-consultations'
|
21
|
+
```
|
22
|
+
|
23
|
+
And then execute:
|
24
|
+
|
25
|
+
```bash
|
26
|
+
bundle
|
27
|
+
bundle exec rails decidim_consultations:install:migrations
|
28
|
+
bundle exec rails db:migrate
|
29
|
+
```
|
30
|
+
|
31
|
+
## Embeding a consultation
|
32
|
+
|
33
|
+
In order to embed a consultation inside an external page we must use an iframe element. The url required to use it is
|
34
|
+
the same url for the consultation in Decidim but adding a '/embed' at the end. So for example if our consultation has
|
35
|
+
the following URL:
|
36
|
+
|
37
|
+
http://localhost:3000/consultations/sit-cumque
|
38
|
+
|
39
|
+
we should embed it using the following URL:
|
40
|
+
|
41
|
+
http://localhost:3000/consultations/sit-cumque/embed
|
42
|
+
|
43
|
+
Notice the '/embed' at the end of the URL.
|
44
|
+
|
45
|
+
## Contributing
|
46
|
+
|
47
|
+
See [Decidim](https://github.com/decidim/decidim).
|
48
|
+
|
49
|
+
## License
|
50
|
+
|
51
|
+
See [Decidim](https://github.com/decidim/decidim).
|
data/Rakefile
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg
|
3
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
4
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
5
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
6
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
8
|
+
version="1.1"
|
9
|
+
id="svg2"
|
10
|
+
viewBox="0 0 121.08785 121.08785"
|
11
|
+
height="34.173683mm"
|
12
|
+
width="34.173683mm">
|
13
|
+
<defs
|
14
|
+
id="defs4" />
|
15
|
+
<metadata
|
16
|
+
id="metadata7">
|
17
|
+
<rdf:RDF>
|
18
|
+
<cc:Work
|
19
|
+
rdf:about="">
|
20
|
+
<dc:format>image/svg+xml</dc:format>
|
21
|
+
<dc:type
|
22
|
+
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
23
|
+
<dc:title></dc:title>
|
24
|
+
</cc:Work>
|
25
|
+
</rdf:RDF>
|
26
|
+
</metadata>
|
27
|
+
<g
|
28
|
+
transform="translate(-31.864728,-35.267277)"
|
29
|
+
id="layer1">
|
30
|
+
<circle
|
31
|
+
r="59.093925"
|
32
|
+
cy="95.811203"
|
33
|
+
cx="92.408653"
|
34
|
+
id="path4136"
|
35
|
+
style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2.9000001;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
36
|
+
<rect
|
37
|
+
ry="0"
|
38
|
+
y="69.37056"
|
39
|
+
x="60.79406"
|
40
|
+
height="22.358257"
|
41
|
+
width="22.358257"
|
42
|
+
id="rect4138"
|
43
|
+
style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.63098097;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
44
|
+
<rect
|
45
|
+
style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.63100004;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
46
|
+
id="rect4140"
|
47
|
+
width="22.358257"
|
48
|
+
height="22.358257"
|
49
|
+
x="60.79406"
|
50
|
+
y="101.92418"
|
51
|
+
ry="0" />
|
52
|
+
<path
|
53
|
+
id="path4142"
|
54
|
+
d="m 94.357143,79.43363 35.393037,0"
|
55
|
+
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
56
|
+
<path
|
57
|
+
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
58
|
+
d="m 94.357143,113.43363 35.393037,0"
|
59
|
+
id="path4150" />
|
60
|
+
<text
|
61
|
+
id="text4154"
|
62
|
+
y="94.698593"
|
63
|
+
x="59.623905"
|
64
|
+
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:41.11339951px;line-height:125%;font-family:OpenSymbol;-inkscape-font-specification:OpenSymbol;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
65
|
+
xml:space="preserve"><tspan
|
66
|
+
y="94.698593"
|
67
|
+
x="59.623905"
|
68
|
+
id="tspan4156">✔</tspan></text>
|
69
|
+
</g>
|
70
|
+
</svg>
|
@@ -0,0 +1,88 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg
|
3
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
4
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
5
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
6
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
8
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
9
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
10
|
+
version="1.1"
|
11
|
+
id="svg2"
|
12
|
+
viewBox="0 0 121.08785 121.08785"
|
13
|
+
height="34.173683mm"
|
14
|
+
width="34.173683mm"
|
15
|
+
inkscape:version="0.91 r13725"
|
16
|
+
sodipodi:docname="icon-consultation-plain.svg">
|
17
|
+
<sodipodi:namedview
|
18
|
+
pagecolor="#ffffff"
|
19
|
+
bordercolor="#666666"
|
20
|
+
borderopacity="1"
|
21
|
+
objecttolerance="10"
|
22
|
+
gridtolerance="10"
|
23
|
+
guidetolerance="10"
|
24
|
+
inkscape:pageopacity="0"
|
25
|
+
inkscape:pageshadow="2"
|
26
|
+
inkscape:window-width="1869"
|
27
|
+
inkscape:window-height="1050"
|
28
|
+
id="namedview4147"
|
29
|
+
showgrid="false"
|
30
|
+
inkscape:zoom="5.0512694"
|
31
|
+
inkscape:cx="69.560452"
|
32
|
+
inkscape:cy="50.889577"
|
33
|
+
inkscape:window-x="51"
|
34
|
+
inkscape:window-y="30"
|
35
|
+
inkscape:window-maximized="1"
|
36
|
+
inkscape:current-layer="text4154" />
|
37
|
+
<defs
|
38
|
+
id="defs4" />
|
39
|
+
<metadata
|
40
|
+
id="metadata7">
|
41
|
+
<rdf:RDF>
|
42
|
+
<cc:Work
|
43
|
+
rdf:about="">
|
44
|
+
<dc:format>image/svg+xml</dc:format>
|
45
|
+
<dc:type
|
46
|
+
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
47
|
+
<dc:title />
|
48
|
+
</cc:Work>
|
49
|
+
</rdf:RDF>
|
50
|
+
</metadata>
|
51
|
+
<g
|
52
|
+
transform="translate(-31.864728,-35.267277)"
|
53
|
+
id="layer1">
|
54
|
+
<path
|
55
|
+
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.9000001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
56
|
+
d="m 92.408203,35.267578 c -33.420312,0 -60.542969,27.122657 -60.542969,60.542969 -1e-6,33.420313 27.122657,60.544923 60.542969,60.544923 33.420317,0 60.544927,-27.12461 60.544917,-60.544923 0,-33.420313 -27.1246,-60.54297 -60.544917,-60.542969 z m 0,2.900391 c 31.853037,-10e-7 57.644527,25.789542 57.644527,57.642578 1e-5,31.853033 -25.79149,57.644533 -57.644527,57.644533 -31.853036,0 -57.642579,-25.7915 -57.642578,-57.644533 0,-31.853036 25.789543,-57.642578 57.642578,-57.642578 z"
|
57
|
+
id="path4136"
|
58
|
+
inkscape:connector-curvature="0" />
|
59
|
+
<path
|
60
|
+
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.63098097;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
61
|
+
d="m 58.978516,67.554688 0,1.816406 0,24.173828 25.990234,0 0,-25.990234 -25.990234,0 z m 3.630859,3.630859 18.726563,0 0,18.728515 -18.726563,0 0,-18.728515 z"
|
62
|
+
id="rect4138"
|
63
|
+
inkscape:connector-curvature="0" />
|
64
|
+
<path
|
65
|
+
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.63100004;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
66
|
+
d="m 58.978516,100.10938 0,1.81445 0,24.17383 25.990234,0 0,-25.98828 -25.990234,0 z m 3.630859,3.63085 18.726563,0 0,18.72657 -18.726563,0 0,-18.72657 z"
|
67
|
+
id="rect4140"
|
68
|
+
inkscape:connector-curvature="0" />
|
69
|
+
<path
|
70
|
+
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
71
|
+
d="m 94.357422,76.933594 0,5 35.392578,0 0,-5 -35.392578,0 z"
|
72
|
+
id="path4142"
|
73
|
+
inkscape:connector-curvature="0" />
|
74
|
+
<path
|
75
|
+
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
76
|
+
d="m 94.357422,110.93359 0,5 35.392578,0 0,-5 -35.392578,0 z"
|
77
|
+
id="path4150"
|
78
|
+
inkscape:connector-curvature="0" />
|
79
|
+
<g
|
80
|
+
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:41.11339951px;line-height:125%;font-family:OpenSymbol;-inkscape-font-specification:OpenSymbol;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
81
|
+
id="text4154">
|
82
|
+
<path
|
83
|
+
d="m 89.716183,63.201072 0.702622,1.02382 q -4.838051,3.673707 -9.957151,10.318499 -4.737677,6.22322 -7.608388,12.225616 -2.228314,1.465468 -3.974831,2.870711 -2.710112,-8.873107 -6.303519,-10.3185 2.027565,-2.308614 3.994905,-2.308614 1.686292,0 4.075205,5.641048 7.668613,-12.948312 19.071157,-19.45258 z"
|
84
|
+
style=""
|
85
|
+
id="path4153" />
|
86
|
+
</g>
|
87
|
+
</g>
|
88
|
+
</svg>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/* eslint-disable no-invalid-this, no-undefined */
|
2
|
+
|
3
|
+
(() => {
|
4
|
+
$(".vote-button-caption").mouseover(function () {
|
5
|
+
const replaceText = $(this).data("replace");
|
6
|
+
|
7
|
+
if (replaceText !== null && replaceText !== undefined && replaceText !== "") {
|
8
|
+
$(this).text(replaceText);
|
9
|
+
}
|
10
|
+
});
|
11
|
+
|
12
|
+
$(".vote-button-caption").mouseout(function () {
|
13
|
+
const originalText = $(this).data("original");
|
14
|
+
|
15
|
+
if (originalText !== null && originalText !== undefined && originalText !== "") {
|
16
|
+
$(this).text(originalText);
|
17
|
+
}
|
18
|
+
});
|
19
|
+
})(this);
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/* eslint-disable no-invalid-this */
|
2
|
+
|
3
|
+
$(document).ready(function () {
|
4
|
+
let button = $("#vote_button"),
|
5
|
+
buttonChange = $("#question-vote-confirm-modal-button-change"),
|
6
|
+
responseButtons = $(".response-title"),
|
7
|
+
voteConfirmDialog = $("#question-vote-confirm-modal"),
|
8
|
+
voteDialog = $("#question-vote-modal");
|
9
|
+
|
10
|
+
if (voteDialog.length && button.length) {
|
11
|
+
button.click(function () {
|
12
|
+
voteDialog.foundation("open");
|
13
|
+
});
|
14
|
+
}
|
15
|
+
|
16
|
+
if (voteDialog.length && responseButtons.length && voteConfirmDialog.length) {
|
17
|
+
responseButtons.click(function () {
|
18
|
+
$("#question-vote-confirm-modal-question-title").text($(this).text());
|
19
|
+
$("#decidim_consultations_response_id").val($(this).data("response-id"));
|
20
|
+
|
21
|
+
voteDialog.foundation("close");
|
22
|
+
voteConfirmDialog.foundation("open");
|
23
|
+
});
|
24
|
+
}
|
25
|
+
|
26
|
+
if (buttonChange.length && voteDialog.length && voteConfirmDialog.length) {
|
27
|
+
buttonChange.click(function() {
|
28
|
+
voteConfirmDialog.foundation("close");
|
29
|
+
voteDialog.foundation("open");
|
30
|
+
});
|
31
|
+
}
|
32
|
+
|
33
|
+
$("#confirm-vote-form").on("ajax:success", function() {
|
34
|
+
voteConfirmDialog.foundation("close");
|
35
|
+
});
|
36
|
+
});
|
@@ -0,0 +1,46 @@
|
|
1
|
+
.question-group-heading{
|
2
|
+
text-transform: uppercase;
|
3
|
+
}
|
4
|
+
|
5
|
+
.question-header{
|
6
|
+
margin-top: 3em;
|
7
|
+
margin-bottom: 1.5em;
|
8
|
+
|
9
|
+
.heading1{
|
10
|
+
text-align: center;
|
11
|
+
font-size: 4em;
|
12
|
+
}
|
13
|
+
|
14
|
+
.question-hashtag{
|
15
|
+
text-align: center;
|
16
|
+
font-weight: bold;
|
17
|
+
font-size: 1.5em;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.question-header-data{
|
22
|
+
.question-header-data-group{
|
23
|
+
margin-bottom: 1em;
|
24
|
+
font-size: 1.2em;
|
25
|
+
|
26
|
+
.question-eader-data-group-title{
|
27
|
+
text-transform: uppercase;
|
28
|
+
color: #857d84;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.question-header-data-group:last-child{
|
33
|
+
margin-bottom: 0;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.question-vote-cabin{
|
38
|
+
margin-bottom: 3em;
|
39
|
+
|
40
|
+
.vote-button-caption{
|
41
|
+
font-size: 1.5em;
|
42
|
+
text-transform: uppercase;
|
43
|
+
font-weight: bold;
|
44
|
+
color: white;
|
45
|
+
}
|
46
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
.consultation-statistics{
|
2
|
+
margin-top: 3em;
|
3
|
+
display: flex;
|
4
|
+
flex-flow: row wrap;
|
5
|
+
justify-content: flex-start;
|
6
|
+
align-items: center;
|
7
|
+
align-content: stretch;
|
8
|
+
|
9
|
+
.definition-data__item{
|
10
|
+
flex-basis: 50%;
|
11
|
+
border-bottom: 0;
|
12
|
+
border-top: 1px solid rgb(232, 232, 232);
|
13
|
+
}
|
14
|
+
|
15
|
+
.definition-data__item:nth-child(-n+2){
|
16
|
+
border-top: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
.definition-data__item:nth-child(odd){
|
20
|
+
border-right: 1px solid rgb(232, 232, 232);
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
.block-banner{
|
2
|
+
background-repeat: no-repeat;
|
3
|
+
padding: 1rem;
|
4
|
+
|
5
|
+
@include breakpoint(medium down){
|
6
|
+
background-image: none !important;
|
7
|
+
padding-bottom: 1rem;
|
8
|
+
|
9
|
+
.card__content{
|
10
|
+
padding-bottom: 0;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
@include breakpoint(medium){
|
15
|
+
background-position: right -400px center;
|
16
|
+
padding-left: 1.5rem;
|
17
|
+
padding-right: 1.5rem;
|
18
|
+
|
19
|
+
.card__content{
|
20
|
+
height: 100%;
|
21
|
+
display: flex;
|
22
|
+
flex-direction: column;
|
23
|
+
justify-content: center;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
@include breakpoint(large){
|
28
|
+
padding-left: 4rem;
|
29
|
+
padding-right: 4rem;
|
30
|
+
|
31
|
+
.card__content{
|
32
|
+
padding-left: 0;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
p:last-child{
|
37
|
+
margin-bottom: 0;
|
38
|
+
}
|
39
|
+
}
|