decidim 0.0.7 → 0.0.8.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim might be problematic. Click here for more details.

Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +67 -0
  3. data/.eslintignore +1 -1
  4. data/.eslintrc.json +1 -0
  5. data/.travis.yml +4 -1
  6. data/Gemfile.lock +49 -48
  7. data/README.md +44 -118
  8. data/Rakefile +9 -13
  9. data/decidim-admin/README.md +2 -2
  10. data/decidim-admin/app/assets/javascripts/decidim/admin/application.js.es6 +13 -0
  11. data/decidim-admin/app/assets/javascripts/decidim/admin/toggle_nav.js.es6 +17 -0
  12. data/decidim-admin/app/assets/stylesheets/decidim/admin/_decidim.scss +0 -1
  13. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_datepicker.scss +224 -0
  14. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_modules.scss +1 -0
  15. data/decidim-admin/app/controllers/decidim/admin/newsletters_controller.rb +1 -1
  16. data/decidim-admin/app/forms/decidim/admin/participatory_process_user_role_form.rb +9 -0
  17. data/decidim-admin/app/helpers/decidim/admin/application_helper.rb +6 -0
  18. data/decidim-admin/app/views/decidim/admin/categories/index.html.erb +1 -1
  19. data/decidim-admin/app/views/decidim/admin/participatory_process_groups/index.html.erb +1 -1
  20. data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/_form.html.erb +2 -3
  21. data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +1 -1
  22. data/decidim-admin/app/views/decidim/admin/static_pages/index.html.erb +2 -2
  23. data/decidim-admin/app/views/layouts/decidim/admin/_application.html.erb +2 -1
  24. data/decidim-admin/app/views/layouts/decidim/admin/pages.html.erb +1 -1
  25. data/decidim-admin/config/i18n-tasks.yml +2 -0
  26. data/decidim-admin/config/locales/ca.yml +22 -17
  27. data/decidim-admin/config/locales/en.yml +22 -17
  28. data/decidim-admin/config/locales/es.yml +23 -18
  29. data/decidim-admin/config/locales/eu.yml +0 -19
  30. data/decidim-admin/config/locales/fi.yml +0 -14
  31. data/decidim-admin/config/locales/fr.yml +141 -0
  32. data/decidim-admin/config/locales/nl.yml +5 -0
  33. data/decidim-admin/spec/features/admin_invite_spec.rb +7 -1
  34. data/decidim-admin/spec/features/admin_manages_organization_spec.rb +1 -1
  35. data/decidim-admin/spec/features/admin_manages_participatory_process_groups_spec.rb +1 -1
  36. data/decidim-admin/spec/features/admin_manages_participatory_processes_spec.rb +1 -1
  37. data/decidim-admin/spec/features/static_pages_spec.rb +0 -5
  38. data/decidim-admin/spec/forms/organization_form_spec.rb +6 -1
  39. data/decidim-admin/spec/shared/manage_process_admins_examples.rb +2 -2
  40. data/decidim-admin/spec/shared/manage_process_steps_examples.rb +21 -17
  41. data/decidim-admin/spec/shared/manage_processes_examples.rb +13 -10
  42. data/decidim-admin/spec/shared/participatory_admin_shared_context.rb +3 -3
  43. data/decidim-admin/vendor/assets/javascripts/moment.min.js +7 -0
  44. data/decidim-api/README.md +2 -2
  45. data/decidim-budgets/README.md +2 -2
  46. data/decidim-budgets/config/locales/ca.yml +3 -3
  47. data/decidim-budgets/config/locales/en.yml +3 -3
  48. data/decidim-budgets/config/locales/es.yml +3 -3
  49. data/decidim-budgets/config/locales/eu.yml +0 -3
  50. data/decidim-budgets/config/locales/fi.yml +0 -3
  51. data/decidim-budgets/config/locales/fr.yml +97 -0
  52. data/decidim-budgets/config/locales/nl.yml +5 -0
  53. data/decidim-budgets/db/migrate/20170410074214_remove_not_null_reference_budgets.rb +5 -0
  54. data/decidim-budgets/spec/shared/manage_projects_examples.rb +1 -1
  55. data/decidim-comments/README.md +2 -2
  56. data/decidim-comments/app/assets/javascripts/decidim/comments/bundle.js +0 -0
  57. data/decidim-comments/config/locales/fr.yml +5 -0
  58. data/decidim-comments/config/locales/nl.yml +5 -0
  59. data/decidim-dev/README.md +2 -2
  60. data/decidim-dev/config/locales/fr.yml +5 -0
  61. data/decidim-dev/config/locales/nl.yml +5 -0
  62. data/decidim-dev/lib/decidim/dev.rb +8 -5
  63. data/decidim-dev/lib/decidim/dev/common_rake.rb +1 -23
  64. data/decidim-dev/lib/decidim/dev/railtie.rb +13 -0
  65. data/decidim-dev/lib/decidim/dev/test/base_spec_helper.rb +6 -5
  66. data/decidim-dev/lib/generators/decidim/dummy_generator.rb +13 -16
  67. data/decidim-dev/lib/tasks/test_app.rake +18 -0
  68. data/decidim-meetings/README.md +2 -2
  69. data/decidim-meetings/app/controllers/decidim/meetings/meeting_widgets_controller.rb +21 -0
  70. data/decidim-meetings/app/controllers/decidim/meetings/meetings_controller.rb +2 -0
  71. data/decidim-meetings/app/views/decidim/meetings/meeting_widgets/.erb +16 -0
  72. data/decidim-meetings/app/views/decidim/meetings/meeting_widgets/show.html.erb +18 -0
  73. data/decidim-meetings/app/views/decidim/meetings/meetings/show.html.erb +1 -0
  74. data/decidim-meetings/config/locales/ca.yml +5 -5
  75. data/decidim-meetings/config/locales/en.yml +5 -5
  76. data/decidim-meetings/config/locales/es.yml +5 -5
  77. data/decidim-meetings/config/locales/eu.yml +0 -7
  78. data/decidim-meetings/config/locales/fi.yml +0 -7
  79. data/decidim-meetings/config/locales/fr.yml +5 -0
  80. data/decidim-meetings/config/locales/nl.yml +5 -0
  81. data/decidim-meetings/db/migrate/20170410074252_remove_not_null_reference_meetings.rb +5 -0
  82. data/decidim-meetings/lib/decidim/meetings/list_engine.rb +3 -1
  83. data/decidim-meetings/spec/shared/manage_meetings_examples.rb +87 -72
  84. data/decidim-pages/README.md +2 -2
  85. data/decidim-pages/config/locales/ca.yml +1 -1
  86. data/decidim-pages/config/locales/en.yml +1 -1
  87. data/decidim-pages/config/locales/es.yml +1 -1
  88. data/decidim-pages/config/locales/eu.yml +0 -1
  89. data/decidim-pages/config/locales/fi.yml +0 -1
  90. data/decidim-pages/config/locales/fr.yml +5 -0
  91. data/decidim-pages/config/locales/nl.yml +5 -0
  92. data/decidim-proposals/README.md +2 -2
  93. data/decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb +24 -0
  94. data/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb +13 -4
  95. data/decidim-proposals/app/helpers/decidim/proposals/application_helper.rb +15 -0
  96. data/decidim-proposals/app/helpers/decidim/proposals/proposal_order_helper.rb +1 -1
  97. data/decidim-proposals/app/views/decidim/proposals/admin/proposals/index.html.erb +6 -9
  98. data/decidim-proposals/app/views/decidim/proposals/proposal_widgets/show.html.erb +25 -0
  99. data/decidim-proposals/app/views/decidim/proposals/proposals/_vote_button.html.erb +9 -3
  100. data/decidim-proposals/app/views/decidim/proposals/proposals/_votes_count.html.erb +8 -7
  101. data/decidim-proposals/app/views/decidim/proposals/proposals/show.html.erb +3 -6
  102. data/decidim-proposals/config/locales/ca.yml +5 -5
  103. data/decidim-proposals/config/locales/en.yml +6 -5
  104. data/decidim-proposals/config/locales/es.yml +5 -5
  105. data/decidim-proposals/config/locales/eu.yml +0 -6
  106. data/decidim-proposals/config/locales/fi.yml +0 -5
  107. data/decidim-proposals/config/locales/fr.yml +5 -0
  108. data/decidim-proposals/config/locales/nl.yml +5 -0
  109. data/decidim-proposals/db/migrate/20170410073742_remove_not_null_reference_proposals.rb +5 -0
  110. data/decidim-proposals/lib/decidim/proposals/engine.rb +1 -0
  111. data/decidim-proposals/lib/decidim/proposals/feature.rb +1 -0
  112. data/decidim-proposals/spec/features/proposals_spec.rb +1 -6
  113. data/decidim-proposals/spec/features/vote_proposal_spec.rb +15 -0
  114. data/decidim-proposals/spec/helpers/proposal_order_helper_spec.rb +13 -3
  115. data/decidim-proposals/spec/shared/manage_proposals_examples.rb +43 -9
  116. data/decidim-results/README.md +2 -2
  117. data/decidim-results/app/controllers/decidim/results/result_widgets_controller.rb +17 -0
  118. data/decidim-results/app/controllers/decidim/results/results_controller.rb +1 -0
  119. data/decidim-results/app/views/decidim/results/result_widgets/show.html.erb +10 -0
  120. data/decidim-results/app/views/decidim/results/results/show.html.erb +1 -0
  121. data/decidim-results/config/locales/ca.yml +3 -3
  122. data/decidim-results/config/locales/en.yml +3 -3
  123. data/decidim-results/config/locales/es.yml +3 -3
  124. data/decidim-results/config/locales/eu.yml +0 -3
  125. data/decidim-results/config/locales/fi.yml +0 -3
  126. data/decidim-results/config/locales/fr.yml +5 -0
  127. data/decidim-results/config/locales/nl.yml +5 -0
  128. data/decidim-results/db/migrate/20170410074358_remove_not_null_reference_results.rb +5 -0
  129. data/decidim-results/lib/decidim/results/list_engine.rb +3 -1
  130. data/decidim-results/spec/shared/manage_results_examples.rb +1 -1
  131. data/decidim-system/config/locales/ca.yml +3 -3
  132. data/decidim-system/config/locales/en.yml +3 -3
  133. data/decidim-system/config/locales/es.yml +3 -3
  134. data/decidim-system/config/locales/eu.yml +0 -3
  135. data/decidim-system/config/locales/fi.yml +0 -3
  136. data/decidim-system/config/locales/fr.yml +5 -0
  137. data/decidim-system/config/locales/nl.yml +5 -0
  138. data/docs/features_and_components.md +1 -1
  139. data/docs/geocoding.md +34 -0
  140. data/docs/getting_started.md +135 -0
  141. data/docs/testing.md +17 -0
  142. data/lib/generators/decidim/app_generator.rb +7 -0
  143. data/lib/generators/decidim/templates/Gemfile.erb +4 -4
  144. data/lib/generators/decidim/templates/README.md.erb +1 -1
  145. data/lib/generators/decidim/templates/authorization_handler.rb +5 -1
  146. data/package.json +1 -1
  147. data/run_ci.sh +6 -6
  148. metadata +61 -23
