decidim-dev 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/decidim/dummy.svg +1 -4
  3. data/app/assets/images/decidim/gamification/badges/test.svg +1 -145
  4. data/app/commands/decidim/dummy_resources/create_dummy_resource.rb +48 -0
  5. data/app/forms/decidim/dummy_resources/dummy_resource_form.rb +3 -0
  6. data/config/locales/bg-BG.yml +56 -0
  7. data/config/locales/ca.yml +15 -0
  8. data/config/locales/cs.yml +16 -1
  9. data/config/locales/da-DK.yml +1 -0
  10. data/config/locales/de.yml +16 -0
  11. data/config/locales/el.yml +55 -0
  12. data/config/locales/en.yml +15 -0
  13. data/config/locales/es-MX.yml +15 -0
  14. data/config/locales/es-PY.yml +15 -0
  15. data/config/locales/es.yml +15 -0
  16. data/config/locales/et-EE.yml +1 -0
  17. data/config/locales/fi-plain.yml +15 -0
  18. data/config/locales/fi.yml +15 -0
  19. data/config/locales/fr-CA.yml +56 -0
  20. data/config/locales/fr.yml +15 -0
  21. data/config/locales/ga-IE.yml +1 -0
  22. data/config/locales/hr-HR.yml +1 -0
  23. data/config/locales/hu.yml +9 -0
  24. data/config/locales/it.yml +17 -2
  25. data/config/locales/ja-JP.yml +56 -0
  26. data/config/locales/lt-LT.yml +1 -0
  27. data/config/locales/lv-LV.yml +54 -0
  28. data/config/locales/mt-MT.yml +1 -0
  29. data/config/locales/nl.yml +15 -0
  30. data/config/locales/pl.yml +26 -10
  31. data/config/locales/pt-BR.yml +1 -1
  32. data/config/locales/pt.yml +26 -10
  33. data/config/locales/ro-RO.yml +56 -0
  34. data/config/locales/sk-SK.yml +47 -0
  35. data/config/locales/sk.yml +47 -0
  36. data/config/locales/sl.yml +5 -0
  37. data/config/locales/sr-CS.yml +8 -0
  38. data/config/locales/sv.yml +15 -0
  39. data/lib/decidim/dev/assets/city.jpeg +0 -0
  40. data/lib/decidim/dev/assets/city2.jpeg +0 -0
  41. data/lib/decidim/dev/assets/city3.jpeg +0 -0
  42. data/lib/decidim/dev/test/rspec_support/authorization.rb +3 -0
  43. data/lib/decidim/dev/test/rspec_support/capybara_data_picker.rb +15 -5
  44. data/lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb +5 -5
  45. data/lib/decidim/dev/test/rspec_support/component.rb +71 -2
  46. data/lib/decidim/dev/test/rspec_support/confirmation_helpers.rb +60 -0
  47. data/lib/decidim/dev/test/rspec_support/helpers.rb +2 -2
  48. data/lib/decidim/dev/version.rb +1 -1
  49. metadata +23 -7
  50. data/lib/decidim/dev/test/rspec_support/capybara_proposals_picker.rb +0 -51
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16cb321301cad2fcaa075c00cfbc9b075d962323c24d52ce7a415f94349db4ad
4
- data.tar.gz: b02b5b125dde731534bd7512e7c20147ce1f0c80c6138842a8c6392131059caa
3
+ metadata.gz: e917ca4fca218c7c066b363bedddecbafac694a6afc05a6325506bf948b4373b
4
+ data.tar.gz: 40818b7b986dcad7b70828f0afcee8249c04341540fe0fe25c650841611ecb29
5
5
  SHA512:
