decidim-budgets 0.27.9 → 0.28.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/stylesheets/decidim/budgets/budget/_budget-vote-button.scss +5 -5
- data/app/cells/decidim/budgets/base_cell.rb +1 -1
- data/app/cells/decidim/budgets/budget_cell.rb +6 -1
- data/app/cells/decidim/budgets/budget_information_modal/show.erb +14 -26
- data/app/cells/decidim/budgets/budget_list_item/projects_count.erb +6 -0
- data/app/cells/decidim/budgets/budget_list_item/show.erb +35 -30
- data/app/cells/decidim/budgets/budget_list_item/vote_action.erb +13 -0
- data/app/cells/decidim/budgets/budget_list_item_cell.rb +24 -1
- data/app/cells/decidim/budgets/budget_metadata_cell.rb +29 -0
- data/app/cells/decidim/budgets/budget_s_cell.rb +15 -0
- data/app/cells/decidim/budgets/budgets_header/show.erb +2 -6
- data/app/cells/decidim/budgets/budgets_list/card_list.erb +8 -13
- data/app/cells/decidim/budgets/budgets_list/main_list.erb +5 -0
- data/app/cells/decidim/budgets/budgets_list/show.erb +12 -16
- data/app/cells/decidim/budgets/budgets_list/voted.erb +8 -44
- data/app/cells/decidim/budgets/budgets_list_cell.rb +34 -0
- data/app/cells/decidim/budgets/limit_announcement/show.erb +3 -0
- data/app/cells/decidim/budgets/limit_announcement_cell.rb +2 -2
- data/app/cells/decidim/budgets/order_activity_cell.rb +1 -4
- data/app/cells/decidim/budgets/project_cell.rb +6 -1
- data/app/cells/decidim/budgets/project_l/extra_data.erb +6 -0
- data/app/cells/decidim/budgets/project_l/metadata.erb +4 -0
- data/app/cells/decidim/budgets/project_l_cell.rb +38 -0
- data/app/cells/decidim/budgets/project_metadata_cell.rb +78 -0
- data/app/cells/decidim/budgets/project_s_cell.rb +21 -0
- data/app/cells/decidim/budgets/project_tags/show.erb +1 -0
- data/app/cells/decidim/budgets/project_vote_button/show.erb +21 -15
- data/app/cells/decidim/budgets/project_vote_button_cell.rb +69 -1
- data/app/cells/decidim/budgets/project_voted_hint_cell.rb +1 -1
- data/app/cells/decidim/budgets/project_votes_count_cell.rb +9 -8
- data/app/commands/decidim/budgets/admin/create_project.rb +0 -1
- data/app/commands/decidim/budgets/admin/import_proposals_to_budgets.rb +1 -1
- data/app/commands/decidim/budgets/admin/update_project.rb +1 -2
- data/app/commands/decidim/budgets/admin/update_project_scope.rb +1 -1
- data/app/commands/decidim/budgets/admin/update_project_selection.rb +1 -1
- data/app/commands/decidim/budgets/admin/update_projects_budget.rb +57 -0
- data/app/controllers/concerns/decidim/budgets/admin/filterable.rb +1 -1
- data/app/controllers/concerns/decidim/budgets/needs_current_order.rb +2 -2
- data/app/controllers/decidim/budgets/admin/budgets_controller.rb +5 -5
- data/app/controllers/decidim/budgets/admin/projects_controller.rb +52 -10
- data/app/controllers/decidim/budgets/admin/proposals_imports_controller.rb +1 -1
- data/app/controllers/decidim/budgets/application_controller.rb +0 -4
- data/app/controllers/decidim/budgets/budgets_controller.rb +9 -0
- data/app/controllers/decidim/budgets/line_items_controller.rb +10 -16
- data/app/controllers/decidim/budgets/orders_controller.rb +7 -2
- data/app/controllers/decidim/budgets/projects_controller.rb +51 -4
- data/app/forms/decidim/budgets/admin/project_form.rb +1 -1
- data/app/helpers/decidim/budgets/application_helper.rb +4 -0
- data/app/helpers/decidim/budgets/projects_helper.rb +89 -33
- data/app/jobs/decidim/budgets/send_vote_reminder_job.rb +1 -1
- data/app/mailers/decidim/budgets/order_summary_mailer.rb +1 -1
- data/app/mailers/decidim/budgets/vote_reminder_mailer.rb +1 -1
- data/app/models/decidim/budgets/budget.rb +1 -0
- data/app/models/decidim/budgets/project.rb +17 -7
- data/app/packs/entrypoints/decidim_budgets.js +2 -0
- data/app/packs/src/decidim/budgets/exit_handler.js +11 -8
- data/app/packs/src/decidim/budgets/progressFixed.js +25 -11
- data/app/packs/src/decidim/budgets/projects.js +15 -10
- data/app/packs/stylesheets/budgets.scss +273 -0
- data/app/presenters/decidim/budgets/admin_log/budget_presenter.rb +2 -2
- data/app/presenters/decidim/budgets/admin_log/project_presenter.rb +2 -2
- data/app/services/decidim/budgets/order_reminder_generator.rb +4 -4
- data/app/views/decidim/budgets/admin/budgets/_form.html.erb +17 -12
- data/app/views/decidim/budgets/admin/budgets/edit.html.erb +16 -6
- data/app/views/decidim/budgets/admin/budgets/index.html.erb +58 -64
- data/app/views/decidim/budgets/admin/budgets/new.html.erb +16 -6
- data/app/views/decidim/budgets/admin/projects/_bulk-actions.html.erb +19 -10
- data/app/views/decidim/budgets/admin/projects/_form.html.erb +31 -35
- data/app/views/decidim/budgets/admin/projects/_project-tr.html.erb +15 -13
- data/app/views/decidim/budgets/admin/projects/bulk_actions/_budget-change.html.erb +22 -0
- data/app/views/decidim/budgets/admin/projects/bulk_actions/_change-selected.html.erb +3 -3
- data/app/views/decidim/budgets/admin/projects/bulk_actions/_dropdown.html.erb +8 -2
- data/app/views/decidim/budgets/admin/projects/bulk_actions/_recategorize.html.erb +3 -3
- data/app/views/decidim/budgets/admin/projects/bulk_actions/_scope-change.html.erb +5 -8
- data/app/views/decidim/budgets/admin/projects/edit.html.erb +16 -6
- data/app/views/decidim/budgets/admin/projects/index.html.erb +26 -31
- data/app/views/decidim/budgets/admin/projects/new.html.erb +16 -6
- data/app/views/decidim/budgets/admin/projects/update_attribute.js.erb +8 -4
- data/app/views/decidim/budgets/admin/proposals_imports/new.html.erb +40 -28
- data/app/views/decidim/budgets/budgets/index.html.erb +21 -3
- data/app/views/decidim/budgets/budgets/index.js.erb +6 -0
- data/app/views/decidim/budgets/line_items/update_budget.js.erb +21 -11
- data/app/views/decidim/budgets/projects/_addition_selector.html.erb +16 -0
- data/app/views/decidim/budgets/projects/_budget_confirm.html.erb +42 -31
- data/app/views/decidim/budgets/projects/_budget_excess.html.erb +12 -12
- data/app/views/decidim/budgets/projects/_budget_summary.html.erb +2 -75
- data/app/views/decidim/budgets/projects/_exit_modal.html.erb +15 -18
- data/app/views/decidim/budgets/projects/_linked_projects.html.erb +3 -12
- data/app/views/decidim/budgets/projects/_order.html.erb +1 -0
- data/app/views/decidim/budgets/projects/_order_progress_progressbar_marks_right.html.erb +10 -0
- data/app/views/decidim/budgets/projects/_order_progress_summary_content.html.erb +113 -0
- data/app/views/decidim/budgets/projects/_order_total_budget.html.erb +6 -7
- data/app/views/decidim/budgets/projects/_project.html.erb +2 -1
- data/app/views/decidim/budgets/projects/_project_budget_button.html.erb +11 -19
- data/app/views/decidim/budgets/projects/_projects.html.erb +8 -6
- data/app/views/decidim/budgets/projects/_projects_count.html.erb +5 -0
- data/app/views/decidim/budgets/projects/_projects_list.html.erb +3 -0
- data/app/views/decidim/budgets/projects/index.html.erb +58 -55
- data/app/views/decidim/budgets/projects/index.js.erb +5 -4
- data/app/views/decidim/budgets/projects/show.html.erb +78 -51
- data/config/assets.rb +0 -1
- data/config/locales/ar.yml +0 -50
- data/config/locales/bg.yml +0 -381
- data/config/locales/ca.yml +75 -84
- data/config/locales/cs.yml +73 -82
- data/config/locales/de.yml +76 -85
- data/config/locales/el.yml +34 -72
- data/config/locales/en.yml +79 -88
- data/config/locales/es-MX.yml +73 -82
- data/config/locales/es-PY.yml +73 -82
- data/config/locales/es.yml +75 -84
- data/config/locales/eu.yml +74 -86
- data/config/locales/fi-plain.yml +75 -84
- data/config/locales/fi.yml +79 -88
- data/config/locales/fr-CA.yml +74 -86
- data/config/locales/fr.yml +78 -90
- data/config/locales/ga-IE.yml +0 -12
- data/config/locales/gl.yml +0 -58
- data/config/locales/hu.yml +58 -81
- data/config/locales/id-ID.yml +0 -38
- data/config/locales/is-IS.yml +0 -22
- data/config/locales/it.yml +0 -84
- data/config/locales/ja.yml +69 -81
- data/config/locales/ko.yml +0 -54
- data/config/locales/lb.yml +0 -85
- data/config/locales/lt.yml +59 -82
- data/config/locales/lv.yml +0 -44
- data/config/locales/nl.yml +0 -96
- data/config/locales/no.yml +0 -84
- data/config/locales/pl.yml +0 -167
- data/config/locales/pt-BR.yml +9 -141
- data/config/locales/pt.yml +0 -85
- data/config/locales/ro-RO.yml +0 -95
- data/config/locales/ru.yml +0 -41
- data/config/locales/sk.yml +0 -44
- data/config/locales/sq-AL.yml +0 -52
- data/config/locales/sr-CS.yml +0 -4
- data/config/locales/sv.yml +42 -150
- data/config/locales/tr-TR.yml +2 -82
- data/config/locales/uk.yml +0 -41
- data/config/locales/zh-CN.yml +0 -65
- data/config/locales/zh-TW.yml +13 -59
- data/lib/decidim/budgets/admin_engine.rb +3 -2
- data/lib/decidim/budgets/component.rb +4 -90
- data/lib/decidim/budgets/engine.rb +30 -10
- data/lib/decidim/budgets/project_serializer.rb +3 -3
- data/lib/decidim/budgets/seeds.rb +69 -0
- data/lib/decidim/budgets/test/factories.rb +23 -37
- data/lib/decidim/budgets/version.rb +1 -1
- data/lib/decidim/budgets/workflows/base.rb +1 -1
- metadata +46 -42
- data/app/cells/decidim/budgets/budget_m/data.erb +0 -12
- data/app/cells/decidim/budgets/budget_m/footer.erb +0 -5
- data/app/cells/decidim/budgets/budget_m_cell.rb +0 -16
- data/app/cells/decidim/budgets/project_list_item/project_data.erb +0 -19
- data/app/cells/decidim/budgets/project_list_item/project_image.erb +0 -5
- data/app/cells/decidim/budgets/project_list_item/project_text.erb +0 -23
- data/app/cells/decidim/budgets/project_list_item/show.erb +0 -5
- data/app/cells/decidim/budgets/project_list_item_cell.rb +0 -70
- data/app/cells/decidim/budgets/project_m/data.erb +0 -12
- data/app/cells/decidim/budgets/project_m/footer.erb +0 -5
- data/app/cells/decidim/budgets/project_m_cell.rb +0 -22
- data/app/packs/stylesheets/decidim/budgets/_budgets.scss +0 -3
- data/app/packs/stylesheets/decidim/budgets/budget/_budget-list.scss +0 -198
- data/app/packs/stylesheets/decidim/budgets/budget/_budget-meter.scss +0 -83
- data/app/packs/stylesheets/decidim/budgets/budget/_progress.scss +0 -19
- data/app/views/decidim/budgets/admin/projects/proposals_picker.html.erb +0 -1
- data/app/views/decidim/budgets/projects/_filters.html.erb +0 -30
- data/app/views/decidim/budgets/projects/_filters_small_view.html.erb +0 -18
- data/app/views/decidim/budgets/projects/_order_progress.html.erb +0 -32
- data/app/views/decidim/budgets/projects/_order_selected_projects.html.erb +0 -27
- data/config/locales/he-IL.yml +0 -1
- data/decidim-budgets.gemspec +0 -34
- data/lib/decidim/budgets/seeds/city.jpeg +0 -0
@@ -1,198 +0,0 @@
|
|
1
|
-
.budget-list{
|
2
|
-
margin-bottom: 2rem;
|
3
|
-
|
4
|
-
&__item{
|
5
|
-
padding: 0;
|
6
|
-
background: $card-bg;
|
7
|
-
border: $border;
|
8
|
-
border-bottom: 0;
|
9
|
-
overflow: hidden;
|
10
|
-
display: flex;
|
11
|
-
|
12
|
-
&:first-child{
|
13
|
-
border-top-left-radius: $card-border-radius;
|
14
|
-
border-top-right-radius: $card-border-radius;
|
15
|
-
}
|
16
|
-
|
17
|
-
&:last-child{
|
18
|
-
border-bottom-left-radius: $card-border-radius;
|
19
|
-
border-bottom-right-radius: $card-border-radius;
|
20
|
-
border-bottom: $border;
|
21
|
-
}
|
22
|
-
|
23
|
-
&-cell{
|
24
|
-
display: grid;
|
25
|
-
grid-template-columns: 1fr 40px;
|
26
|
-
|
27
|
-
.budget-list__data{
|
28
|
-
grid-column: span 2;
|
29
|
-
background: none;
|
30
|
-
}
|
31
|
-
|
32
|
-
@include breakpoint(medium){
|
33
|
-
grid-template-columns: 1fr 40px 15em;
|
34
|
-
grid-template-rows: 1fr;
|
35
|
-
|
36
|
-
.budget-list__data{
|
37
|
-
background: $card-secondary-bg;
|
38
|
-
grid-column: 3;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
&__image{
|
45
|
-
overflow: hidden;
|
46
|
-
width: 3.5em;
|
47
|
-
height: 3.5rem;
|
48
|
-
flex-shrink: 0;
|
49
|
-
margin-top: $card-padding-small * .7;
|
50
|
-
margin-bottom: $card-padding-small * .7;
|
51
|
-
margin-left: $card-padding-small * .5;
|
52
|
-
|
53
|
-
@include breakpoint(medium){
|
54
|
-
width: 6rem;
|
55
|
-
height: 4rem;
|
56
|
-
flex-shrink: 0;
|
57
|
-
margin: $card-padding;
|
58
|
-
margin-right: 0;
|
59
|
-
}
|
60
|
-
|
61
|
-
img{
|
62
|
-
width: 100%;
|
63
|
-
height: 100%;
|
64
|
-
object-fit: cover;
|
65
|
-
object-position: center;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
&__text{
|
70
|
-
padding: $card-padding-small * .5;
|
71
|
-
flex-grow: 1;
|
72
|
-
|
73
|
-
@include breakpoint(medium){
|
74
|
-
padding: $card-padding;
|
75
|
-
display: flex;
|
76
|
-
align-items: center;
|
77
|
-
|
78
|
-
&.flex-horizontal{
|
79
|
-
flex-direction: column;
|
80
|
-
align-items: flex-start;
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
|
-
.card__text--status{
|
85
|
-
display: block;
|
86
|
-
}
|
87
|
-
}
|
88
|
-
|
89
|
-
&__data{
|
90
|
-
flex-shrink: 0;
|
91
|
-
align-self: stretch;
|
92
|
-
display: flex;
|
93
|
-
flex-direction: column;
|
94
|
-
align-items: center;
|
95
|
-
justify-content: center;
|
96
|
-
text-align: center;
|
97
|
-
font-size: 85%;
|
98
|
-
line-height: 1;
|
99
|
-
color: $muted;
|
100
|
-
padding: $card-padding-small * .5;
|
101
|
-
background: $card-secondary-bg;
|
102
|
-
|
103
|
-
@include breakpoint(medium){
|
104
|
-
min-width: 7rem;
|
105
|
-
flex-direction: row;
|
106
|
-
justify-content: flex-end;
|
107
|
-
flex-basis: 14rem;
|
108
|
-
padding: 1rem $card-padding;
|
109
|
-
}
|
110
|
-
|
111
|
-
.loading-spinner{
|
112
|
-
margin: 0 !important;
|
113
|
-
position: relative;
|
114
|
-
|
115
|
-
&::before{
|
116
|
-
position: absolute;
|
117
|
-
}
|
118
|
-
}
|
119
|
-
|
120
|
-
&:last-child{
|
121
|
-
margin-bottom: 0;
|
122
|
-
}
|
123
|
-
}
|
124
|
-
|
125
|
-
&__data__icon{
|
126
|
-
.icon{
|
127
|
-
width: 20px;
|
128
|
-
height: 20px;
|
129
|
-
fill: $muted;
|
130
|
-
}
|
131
|
-
|
132
|
-
&:hover{
|
133
|
-
.icon{
|
134
|
-
fill: $anchor-color;
|
135
|
-
}
|
136
|
-
}
|
137
|
-
}
|
138
|
-
|
139
|
-
&__data__number{
|
140
|
-
@extend .card-data__item__number;
|
141
|
-
|
142
|
-
font-size: 1.5rem;
|
143
|
-
line-height: 1.2;
|
144
|
-
}
|
145
|
-
|
146
|
-
&__data__votes{
|
147
|
-
@extend .card-data__item__number;
|
148
|
-
|
149
|
-
@include breakpoint(medium){
|
150
|
-
flex-grow: 1;
|
151
|
-
font-size: 1.2rem;
|
152
|
-
margin-left: 1rem;
|
153
|
-
margin-right: 1rem;
|
154
|
-
margin-bottom: 0;
|
155
|
-
text-align: cemter;
|
156
|
-
}
|
157
|
-
}
|
158
|
-
|
159
|
-
&__data--added{
|
160
|
-
background-color: tint($success, 80%);
|
161
|
-
}
|
162
|
-
|
163
|
-
&__title{
|
164
|
-
font-size: $global-font-size;
|
165
|
-
}
|
166
|
-
|
167
|
-
&__number{
|
168
|
-
@include breakpoint(medium down){
|
169
|
-
font-size: 1rem;
|
170
|
-
}
|
171
|
-
|
172
|
-
@include breakpoint(medium){
|
173
|
-
flex-grow: 1;
|
174
|
-
font-size: 1.2rem;
|
175
|
-
margin-left: 1rem;
|
176
|
-
margin-right: 1rem;
|
177
|
-
margin-bottom: 0;
|
178
|
-
text-align: right;
|
179
|
-
}
|
180
|
-
}
|
181
|
-
|
182
|
-
&__action{
|
183
|
-
margin-bottom: 0;
|
184
|
-
border-radius: 50%;
|
185
|
-
align-self: center;
|
186
|
-
flex-shrink: 0;
|
187
|
-
width: 2em;
|
188
|
-
height: 2em;
|
189
|
-
padding: 0;
|
190
|
-
display: flex;
|
191
|
-
justify-content: center;
|
192
|
-
align-items: center;
|
193
|
-
|
194
|
-
&--disabled{
|
195
|
-
pointer-events: none;
|
196
|
-
}
|
197
|
-
}
|
198
|
-
}
|
@@ -1,83 +0,0 @@
|
|
1
|
-
.budget-summary__total{
|
2
|
-
margin-bottom: .5rem;
|
3
|
-
}
|
4
|
-
|
5
|
-
.budget-summary__progressbox{
|
6
|
-
align-items: stretch;
|
7
|
-
margin-bottom: .5rem;
|
8
|
-
|
9
|
-
@include breakpoint(smallmedium down){
|
10
|
-
text-align: center;
|
11
|
-
}
|
12
|
-
|
13
|
-
@include breakpoint(medium){
|
14
|
-
display: flex;
|
15
|
-
}
|
16
|
-
|
17
|
-
.button{
|
18
|
-
margin-bottom: 0;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
.progressbox-fixed-wrapper{
|
23
|
-
position: fixed;
|
24
|
-
top: 0;
|
25
|
-
left: 0;
|
26
|
-
right: 0;
|
27
|
-
z-index: 2;
|
28
|
-
background: $white;
|
29
|
-
box-shadow: 0 2px 7px rgba(black, .1);
|
30
|
-
display: none;
|
31
|
-
|
32
|
-
&.is-progressbox-visible{
|
33
|
-
display: block;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
.budget-summary__progressbox--fixed{
|
38
|
-
margin: auto;
|
39
|
-
max-width: $global-width;
|
40
|
-
padding: 1rem 2rem;
|
41
|
-
|
42
|
-
@include breakpoint(mediumlarge){
|
43
|
-
padding: 1rem 4rem;
|
44
|
-
}
|
45
|
-
|
46
|
-
display: flex;
|
47
|
-
}
|
48
|
-
|
49
|
-
.budget-progress{
|
50
|
-
flex-grow: 1;
|
51
|
-
margin-bottom: .5rem;
|
52
|
-
min-height: 1.5rem;
|
53
|
-
|
54
|
-
@include breakpoint(medium){
|
55
|
-
min-height: 2rem;
|
56
|
-
margin-bottom: 0;
|
57
|
-
margin-right: 1rem;
|
58
|
-
}
|
59
|
-
}
|
60
|
-
|
61
|
-
.budget-progress--fixed{
|
62
|
-
min-height: 2rem;
|
63
|
-
margin-bottom: 0;
|
64
|
-
margin-right: 1rem;
|
65
|
-
}
|
66
|
-
|
67
|
-
.budget-progress__meter{
|
68
|
-
min-width: .1%;
|
69
|
-
}
|
70
|
-
|
71
|
-
.budget-summary__selected{
|
72
|
-
border-top: $border;
|
73
|
-
padding-top: .5rem;
|
74
|
-
padding-bottom: .5rem;
|
75
|
-
}
|
76
|
-
|
77
|
-
.budget-summary__selected-list{
|
78
|
-
margin-top: 2rem;
|
79
|
-
}
|
80
|
-
|
81
|
-
.budget-summary__selected-number{
|
82
|
-
margin: 0 .5rem;
|
83
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
//Foundation progress extension
|
2
|
-
|
3
|
-
.progress{
|
4
|
-
position: relative;
|
5
|
-
}
|
6
|
-
|
7
|
-
.progress-meter--minimum{
|
8
|
-
background: repeating-linear-gradient(-55deg, rgba(white, .2), rgba(white, .2) 8px, rgba(black, .03) 8px, rgba(black, .03) 16px);
|
9
|
-
position: absolute;
|
10
|
-
}
|
11
|
-
|
12
|
-
.progress-meter-text--right{
|
13
|
-
left: auto;
|
14
|
-
min-width: 100%;
|
15
|
-
transform: translate(0, -50%);
|
16
|
-
text-align: right;
|
17
|
-
padding-left: 1rem;
|
18
|
-
padding-right: .5rem;
|
19
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= cell "decidim/proposals/proposals_picker", current_component %>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<%= render partial: "decidim/shared/filter_form_help", locals: { skip_to_id: "projects" } %>
|
2
|
-
|
3
|
-
<%= filter_form_for filter do |form| %>
|
4
|
-
<div class="filters__section">
|
5
|
-
<div class="filters__search">
|
6
|
-
<div class="input-group">
|
7
|
-
<%= form.search_field :search_text_cont, label: false, class: "input-group-field", placeholder: t(".search"), title: t(".search"), "aria-label": t(".search"), data: { disable_dynamic_change: true } %>
|
8
|
-
<div class="input-group-button">
|
9
|
-
<button type="submit" class="button" aria-controls="projects">
|
10
|
-
<%= icon "magnifying-glass", aria_label: t(".search"), role: "img" %>
|
11
|
-
</button>
|
12
|
-
</div>
|
13
|
-
</div>
|
14
|
-
</div>
|
15
|
-
</div>
|
16
|
-
|
17
|
-
<% if voting_finished? %>
|
18
|
-
<%= form.check_boxes_tree :with_any_status, filter_status_values, legend_title: t(".status"), "aria-controls": "projects" %>
|
19
|
-
<% end %>
|
20
|
-
|
21
|
-
<% if current_component.has_subscopes? %>
|
22
|
-
<%= form.check_boxes_tree :with_any_scope, resource_filter_scope_values(budget.scope), legend_title: t(".scope"), "aria-controls": "projects" %>
|
23
|
-
<% end %>
|
24
|
-
|
25
|
-
<% if current_participatory_space.categories.any? %>
|
26
|
-
<%= form.check_boxes_tree :with_any_category, filter_categories_values, legend_title: t(".category"), "aria-controls": "projects" %>
|
27
|
-
<% end %>
|
28
|
-
|
29
|
-
<%= hidden_field_tag :order, order, id: nil, class: "order_filter" %>
|
30
|
-
<% end %>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<div class="filters-controls hide-for-mediumlarge">
|
2
|
-
<button data-open="filter-box" class="filters-controls__trigger" aria-controls="filter-box" aria-haspopup="dialog">
|
3
|
-
<%= t ".filter" %>
|
4
|
-
<%= icon "caret-bottom", class: "icon--small float-right", aria_label: t(".unfold"), role: "img" %>
|
5
|
-
</button>
|
6
|
-
</div>
|
7
|
-
|
8
|
-
<div class="reveal" id="filter-box" data-reveal role="dialog" aria-modal="true" aria-labelledby="filter-box-label">
|
9
|
-
<div class="reveal__header">
|
10
|
-
<h3 id="filter-box-label" class="reveal__title"><%= t ".filter_by" %>:</h3>
|
11
|
-
<button class="close-button" data-close aria-label="<%= t(".close_modal") %>" type="button">
|
12
|
-
<span aria-hidden="true">×</span>
|
13
|
-
</button>
|
14
|
-
</div>
|
15
|
-
<div class="filters">
|
16
|
-
<%= render partial: "filters", locals: { type: :small } %>
|
17
|
-
</div>
|
18
|
-
</div>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<div id="order-progress">
|
2
|
-
<div class="budget-summary__progressbox" data-current-allocation="<%= current_order ? current_order.total : 0 %>">
|
3
|
-
<div class="progress budget-progress" role="progressbar" aria-valuenow="<%= current_order_budget_percent %>" aria-valuetext="<%= current_order_budget_percent %>%" aria-valuemin="0" aria-valuemax="100">
|
4
|
-
<div class="progress-meter progress-meter--minimum" style="width: <%= current_order_budget_percent_minimum %>%"></div>
|
5
|
-
<!--Change width and text dynamically.-->
|
6
|
-
<div class="progress-meter budget-progress__meter" style="width: <%= current_order_budget_percent %>%">
|
7
|
-
<span class="progress-meter-text progress-meter-text--right"><%= current_order_budget_percent %>%</span>
|
8
|
-
</div>
|
9
|
-
</div>
|
10
|
-
<% if !current_order_checked_out? && voting_open? %>
|
11
|
-
<button class="button small button--sc" data-toggle="budget-confirm" <%= budget_confirm_disabled_attr %>>
|
12
|
-
<%= t(".vote") %>
|
13
|
-
</button>
|
14
|
-
<% end %>
|
15
|
-
</div>
|
16
|
-
|
17
|
-
<div class="progressbox-fixed-wrapper" data-progressbox-fixed>
|
18
|
-
<div class="budget-summary__progressbox budget-summary__progressbox--fixed">
|
19
|
-
<div class="progress budget-progress budget-progress--fixed" role="progressbar" aria-valuenow="<%= current_order_budget_percent %>" aria-valuetext="<%= current_order_budget_percent %>%" aria-valuemin="0" aria-valuemax="100">
|
20
|
-
<div class="progress-meter progress-meter--minimum" style="width: <%= current_order_budget_percent_minimum %>%"></div>
|
21
|
-
<div class="progress-meter budget-progress__meter" style="width: <%= current_order_budget_percent %>%">
|
22
|
-
<span class="progress-meter-text progress-meter-text--right"><%= current_order_budget_percent %>%</span>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
<% if !current_order_checked_out? && voting_open? %>
|
26
|
-
<button class="button small button--sc" data-toggle="budget-confirm" <%= budget_confirm_disabled_attr %>>
|
27
|
-
<%= t(".vote") %>
|
28
|
-
</button>
|
29
|
-
<% end %>
|
30
|
-
</div>
|
31
|
-
</div>
|
32
|
-
</div>
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<div id="order-selected-projects">
|
2
|
-
<% if current_order&.projects&.any? %>
|
3
|
-
<div class="card__content budget-summary__selected">
|
4
|
-
<button data-toggle="reveal-selected">
|
5
|
-
<strong><%= current_order.projects.size %> </strong><%= t(".selected_projects", count: current_order.projects.size) %>
|
6
|
-
<%= icon("caret-bottom", class:"icon--small", aria_label: t(".view"), role: "img") %>
|
7
|
-
</button>
|
8
|
-
<div id="reveal-selected" class="hide" data-toggler=".hide">
|
9
|
-
<ul class="budget-summary__selected-list">
|
10
|
-
<% current_order.projects.each do |project| %>
|
11
|
-
<li class="budget-summary__selected-item">
|
12
|
-
<%= link_to translated_attribute(project.title), resource_locator([budget, project]).path %>
|
13
|
-
<strong class="budget-summary__selected-number">
|
14
|
-
<%= budget_to_currency project.budget_amount %>
|
15
|
-
</strong>
|
16
|
-
<% unless current_order_checked_out? %>
|
17
|
-
<%= button_to budget_order_line_item_path(project_id: project), method: :delete, remote: true, data: { disable: true }, form: { style: "display: inline" } do %>
|
18
|
-
<%= icon("trash", aria_label: t(".remove"), role: "img") %>
|
19
|
-
<% end %>
|
20
|
-
<% end %>
|
21
|
-
</li>
|
22
|
-
<% end %>
|
23
|
-
</ul>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
<% end %>
|
27
|
-
</div>
|
data/config/locales/he-IL.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
he:
|
data/decidim-budgets.gemspec
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
|
-
|
5
|
-
# Maintain your gem's version:
|
6
|
-
require "decidim/budgets/version"
|
7
|
-
|
8
|
-
# Describe your gem and declare its dependencies:
|
9
|
-
Gem::Specification.new do |s|
|
10
|
-
s.version = Decidim::Budgets.version
|
11
|
-
s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
|
12
|
-
s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
|
13
|
-
s.license = "AGPL-3.0"
|
14
|
-
s.homepage = "https://github.com/decidim/decidim"
|
15
|
-
s.required_ruby_version = "~> 3.0.0"
|
16
|
-
|
17
|
-
s.name = "decidim-budgets"
|
18
|
-
s.summary = "Decidim budgets module"
|
19
|
-
s.description = "A budgets component for decidim's participatory spaces."
|
20
|
-
|
21
|
-
s.files = Dir.chdir(__dir__) do
|
22
|
-
`git ls-files -z`.split("\x0").select do |f|
|
23
|
-
(File.expand_path(f) == __FILE__) ||
|
24
|
-
f.start_with?(*%w(app/ config/ db/ lib/ Rakefile README.md))
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
s.add_dependency "decidim-comments", Decidim::Budgets.version
|
29
|
-
s.add_dependency "decidim-core", Decidim::Budgets.version
|
30
|
-
|
31
|
-
s.add_development_dependency "decidim-admin", Decidim::Budgets.version
|
32
|
-
s.add_development_dependency "decidim-dev", Decidim::Budgets.version
|
33
|
-
s.add_development_dependency "decidim-proposals", Decidim::Budgets.version
|
34
|
-
end
|
Binary file
|