data/Rakefile CHANGED
@@ -4,6 +4,9 @@ require "rspec/core/rake_task"
4
4
  require_relative "lib/generators/decidim/app_generator"
5
5
  require_relative "lib/generators/decidim/docker_generator"
6
6
 
7
+ load "decidim-core/lib/tasks/decidim_tasks.rake"
8
+ load "decidim-dev/lib/tasks/test_app.rake"
9
+
7
10
  DECIDIM_GEMS = %w(core system admin api pages meetings proposals comments results budgets dev).freeze
8
11
 
9
12
  RSpec::Core::RakeTask.new(:spec)
@@ -11,7 +14,7 @@ RSpec::Core::RakeTask.new(:spec)
11
14
  task default: :spec
12
15
 
13
16
  desc "Runs all tests in all Decidim engines"
14
- task :test_all do
17
+ task test_all: ['decidim:generate_test_app'] do
15
18
  DECIDIM_GEMS.each do |gem_name|
16
19
  Dir.chdir("#{File.dirname(__FILE__)}/decidim-#{gem_name}") do
17
20
  sh "rake"
@@ -19,15 +22,6 @@ task :test_all do
19
22
  end
20
23
  end
21
24
 
22
- desc "Generates test apps for all the engines"
23
- task :generate_all do
24
- DECIDIM_GEMS.each do |gem_name|
25
- Dir.chdir("#{File.dirname(__FILE__)}/decidim-#{gem_name}") do
26
- sh "rake generate_test_app"
27
- end
28
- end
29
- end
30
-
31
25
  desc "Pushes a new build for each gem."