6
- metadata.gz: 6b60968375be5a5e28fa9c875b3617e852039039fdcddb9fc436dea6b353d1be65a16cf987f62ea6cfd9e18585824b49c567d5853f7b1eff3d8aea71c19fa1fc
7
- data.tar.gz: d8f7d20d64d0b4293471a4938e3588e634a86a6862b00bdd756f7b08251950ad9e1be1575c862fa5a1983061589432ed83740271ce459be7b5c18fa489ee599b
6
+ metadata.gz: 647ed182019d7a36d37ddbe533a47e145285ffbc81a29bb43f10fb201c2c4f79a318b7745b0192736f952a6bd2bf6165367d2f28170004a0b6d7b9834705cde1
7
+ data.tar.gz: 96db556bffee8ed3e333256986dfab6e71b826a2c9ef207dae0c56bc0284e097e0858c809a77d3cea45aa0207fdaf91499d3d4d90e481022bda52eef2e09dcf4
@@ -1,4 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36.02 36.02">
2
- <circle cx="18.01" cy="18.01" r="15.75" stroke="#2ecc71" stroke-width="4" fill="none"></circle>
3
- <circle cx="18.01" cy="18.01" r="11.25" stroke="#08BCD0" stroke-width="4" fill="none" />
4
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36.02 36.02"><circle cx="18.01" cy="18.01" r="15.75" fill="none" stroke="#2ecc71" stroke-width="4"/><circle cx="18.01" cy="18.01" r="11.25" fill="none" stroke="#08BCD0" stroke-width="4"/></svg>
@@ -1,145 +1 @@
1
- <svg version="1.1" id="proposals-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
2
- y="0px" width="1080px" height="1080px" viewBox="0 0 1080 1080" enable-background="new 0 0 1080 1080" xml:space="preserve">
3
- <g id="proposals" class="stroke-primary">
4
- <g id="sleeve">
5
-
6
- <rect class="fill-primary" id="_x32_5-pct_1_" x="419.5" y="798.5" fill="#31536E" fill-opacity="0.25" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="251" height="286"/>
7
- <rect class="fill-primary" x="419.5" y="911.5" fill="#31536E" width="251" height="173"/>
8
- <circle fill="#FFFFFF" stroke="#31536E" stroke-width="8" stroke-miterlimit="10" cx="615.667" cy="864.668" r="22.5"/>
9
- <circle class="fill-primary" fill="#31536E" cx="615.5" cy="864.5" r="13"/>
10
- </g>
11
- <g>
12
- <g id="hand">
13
-
14
- <path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
15
- M650.395,674.5c51.605,0,58.62-90.165,64.562-154.237"/>
16
-
17
- <line fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="457.5" y1="798.5" x2="457.5" y2="667.689"/>
18
-
19
- <line fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="646.5" y1="675.5" x2="646.5" y2="798.5"/>
20
-
21
- <path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
22
- M451.324,498.5c0,0,31.176-4,64.176-32s32-81-4-111c-22,12-156,79-156,79l0,0v74c0,17.992-2.5,41,1.577,65.972
23
- C377.942,619.5,401.5,665,466.031,667.689"/>
24
-
25
- <path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
26
- M505.818,513.229c12.682,29.272,13.405,80.272,8.682,102.271"/>
27
-
28
- <path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
29
- M468.5,380.5v-14.282c0-28.564,17.923-51.718,42.5-51.718l0,0c24.577,0,44.5,23.154,44.5,51.718v95.564
30
- c0,28.563-19.923,51.718-44.5,51.718l0,0c-17.737,0-25.049-1.979-32.199-19.428"/>
31
-
32
- <path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
33
- M548.052,337.583c7.849-8.05,19.034-13.083,31.448-13.083l0,0c23.748,0,43,18.419,43,41.141v94.719
34
- c0,22.721-19.252,41.14-43,41.14l0,0c-11.874,0-22.624-4.605-30.406-12.05"/>
35
-
36
- <path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
37
- M621.341,356.167c6.171-4.207,13.628-6.667,21.659-6.667l0,0c21.263,0,38.5,17.237,38.5,38.5v81c0,21.263-17.237,38.5-38.5,38.5
38
- l0,0c-13.871,0-26.029-7.336-32.807-18.34"/>
39
-
40
- <path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
41
- M681.973,386.233c4.827-4.194,9.131-6.733,16.027-6.733l0,0c15.188,0,27.5,12.312,27.5,27.5v89c0,15.188-12.312,27.5-27.5,27.5
42
- l0,0c-15.188,0-27.5-12.312-27.5-27.5"/>
43
- <path class="fill-primary" id="_x32_5-pct_2_" fill="#31536E" fill-opacity="0.25" d="M688,523.5c-15.188,0-27.5-12.312-27.5-27.5l0.008-0.075
44
- C653.52,503.064,643.779,507.5,633,507.5c-13.871,0-26.028-7.336-32.807-18.339c-7.803,7.611-18.669,12.339-30.693,12.339
45
- c-11.874,0-22.624-4.605-30.406-12.051l-0.006-0.91C531.29,503.501,517.15,513.5,501,513.5c-10.683,0-18.826-16-27.386-20.245
46
- c-5.651-2.803-13.74,8.544-14.813,0.817l10,35C475.952,546.522,490.26,623.5,524,623.5c16.15,0,18.094-67.051,18.094-67.051
47
- c7.782,7.445,8.532,23.051,20.406,23.051c12.024,0,29.891-47.728,37.693-55.339C606.972,535.164,619.129,542.5,633,542.5
48
- c10.779,0,20.52-4.436,27.508-11.575L660.5,531c0,15.188,12.312,27.5,27.5,27.5s27.5-12.312,27.5-27.5v-35
49
- C715.5,511.188,703.188,523.5,688,523.5z"/>
50
- <path fill="none" stroke="#31536E" stroke-width="8" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
51
- M473.499,373.498c0,0,12.987,26.002,22.994,22.002s32.046-23.229,32.046-23.229"/>
52
-
53
- <path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
54
- M542.539,502.5c12.047,5.577,23.875,74.756,22.961,69"/>
55
- </g>
56
- </g>
57
-
58
- <line fill="none" stroke="#31536E" stroke-width="8" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="638.5" y1="864.5" x2="648.5" y2="864.5"/>
59
-
60
- <line fill="none" stroke="#31536E" stroke-width="8" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="580.5" y1="864.5" x2="593.5" y2="864.5"/>
61
- <path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
62
- M426.638,477.259"/>
63
- <path fill="none" stroke="#31536E" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
64
- M469.333,347.889V99.028c0-23.58-19.115-42.695-42.695-42.695l0,0c-23.58,0-42.696,19.115-42.696,42.695v320.536"/>
65
-
66
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-miterlimit="10" x1="404.098" y1="165.608" x2="447.455" y2="165.608"/>
67
-
68
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-miterlimit="10" x1="404.098" y1="269.608" x2="447.455" y2="269.608"/>
69
-
70
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-miterlimit="10" x1="404.098" y1="387.608" x2="447.455" y2="387.608"/>
71
- <g id="stars_2" class="stars">
72
-
73
- <path fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
74
- M137.5,645.605c0-14.688-18.667-35.354-35.355-35.354c15.355,0,35.355-20.333,35.355-35.354c0,15.021,16.666,35.354,35.355,35.354
75
- C153.833,610.251,137.5,630.918,137.5,645.605z"/>
76
- <g>
77
-
78
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="1008.882" cy="708.662" r="13.5"/>
79
-
80
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="992.383" y1="691.927" x2="971.17" y2="670.714"/>
81
-
82
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="1026.324" y1="725.868" x2="1047.537" y2="747.081"/>
83
-
84
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="1025.617" y1="692.634" x2="1046.83" y2="671.421"/>
85
-
86
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="992.383" y1="725.868" x2="971.17" y2="747.081"/>
87
- </g>
88
- <g>
89
-
90
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="212.112" y1="161.345" x2="185.95" y2="187.508"/>
91
-
92
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="176.758" y1="196.701" x2="150.595" y2="222.864"/>
93
-
94
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="211.405" y1="222.864" x2="185.242" y2="196.701"/>
95
-
96
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="176.051" y1="187.508" x2="149.888" y2="161.345"/>
97
- </g>
98
-
99
- <path fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
100
- M833.092,333.86c0,0-24.604,4.603-30.25,10.249c-5.646,5.646-10.248,30.249-10.248,30.249s-4.604-24.603-10.25-30.249
101
- c-5.646-5.646-30.248-10.249-30.248-10.249s25.188-5.187,30.248-10.249c5.062-5.062,10.25-30.249,10.25-30.249
102
- s4.604,24.603,10.248,30.249C808.488,329.257,833.092,333.86,833.092,333.86z"/>
103
- <g>
104
-
105
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="978.834" cy="500.751" r="18.5"/>
106
-
107
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="938.834" cy="500.751" r="7.166"/>
108
-
109
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="978.834" cy="540.751" r="7.166"/>
110
-
111
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="1018.834" cy="500.751" r="7.166"/>
112
-
113
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="978.834" cy="460.751" r="7.166"/>
114
- </g>
115
- <g>
116
-
117
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="296.246" y1="682.224" x2="351.149" y2="737.129"/>
118
-
119
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="351.149" y1="682.224" x2="296.246" y2="737.129"/>
120
-
121
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="305.5" y1="709.251" x2="278.5" y2="709.251"/>
122
-
123
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="343.5" y1="709.251" x2="370.5" y2="709.251"/>
124
-
125
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="324.5" y1="728.251" x2="324.5" y2="755.251"/>
126
-
127
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="324.5" y1="690.251" x2="324.5" y2="663.251"/>
128
- </g>
129
- <g>
130
-
131
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="629.5" y1="122.251" x2="629.5" y2="201.251"/>
132
-
133
- <line fill="none" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="668.5" y1="162.251" x2="589.5" y2="162.251"/>
134
-
135
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="609.5" cy="181.751" r="7.039"/>
136
-
137
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="609.5" cy="141.751" r="7.039"/>
138
-
139
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="649.5" cy="181.751" r="7.039"/>
140
-
141
- <circle fill="#FFD92B" stroke="#31536E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="649.5" cy="141.751" r="7.039"/>
142
- </g>
143
- </g>
144
- </g>
145
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="proposals-svg" width="1080" height="1080" x="0" y="0" enable-background="new 0 0 1080 1080" version="1.1" viewBox="0 0 1080 1080" xml:space="preserve"><g id="proposals" class="stroke-primary"><g id="sleeve"><rect id="_x32_5-pct_1_" width="251" height="286" x="419.5" y="798.5" fill="#31536E" fill-opacity=".25" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" class="fill-primary"/><rect width="251" height="173" x="419.5" y="911.5" fill="#31536E" class="fill-primary"/><circle cx="615.667" cy="864.668" r="22.5" fill="#FFF" stroke="#31536E" stroke-miterlimit="10" stroke-width="8"/><circle cx="615.5" cy="864.5" r="13" fill="#31536E" class="fill-primary"/></g><g><g id="hand"><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M650.395,674.5c51.605,0,58.62-90.165,64.562-154.237"/><line x1="457.5" x2="457.5" y1="798.5" y2="667.689" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16"/><line x1="646.5" x2="646.5" y1="675.5" y2="798.5" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M451.324,498.5c0,0,31.176-4,64.176-32s32-81-4-111c-22,12-156,79-156,79l0,0v74c0,17.992-2.5,41,1.577,65.972 C377.942,619.5,401.5,665,466.031,667.689"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M505.818,513.229c12.682,29.272,13.405,80.272,8.682,102.271"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M468.5,380.5v-14.282c0-28.564,17.923-51.718,42.5-51.718l0,0c24.577,0,44.5,23.154,44.5,51.718v95.564 c0,28.563-19.923,51.718-44.5,51.718l0,0c-17.737,0-25.049-1.979-32.199-19.428"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M548.052,337.583c7.849-8.05,19.034-13.083,31.448-13.083l0,0c23.748,0,43,18.419,43,41.141v94.719 c0,22.721-19.252,41.14-43,41.14l0,0c-11.874,0-22.624-4.605-30.406-12.05"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M621.341,356.167c6.171-4.207,13.628-6.667,21.659-6.667l0,0c21.263,0,38.5,17.237,38.5,38.5v81c0,21.263-17.237,38.5-38.5,38.5 l0,0c-13.871,0-26.029-7.336-32.807-18.34"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M681.973,386.233c4.827-4.194,9.131-6.733,16.027-6.733l0,0c15.188,0,27.5,12.312,27.5,27.5v89c0,15.188-12.312,27.5-27.5,27.5 l0,0c-15.188,0-27.5-12.312-27.5-27.5"/><path id="_x32_5-pct_2_" fill="#31536E" fill-opacity=".25" d="M688,523.5c-15.188,0-27.5-12.312-27.5-27.5l0.008-0.075 C653.52,503.064,643.779,507.5,633,507.5c-13.871,0-26.028-7.336-32.807-18.339c-7.803,7.611-18.669,12.339-30.693,12.339 c-11.874,0-22.624-4.605-30.406-12.051l-0.006-0.91C531.29,503.501,517.15,513.5,501,513.5c-10.683,0-18.826-16-27.386-20.245 c-5.651-2.803-13.74,8.544-14.813,0.817l10,35C475.952,546.522,490.26,623.5,524,623.5c16.15,0,18.094-67.051,18.094-67.051 c7.782,7.445,8.532,23.051,20.406,23.051c12.024,0,29.891-47.728,37.693-55.339C606.972,535.164,619.129,542.5,633,542.5 c10.779,0,20.52-4.436,27.508-11.575L660.5,531c0,15.188,12.312,27.5,27.5,27.5s27.5-12.312,27.5-27.5v-35 C715.5,511.188,703.188,523.5,688,523.5z" class="fill-primary"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8" d="M473.499,373.498c0,0,12.987,26.002,22.994,22.002s32.046-23.229,32.046-23.229"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M542.539,502.5c12.047,5.577,23.875,74.756,22.961,69"/></g></g><line x1="638.5" x2="648.5" y1="864.5" y2="864.5" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8"/><line x1="580.5" x2="593.5" y1="864.5" y2="864.5" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M426.638,477.259"/><path fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M469.333,347.889V99.028c0-23.58-19.115-42.695-42.695-42.695l0,0c-23.58,0-42.696,19.115-42.696,42.695v320.536"/><line x1="404.098" x2="447.455" y1="165.608" y2="165.608" fill="none" stroke="#31536E" stroke-miterlimit="10" stroke-width="4"/><line x1="404.098" x2="447.455" y1="269.608" y2="269.608" fill="none" stroke="#31536E" stroke-miterlimit="10" stroke-width="4"/><line x1="404.098" x2="447.455" y1="387.608" y2="387.608" fill="none" stroke="#31536E" stroke-miterlimit="10" stroke-width="4"/><g id="stars_2" class="stars"><path fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4" d="M137.5,645.605c0-14.688-18.667-35.354-35.355-35.354c15.355,0,35.355-20.333,35.355-35.354c0,15.021,16.666,35.354,35.355,35.354 C153.833,610.251,137.5,630.918,137.5,645.605z"/><g><circle cx="1008.882" cy="708.662" r="13.5" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="992.383" x2="971.17" y1="691.927" y2="670.714" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="1026.324" x2="1047.537" y1="725.868" y2="747.081" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="1025.617" x2="1046.83" y1="692.634" y2="671.421" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="992.383" x2="971.17" y1="725.868" y2="747.081" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="212.112" x2="185.95" y1="161.345" y2="187.508" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="176.758" x2="150.595" y1="196.701" y2="222.864" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="211.405" x2="185.242" y1="222.864" y2="196.701" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="176.051" x2="149.888" y1="187.508" y2="161.345" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><path fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4" d="M833.092,333.86c0,0-24.604,4.603-30.25,10.249c-5.646,5.646-10.248,30.249-10.248,30.249s-4.604-24.603-10.25-30.249 c-5.646-5.646-30.248-10.249-30.248-10.249s25.188-5.187,30.248-10.249c5.062-5.062,10.25-30.249,10.25-30.249 s4.604,24.603,10.248,30.249C808.488,329.257,833.092,333.86,833.092,333.86z"/><g><circle cx="978.834" cy="500.751" r="18.5" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="938.834" cy="500.751" r="7.166" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="978.834" cy="540.751" r="7.166" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="1018.834" cy="500.751" r="7.166" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="978.834" cy="460.751" r="7.166" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="296.246" x2="351.149" y1="682.224" y2="737.129" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="351.149" x2="296.246" y1="682.224" y2="737.129" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="305.5" x2="278.5" y1="709.251" y2="709.251" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="343.5" x2="370.5" y1="709.251" y2="709.251" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="324.5" x2="324.5" y1="728.251" y2="755.251" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="324.5" x2="324.5" y1="690.251" y2="663.251" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="629.5" x2="629.5" y1="122.251" y2="201.251" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="668.5" x2="589.5" y1="162.251" y2="162.251" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="609.5" cy="181.751" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="609.5" cy="141.751" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="649.5" cy="181.751" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="649.5" cy="141.751" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g></g></g></svg>
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module DummyResources
5
+ class CreateDummyResource < Rectify::Command
6
+ include Decidim::AttachmentMethods
7
+ include Decidim::GalleryMethods
8
+
9
+ def initialize(form)
10
+ @form = form
11
+ end
12
+
13
+ # Creates the dummy_resource if valid.
14
+ #
15
+ # Broadcasts :ok if successful, :invalid otherwise.
16
+ def call
17
+ return broadcast(:invalid) if @form.invalid?
18
+
19
+ if process_gallery?
20
+ build_gallery
21
+ return broadcast(:invalid) if gallery_invalid?
22
+ end
23
+
24
+ transaction do
25
+ create_dummy_resource
26
+ create_gallery if process_gallery?
27
+ end
28
+
29
+ broadcast(:ok)
30
+ end
31
+
32
+ private
33
+
34
+ attr_reader :form, :dummy_resource, :gallery
35
+
36
+ def create_dummy_resource
37
+ @dummy_resource = DummyResource.create!(
38
+ title: form.title,
39
+ body: form.body,
40
+ component: form.current_component,
41
+ author: form.current_user
42
+ )
43
+
44
+ @attached_to = @dummy_resource
45
+ end
46
+ end
47
+ end
48
+ end
@@ -7,6 +7,9 @@ module Decidim
7
7
 
