Commit 8c05fa4
Allow associating subscopes of any level when creating new resources (decidim#1746)
* Renamed Select2Filter to Select2Field to use it outside filter forms.
* Select2 appearance adapted for frontend forms.
* Fixed behavior on search scopes AJAX call when passing false to include_root param.
* Using select2 for scope selection on proposals new form.
* Using select2 for scope selection on features admin forms.
* Fixed scope retrieval on scoped resources forms.
Before decidim#1500, only processes with global scope (nil value) could have features with a scope. Now this is not true, so the scope retrieval should only use the process scope when there is no scope for the resource.
* Scopes controller tests improved.
* Remove unused code.
* Rubocop offenses.
* ESLint offense
* ESLint offense
* Select2 capybara tests fixed.
* Ignore missing global scopetranslations in I18n tests on budgets, meetings and results engines.
* Simplified logic on scopes search controller.
* Defined matcher for scopes controller tests to improve readability.
* Defined matcher for scopes controller tests to improve readability.
* Temporary usability improvement on scopes management.
* Scopes search controller tests improved.1 parent 42ee442 commit 8c05fa4
File tree
29 files changed
+81
-50
lines changed- decidim-admin
- app/views/decidim/admin/scopes
- config/locales
- decidim-budgets
- app
- forms/decidim/budgets/admin
- views/decidim/budgets/admin/projects
- config
- decidim-core
- app
- assets
- javascripts
- decidim
- stylesheets/decidim/plugins
- controllers/decidim
- helpers/decidim
- spec/controllers
- decidim-meetings
- app
- forms/decidim/meetings/admin
- views/decidim/meetings/admin/meetings
- config
- decidim-proposals
- app
- assets/javascripts/decidim/proposals
- forms/decidim/proposals
- admin
- views/decidim/proposals
- admin/proposals
- proposals
- spec
- features
- decidim-results
- app
- forms/decidim/results/admin
- views/decidim/results/admin/results
- config
29 files changed
+81
-50
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
56 | | - | |
| 54 | + | |
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
46 | 47 | | |
0 commit comments