32
26
  task release_all: [:webpack] do
33
27
  sh "rake release"
@@ -49,9 +43,11 @@ task :development_app do
49
43
  )
50
44
 
51
45
  Dir.chdir("#{File.dirname(__FILE__)}/development_app") do
52
- sh "bundle exec spring stop"
53
- sh "bundle exec rake db:drop db:create db:migrate db:seed"
54
- sh "bundle exec rails generate decidim:demo"
46
+ Bundler.with_clean_env do
47
+ sh "bundle exec spring stop"
48
+ sh "bundle exec rake db:drop db:create db:migrate db:seed"
49
+ sh "bundle exec rails generate decidim:demo"
50
+ end
55
51
  end
56
52
  end
57
53
 
@@ -47,7 +47,7 @@ are links to them inside the Decidim framework, see `Decidim::StaticPage` for
47
47
  the default list.
48
48
 
49
49
  ## Contributing
50
- See [Decidim](https://github.com/AjuntamentdeBarcelona/decidim).
50
+ See [Decidim](https://github.com/decidim/decidim).
51
51
 
52
52
  ## License
53
- See [Decidim](https://github.com/AjuntamentdeBarcelona/decidim).
53
+ See [Decidim](https://github.com/decidim/decidim).
@@ -6,14 +6,27 @@
6
6
  // = require html.sortable
7
7
  // = require ./sort_steps
8
8
  // = require ./tab_focus
9
+ // = require ./toggle_nav
9
10
  // = require decidim/editor
11
+ // = require foundation-datepicker
12
+ // = require form_datepicker
13
+ // = require moment.min
10
14
  // = require_self
11
15
 
16
+ window.Decidim = window.Decidim || {};
17
+
12
18
  const pageLoad = () => {
13
19
  $(document).foundation();
14
20
  sortSteps();
21
+
22
+ if (DecidimAdmin) {
23
+ DecidimAdmin.toggleNav();
24
+ }
15
25
  };
16
26
 
17
27
  $(() => {
18
28
  pageLoad();
29
+ if (window.Decidim.formDatePicker) {
30
+ window.Decidim.formDatePicker();
31
+ }
19
32
  });
@@ -0,0 +1,17 @@
1
+ ((exports) => {
2
+ const showHideNav = (evt) => {
3
+ const navMenu = document.querySelector(".layout-nav");
4
+
5
+ evt.preventDefault();
6
+ navMenu.classList.toggle("is-nav-open");
7
+ }
8
+
9
+ const toggleNav = () => {
10
+ const navTrigger = document.querySelector(".menu-trigger");
11
+
12
+ navTrigger.addEventListener("click", showHideNav);
13
+ }
14
+
15
+ exports.DecidimAdmin = exports.DecidimAdmin || {};
16
+ exports.DecidimAdmin.toggleNav = toggleNav;
17
+ })(window);
@@ -1,4 +1,3 @@
1
- //@import compass
2
1
  @import "variables";
3
2
  @import "utils/*";
4
3
 
@@ -0,0 +1,224 @@
1
+ $calendar-bg-color: $white;
2
+ $calendar-border: 1px solid rgba(0, 0, 0, 0.1);
3
+ $calendar-border-color: rgba(0, 0, 0, 0.1);
4
+ $calendar-active-color: $primary-color;
5
+ $calendar-bg-hover: $light-gray;
6
+ $calendar-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
7
+ $calendar-color-old: $medium-gray;
8
+ $calendar-color-disabled: $light-gray;
9
+ $calendar-radius: $global-radius;
10
+ $calendar-font-size: $global-font-size * .9;
11
+
12
+ .datepicker {
13
+ display: none;
14
+ position: absolute;
15
+ padding: 4px;
16
+ margin-top: 1px;
17
+ direction: ltr;
18
+ }
19
+
20
+ .datepicker.dropdown-menu {
21
+ position: absolute;
22
+ top: 100%;
23
+ left: 0;
24
+ z-index: 1000;
25
+ float: left;
26
+ display: none;
27
+ min-width: 160px;
28
+ list-style: none;
29
+ background-color: $calendar-bg-color;
30
+ border: $calendar-border;
31
+ border-radius: $calendar-radius;
32
+ box-shadow: $calendar-shadow;
33
+ background-clip: padding-box;
34
+ font-size: $calendar-font-size;
35
+ line-height: 18px;
36
+ }
37
+
38
+ .datepicker.dropdown-menu th {
39
+ padding: 4px 5px;
40
+ }
41
+
42
+ .datepicker.dropdown-menu td {
43
+ padding: 6px 9px;
44
+ }
45
+
46
+ .datepicker table {
47
+ border: 0;
48
+ margin: 0;
49
+ width: auto;
50
+ }
51
+
52
+ .datepicker table tr td span {
53
+ display: block;
54
+ width: 23%;
55
+ height: 54px;
56
+ line-height: 54px;
57
+ float: left;
58
+ margin: 1%;
59
+ cursor: pointer;
60
+ }
61
+
62
+ .datepicker td {
63
+ text-align: center;
64
+ width: 20px;
65
+ height: 20px;
66
+ border: 0;
67
+ font-size: $calendar-font-size;
68
+ padding: 4px 8px;
69
+ background: $calendar-bg-color;
70
+ cursor: pointer;
71
+ }
72
+
73
+ .datepicker td.active.day,
74
+ .datepicker td.active.year {
75
+ background: $calendar-active-color;
76
+ }
77
+
78
+ .datepicker .day:hover,
79
+ .datepicker .date-switch:hover,
80
+ .datepicker .prev:hover,
81
+ .datepicker .next:hover,
82
+ .datepicker .month:hover,
83
+ .datepicker .year:hover{
84
+ background-color: $calendar-bg-hover;
85
+ &.active{
86
+ background: $calendar-active-color;
87
+ }
88
+ }
89
+
90
+
91
+ .datepicker td.new,
92
+ .datepicker td.old {
93
+ color: $calendar-color-old;
94
+ }
95
+
96
+ .datepicker td span.active {
97
+ background: $calendar-active-color;
98
+ }
99
+
100
+ .datepicker td.day.disabled {
101
+ color: $calendar-color-disabled;
102
+ }
103
+
104
+ .datepicker td span.month.disabled,
105
+ .datepicker td span.year.disabled {
106
+ color: $calendar-color-disabled;
107
+ }
108
+
109
+ .datepicker th {
110
+ text-align: center;
111
+ width: 20px;
112
+ height: 20px;
113
+ border: 0;
114
+ font-size: $calendar-font-size;
115
+ padding: 4px 8px;
116
+ background: $calendar-bg-color;
117
+ cursor: pointer;
118
+ }
119
+
120
+ .datepicker th.active.day,
121
+ .datepicker th.active.year {
122
+ background: $calendar-active-color;
123
+ }
124
+
125
+ .datepicker th.date-switch {
126
+ width: 145px;
127
+ }
128
+
129
+ .datepicker th span.active {
130
+ background: $calendar-active-color;
131
+ }
132
+
133
+ .datepicker .cw {
134
+ font-size: 10px;
135
+ width: 12px;
136
+ padding: 0 2px 0 5px;
137
+ vertical-align: middle;
138
+ }
139
+
140
+ .datepicker.days div.datepicker-days {
141
+ display: block;
142
+ }
143
+
144
+ .datepicker.months div.datepicker-months {
145
+ display: block;
146
+ }
147
+
148
+ .datepicker.years div.datepicker-years {
149
+ display: block;
150
+ }
151
+
152
+ .datepicker thead tr:first-child th {
153
+ cursor: pointer;
154
+ }
155
+
156
+ .datepicker thead tr:first-child th.cw {
157
+ cursor: default;
158
+ background-color: transparent;
159
+ }
160
+
161
+ .datepicker tfoot tr:first-child th {
162
+ cursor: pointer;
163
+ }
164
+
165
+ .datepicker-inline {
166
+ width: 220px;
167
+ }
168
+
169
+ .datepicker-rtl {
170
+ direction: rtl;
171
+ }
172
+
173
+ .datepicker-rtl table tr td span {
174
+ float: right;
175
+ }
176
+
177
+ .datepicker-dropdown {
178
+ top: 0;
179
+ left: 0;
180
+ }
181
+
182
+ .datepicker-dropdown:before {
183
+ content: '';
184
+ display: inline-block;
185
+ border-left: 7px solid transparent;
186
+ border-right: 7px solid transparent;
187
+ border-bottom: 7px solid #ccc;
188
+ border-bottom-color: $calendar-border-color;
189
+ position: absolute;
190
+ top: -7px;
191
+ left: 6px;
192
+ }
193
+
194
+ .datepicker-dropdown:after {
195
+ content: '';
196
+ display: inline-block;
197
+ border-left: 6px solid transparent;
198
+ border-right: 6px solid transparent;
199
+ border-bottom: 6px solid $calendar-bg-color;
200
+ position: absolute;
201
+ top: -6px;
202
+ left: 7px;
203
+ }
204
+
205
+ .datepicker > div,
206
+ .datepicker-dropdown::after,
207
+ .datepicker-dropdown::before {
208
+ display: none;
209
+ }
210
+
211
+ .datepicker-close {
212
+ position: absolute;
213
+ top: -30px;
214
+ right: 0;
215
+ width: 15px;
216
+ height: 30px;
217
+ padding: 0;
218
+ display: none;
219
+ }
220
+
221
+ .table-striped .datepicker table tr td,
222
+ .table-striped .datepicker table tr th {
223
+ background-color: transparent;
224
+ }
@@ -11,6 +11,7 @@
11
11
  @import "user-login";
12
12
  @import "main-nav";
13
13
  @import "secondary-nav";
14
+ @import "datepicker";
14
15
 
15
16
  //Process
16
17
  @import "process-header";
@@ -28,7 +28,7 @@ module Decidim
28
28
  email = NewsletterMailer.newsletter(current_user, @newsletter)
29
29
  Premailer::Rails::Hook.perform(email)
30
30
 
31
- render html: email.html_part.body.decoded
31
+ render html: email.html_part.body.decoded.html_safe
32
32
  end
33
33
 
34
34
  def create
@@ -14,6 +14,15 @@ module Decidim
14
14
  validates :email, :role, presence: true
15
15
  validates :name, presence: true
16
16
  validates :role, inclusion: { in: ParticipatoryProcessUserRole::ROLES }
17
+
18
+ def roles
19
+ Decidim::Admin::ParticipatoryProcessUserRole::ROLES.map do |role|
20
+ [
21
+ I18n.t(role, scope: "decidim.admin.models.participatory_process_user_role.roles"),
22
+ role
23
+ ]
24
+ end
25
+ end
17
26
  end
18
27
  end
19
28
  end
@@ -22,6 +22,12 @@ module Decidim
22
22
  end
23
23
  end
24
24
  end
25
+
26
+ def foundation_datepicker_locale_tag
27
+ if I18n.locale != :en
28
+ javascript_include_tag "datepicker-locales/foundation-datepicker.#{I18n.locale}.js"
29
+ end
30
+ end
25
31
  end
26
32
  end
27
33
  end
@@ -14,7 +14,7 @@
14
14
  <table class="table-list">
15
15
  <thead>
16
16
  <tr>
17
- <th><%= t("models.category.fields.name", scope: "decidim.admin") %></th>
17
+ <th><%= t("activemodel.attributes.category.name") %></th>
18
18
  <th class="actions"></th>
19
19
  </tr>
20
20
  </thead>
@@ -18,7 +18,7 @@
18
18
  <% collection.each do |group| %>
19
19
  <tr>
20
20
  <td>
21
- <%= link_to translated_attribute(group.name), group %><br />
21
+ <%= link_to translated_attribute(group.name), ['edit', group] %><br />
22
22
  </td>
23
23
  <td class="table-list__actions">
24
24
  <% if can? :update, group %>
@@ -15,9 +15,8 @@
15
15
  </div>
16
16
  <div class="columns xlarge-4">
17
17
  <%= form.label :role %>
18
- <%= select :participatory_process_user_role, :role, Decidim::Admin::ParticipatoryProcessUserRole::ROLES, include_blank: false %>
18
+ <%= select :participatory_process_user_role, :role, @form.roles, include_blank: false %>
19
19
  </div>
20
20
  </div>
21
-
22
21
  </div>
23
- </div>
22
+ </div>
@@ -29,7 +29,7 @@
29
29
  <%= role.user.email %><br />
30
30
  </td>
31
31
  <td>
32
- <%= t(".#{role.role}", scope: "decidim.admin") %><br />
32
+ <%= t("#{role.role}", scope: "decidim.admin.models.participatory_process_user_role.roles") %><br />
33
33
  </td>
34
34
  <td class="table-list__actions">
35
35
  <% if can? :update, role %>
@@ -1,6 +1,6 @@
1
1
  <div class="card">
2
2
  <div class="card-divider">
3
- <h2 class="card-title"><%= t "decidim.admin.titles.static_pages" %> <%= link_to t("static_pages.new.title", scope: "decidim.admin"), ['new', 'static_page'], class: 'button tiny button--title new' %></h2>
3
+ <h2 class="card-title"><%= t "decidim.admin.titles.static_pages" %> <%= link_to t("static_pages.new.create", scope: "decidim.admin"), ['new', 'static_page'], class: 'button tiny button--title new' %></h2>
4
4
  </div>
5
5
  <div class="card-section">
6
6
  <div class="table-scroll">
@@ -16,7 +16,7 @@
16
16
  <% @pages.each do |page| %>
17
17
  <tr>
18
18
  <td>
19
- <%= link_to translated_attribute(page.title), page %><br />
19
+ <%= link_to translated_attribute(page.title), ['edit', page] %><br />
20
20
  </td>
21
21
  <td>
22
22
  <%= l page.created_at, format: :short %>