8
8
  attribute :title, String
9
9
  attribute :body, String
10
+ attribute :attachment, AttachmentForm
11
+ attribute :photos, Array[String]
12
+ attribute :add_photos, Array
10
13
 
11
14
  validates :title, :body, presence: true, etiquette: true
12
15
  validates :title, length: { maximum: 150 }
@@ -0,0 +1,56 @@
1
+ bg:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Създаден на
6
+ decidim_scope_id: Сфера
7
+ field: Моето поле
8
+ start_date: Начална дата
9
+ title: Заглавие
10
+ translatable_text: Преводим текст
11
+ updated_at: Обновен на
12
+ decidim:
13
+ components:
14
+ dummy:
15
+ settings:
16
+ global:
17
+ readonly_attribute: Само за четене атрибут
18
+ test: А тест
19
+ test_choices:
20
+ a: А избор
21
+ b: Б избор
22
+ c: В избор
23
+ step:
24
+ endorsements_blocked: Одобряване забранено
25
+ endorsements_enabled: Одобряване разрешено
26
+ readonly_step_attribute: Само за четене стъпков атрибут
27
+ dummy:
28
+ admin:
29
+ exports:
30
+ dummies: Примери
31
+ gamification:
32
+ badges:
33
+ test:
34
+ conditions:
35
+ - Използвайте тестова среда за decidim.
36
+ description: Участниците получават тази значка като създават тестове.
37
+ description_another: Участниците създадоха %{score} теста.
38
+ description_own: Вие създадохте %{score} теста.
39
+ name: Тестове
40
+ next_level_in: Създайте още %{score} теста за да достигнете следващо ниво!
41
+ unearned_another: Този участник все още не е създал тест.
42
+ unearned_own: Вие все още не сте създали тест.
43
+ pages:
44
+ home:
45
+ statistics:
46
+ bar: Нещо1
47
+ dummies_count_high: Пример за максимум
48
+ dummies_count_medium: Пример за средно
49
+ foo: Нещо2
50
+ participatory_processes:
51
+ statistics:
52
+ dummies_count_high: Пример за максимум
53
+ dummies_count_medium: Пример за средно
54
+ resource_links:
55
+ test_link:
56
+ dummy_resource_dummy: Пример за свързан
@@ -3,12 +3,27 @@ ca:
3
3
  attributes:
4
4
  dummy_resource:
5
5
  created_at: Creat el
6
+ decidim_scope_id: Àmbit
6
7
  field: El meu camp
7
8
  start_date: Data d'inici
8
9
  title: Títol
9
10
  translatable_text: Text traduïble
10
11
  updated_at: Actualitzat el
11
12
  decidim:
13
+ components:
14
+ dummy:
15
+ settings:
16
+ global:
17
+ readonly_attribute: Atribut de només lectura
18
+ test: Test A
19
+ test_choices:
20
+ a: Opció A
21
+ b: Opció B
22
+ c: Opció C
23
+ step:
24
+ endorsements_blocked: Adhesions bloquejades
25
+ endorsements_enabled: Adhesions habilitades
26
+ readonly_step_attribute: Atribut de només lectura
12
27
  dummy:
13
28
  admin:
14
29
  exports:
@@ -2,13 +2,28 @@ cs:
2
2
  activemodel:
3
3
  attributes:
4
4
  dummy_resource:
5
- created_at: Vytvořeno u
5
+ created_at: Vytvořeno v
6
+ decidim_scope_id: Oblast působnosti
6
7
  field: Moje pole
7
8
  start_date: Počáteční datum
8
9
  title: Titul
9
10
  translatable_text: Přeložitelný text
10
11
  updated_at: Aktualizováno na
11
12
  decidim:
13
+ components:
14
+ dummy:
15
+ settings:
16
+ global:
17
+ readonly_attribute: Atribut pouze pro čtení
18
+ test: Zkouška A
19
+ test_choices:
20
+ a: Volba A
21
+ b: Volba B
22
+ c: Volba C
23
+ step:
24
+ endorsements_blocked: Schvalování blokováno
25
+ endorsements_enabled: Schvalování povoleno
26
+ readonly_step_attribute: Atribut krok čtení
12
27
  dummy:
13
28
  admin:
14
29
  exports:
@@ -0,0 +1 @@
1
+ da:
@@ -3,11 +3,27 @@ de:
3
3
  attributes:
4
4
  dummy_resource:
5
5
  created_at: Hergestellt in
6
+ decidim_scope_id: Umfang
6
7
  field: Mein Feld
7
8
  start_date: Anfangsdatum
8
9
  title: Titel
10
+ translatable_text: Übersetzbarer Text
9
11
  updated_at: Aktualisiert am
10
12
  decidim:
13
+ components:
14
+ dummy:
15
+ settings:
16
+ global:
17
+ readonly_attribute: Attribut schreibgeschützt
18
+ test: Test A
19
+ test_choices:
20
+ a: Wahl A
21
+ b: Wahl B
22
+ c: Wahl C
23
+ step:
24
+ endorsements_blocked: Befürwortungen blockiert
25
+ endorsements_enabled: Befürwortungen aktiviert
26
+ readonly_step_attribute: Schritt-Attribut schreibgeschützt
11
27
  dummy:
12
28
  admin:
13
29
  exports:
@@ -1 +1,56 @@
1
1
  el:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Δημιουργήθηκε στις
6
+ decidim_scope_id: Πεδίο εφαρμογής
7
+ field: Το πεδίο μου
8
+ start_date: Ημερομηνία έναρξης
9
+ title: Τίτλος
10
+ translatable_text: Μετατρέψιμο κείμενο
11
+ updated_at: Ενημερώθηκε στις
12
+ decidim:
13
+ components:
14
+ dummy:
15
+ settings:
16
+ global:
17
+ readonly_attribute: Χαρακτηριστικό μόνο για ανάγνωση
18
+ test: A δοκιμή
19
+ test_choices:
20
+ a: A επιλογή
21
+ b: B επιλογή
22
+ c: C επιλογή
23
+ step:
24
+ endorsements_blocked: Επιδοκιμασίες αποκλεισμένες
25
+ endorsements_enabled: Επιδοκιμασίες ενεργοποιημένες
26
+ readonly_step_attribute: Χαρακτηριστικό βήματος μόνο για ανάγνωση
27
+ dummy:
28
+ admin:
29
+ exports:
30
+ dummies: Εικονικά
31
+ gamification:
32
+ badges:
33
+ test:
34
+ conditions:
35
+ - Χρησιμοποιήστε ένα περιβάλλον δοκιμής για το decidim.
36
+ description: Οι συμμετέχοντες αποκτούν αυτό το έμβλημα δημιουργώντας δοκιμές.
37
+ description_another: Αυτός ο συμμετέχων έχει δημιουργήσει %{score} δοκιμές.
38
+ description_own: Έχετε δημιουργήσει %{score} δοκιμές.
39
+ name: Δοκιμές
40
+ next_level_in: Δημιουργήστε %{score} ακόμη δοκιμές για να φτάσετε στο επόμενο επίπεδο!
41
+ unearned_another: Αυτός ο συμμετέχων δεν έχει δημιουργήσει ακόμη καμία δοκιμή.
42
+ unearned_own: Δεν έχετε δημιουργήσει ακόμη δοκιμές.
43
+ pages:
44
+ home:
45
+ statistics:
46
+ bar: Bar
47
+ dummies_count_high: Εικονικά στοιχεία υψηλά
48
+ dummies_count_medium: Εικονικά στοιχεία μεσαία
49
+ foo: Foo
50
+ participatory_processes:
51
+ statistics:
52
+ dummies_count_high: Εικονικά στοιχεία υψηλά
53
+ dummies_count_medium: Εικονικά στοιχεία μεσαία
54
+ resource_links:
55
+ test_link:
56
+ dummy_resource_dummy: Σχετικό εικονικό στοιχείο
@@ -4,12 +4,27 @@ en:
4
4
  attributes:
5
5
  dummy_resource:
6
6
  created_at: Created at
7
+ decidim_scope_id: Scope
7
8
  field: My field
8
9
  start_date: Start date
9
10
  title: Title
10
11
  translatable_text: Translatable text
11
12
  updated_at: Updated at
12
13
  decidim:
14
+ components:
15
+ dummy:
16
+ settings:
17
+ global:
18
+ readonly_attribute: Readonly attribute
19
+ test: A test
20
+ test_choices:
21
+ a: A choice
22
+ b: B choice
23
+ c: C choice
24
+ step:
25
+ endorsements_blocked: Endorsements blocked
26
+ endorsements_enabled: Endorsements enabled
27
+ readonly_step_attribute: Readonly step attribute
13
28
  dummy:
14
29
  admin:
15
30
  exports: