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.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/stylesheets/decidim/budgets/budget/_budget-vote-button.scss +5 -5
  4. data/app/cells/decidim/budgets/base_cell.rb +1 -1
  5. data/app/cells/decidim/budgets/budget_cell.rb +6 -1
  6. data/app/cells/decidim/budgets/budget_information_modal/show.erb +14 -26
  7. data/app/cells/decidim/budgets/budget_list_item/projects_count.erb +6 -0
  8. data/app/cells/decidim/budgets/budget_list_item/show.erb +35 -30
  9. data/app/cells/decidim/budgets/budget_list_item/vote_action.erb +13 -0
  10. data/app/cells/decidim/budgets/budget_list_item_cell.rb +24 -1
  11. data/app/cells/decidim/budgets/budget_metadata_cell.rb +29 -0
  12. data/app/cells/decidim/budgets/budget_s_cell.rb +15 -0
  13. data/app/cells/decidim/budgets/budgets_header/show.erb +2 -6
  14. data/app/cells/decidim/budgets/budgets_list/card_list.erb +8 -13
  15. data/app/cells/decidim/budgets/budgets_list/main_list.erb +5 -0
  16. data/app/cells/decidim/budgets/budgets_list/show.erb +12 -16
  17. data/app/cells/decidim/budgets/budgets_list/voted.erb +8 -44
  18. data/app/cells/decidim/budgets/budgets_list_cell.rb +34 -0
  19. data/app/cells/decidim/budgets/limit_announcement/show.erb +3 -0
  20. data/app/cells/decidim/budgets/limit_announcement_cell.rb +2 -2
  21. data/app/cells/decidim/budgets/order_activity_cell.rb +1 -4
  22. data/app/cells/decidim/budgets/project_cell.rb +6 -1
  23. data/app/cells/decidim/budgets/project_l/extra_data.erb +6 -0
  24. data/app/cells/decidim/budgets/project_l/metadata.erb +4 -0
  25. data/app/cells/decidim/budgets/project_l_cell.rb +38 -0
  26. data/app/cells/decidim/budgets/project_metadata_cell.rb +78 -0
  27. data/app/cells/decidim/budgets/project_s_cell.rb +21 -0
  28. data/app/cells/decidim/budgets/project_tags/show.erb +1 -0
  29. data/app/cells/decidim/budgets/project_vote_button/show.erb +21 -15
  30. data/app/cells/decidim/budgets/project_vote_button_cell.rb +69 -1
  31. data/app/cells/decidim/budgets/project_voted_hint_cell.rb +1 -1
  32. data/app/cells/decidim/budgets/project_votes_count_cell.rb +9 -8
  33. data/app/commands/decidim/budgets/admin/create_project.rb +0 -1
  34. data/app/commands/decidim/budgets/admin/import_proposals_to_budgets.rb +1 -1
  35. data/app/commands/decidim/budgets/admin/update_project.rb +1 -2
  36. data/app/commands/decidim/budgets/admin/update_project_scope.rb +1 -1
  37. data/app/commands/decidim/budgets/admin/update_project_selection.rb +1 -1
  38. data/app/commands/decidim/budgets/admin/update_projects_budget.rb +57 -0
  39. data/app/controllers/concerns/decidim/budgets/admin/filterable.rb +1 -1
  40. data/app/controllers/concerns/decidim/budgets/needs_current_order.rb +2 -2
  41. data/app/controllers/decidim/budgets/admin/budgets_controller.rb +5 -5
  42. data/app/controllers/decidim/budgets/admin/projects_controller.rb +52 -10
  43. data/app/controllers/decidim/budgets/admin/proposals_imports_controller.rb +1 -1
  44. data/app/controllers/decidim/budgets/application_controller.rb +0 -4
  45. data/app/controllers/decidim/budgets/budgets_controller.rb +9 -0
  46. data/app/controllers/decidim/budgets/line_items_controller.rb +10 -16
  47. data/app/controllers/decidim/budgets/orders_controller.rb +7 -2
  48. data/app/controllers/decidim/budgets/projects_controller.rb +51 -4
  49. data/app/forms/decidim/budgets/admin/project_form.rb +1 -1
  50. data/app/helpers/decidim/budgets/application_helper.rb +4 -0
  51. data/app/helpers/decidim/budgets/projects_helper.rb +89 -33
  52. data/app/jobs/decidim/budgets/send_vote_reminder_job.rb +1 -1
  53. data/app/mailers/decidim/budgets/order_summary_mailer.rb +1 -1
  54. data/app/mailers/decidim/budgets/vote_reminder_mailer.rb +1 -1
  55. data/app/models/decidim/budgets/budget.rb +1 -0
  56. data/app/models/decidim/budgets/project.rb +17 -7
  57. data/app/packs/entrypoints/decidim_budgets.js +2 -0
  58. data/app/packs/src/decidim/budgets/exit_handler.js +11 -8
  59. data/app/packs/src/decidim/budgets/progressFixed.js +25 -11
  60. data/app/packs/src/decidim/budgets/projects.js +15 -10
  61. data/app/packs/stylesheets/budgets.scss +273 -0
  62. data/app/presenters/decidim/budgets/admin_log/budget_presenter.rb +2 -2
  63. data/app/presenters/decidim/budgets/admin_log/project_presenter.rb +2 -2
  64. data/app/services/decidim/budgets/order_reminder_generator.rb +4 -4
  65. data/app/views/decidim/budgets/admin/budgets/_form.html.erb +17 -12
  66. data/app/views/decidim/budgets/admin/budgets/edit.html.erb +16 -6
  67. data/app/views/decidim/budgets/admin/budgets/index.html.erb +58 -64
  68. data/app/views/decidim/budgets/admin/budgets/new.html.erb +16 -6
  69. data/app/views/decidim/budgets/admin/projects/_bulk-actions.html.erb +19 -10
  70. data/app/views/decidim/budgets/admin/projects/_form.html.erb +31 -35
  71. data/app/views/decidim/budgets/admin/projects/_project-tr.html.erb +15 -13
  72. data/app/views/decidim/budgets/admin/projects/bulk_actions/_budget-change.html.erb +22 -0
  73. data/app/views/decidim/budgets/admin/projects/bulk_actions/_change-selected.html.erb +3 -3
  74. data/app/views/decidim/budgets/admin/projects/bulk_actions/_dropdown.html.erb +8 -2
  75. data/app/views/decidim/budgets/admin/projects/bulk_actions/_recategorize.html.erb +3 -3
  76. data/app/views/decidim/budgets/admin/projects/bulk_actions/_scope-change.html.erb +5 -8
  77. data/app/views/decidim/budgets/admin/projects/edit.html.erb +16 -6
  78. data/app/views/decidim/budgets/admin/projects/index.html.erb +26 -31
  79. data/app/views/decidim/budgets/admin/projects/new.html.erb +16 -6
  80. data/app/views/decidim/budgets/admin/projects/update_attribute.js.erb +8 -4
  81. data/app/views/decidim/budgets/admin/proposals_imports/new.html.erb +40 -28
  82. data/app/views/decidim/budgets/budgets/index.html.erb +21 -3
  83. data/app/views/decidim/budgets/budgets/index.js.erb +6 -0
  84. data/app/views/decidim/budgets/line_items/update_budget.js.erb +21 -11
  85. data/app/views/decidim/budgets/projects/_addition_selector.html.erb +16 -0
  86. data/app/views/decidim/budgets/projects/_budget_confirm.html.erb +42 -31
  87. data/app/views/decidim/budgets/projects/_budget_excess.html.erb +12 -12
  88. data/app/views/decidim/budgets/projects/_budget_summary.html.erb +2 -75
  89. data/app/views/decidim/budgets/projects/_exit_modal.html.erb +15 -18
  90. data/app/views/decidim/budgets/projects/_linked_projects.html.erb +3 -12
  91. data/app/views/decidim/budgets/projects/_order.html.erb +1 -0
  92. data/app/views/decidim/budgets/projects/_order_progress_progressbar_marks_right.html.erb +10 -0
  93. data/app/views/decidim/budgets/projects/_order_progress_summary_content.html.erb +113 -0
  94. data/app/views/decidim/budgets/projects/_order_total_budget.html.erb +6 -7
  95. data/app/views/decidim/budgets/projects/_project.html.erb +2 -1
  96. data/app/views/decidim/budgets/projects/_project_budget_button.html.erb +11 -19
  97. data/app/views/decidim/budgets/projects/_projects.html.erb +8 -6
  98. data/app/views/decidim/budgets/projects/_projects_count.html.erb +5 -0
  99. data/app/views/decidim/budgets/projects/_projects_list.html.erb +3 -0
  100. data/app/views/decidim/budgets/projects/index.html.erb +58 -55
  101. data/app/views/decidim/budgets/projects/index.js.erb +5 -4
  102. data/app/views/decidim/budgets/projects/show.html.erb +78 -51
  103. data/config/assets.rb +0 -1
  104. data/config/locales/ar.yml +0 -50
  105. data/config/locales/bg.yml +0 -381
  106. data/config/locales/ca.yml +75 -84
  107. data/config/locales/cs.yml +73 -82
  108. data/config/locales/de.yml +76 -85
  109. data/config/locales/el.yml +34 -72
  110. data/config/locales/en.yml +79 -88
  111. data/config/locales/es-MX.yml +73 -82
  112. data/config/locales/es-PY.yml +73 -82
  113. data/config/locales/es.yml +75 -84
  114. data/config/locales/eu.yml +74 -86
  115. data/config/locales/fi-plain.yml +75 -84
  116. data/config/locales/fi.yml +79 -88
  117. data/config/locales/fr-CA.yml +74 -86
  118. data/config/locales/fr.yml +78 -90
  119. data/config/locales/ga-IE.yml +0 -12
  120. data/config/locales/gl.yml +0 -58
  121. data/config/locales/hu.yml +58 -81
  122. data/config/locales/id-ID.yml +0 -38
  123. data/config/locales/is-IS.yml +0 -22
  124. data/config/locales/it.yml +0 -84
  125. data/config/locales/ja.yml +69 -81
  126. data/config/locales/ko.yml +0 -54
  127. data/config/locales/lb.yml +0 -85
  128. data/config/locales/lt.yml +59 -82
  129. data/config/locales/lv.yml +0 -44
  130. data/config/locales/nl.yml +0 -96
  131. data/config/locales/no.yml +0 -84
  132. data/config/locales/pl.yml +0 -167
  133. data/config/locales/pt-BR.yml +9 -141
  134. data/config/locales/pt.yml +0 -85
  135. data/config/locales/ro-RO.yml +0 -95
  136. data/config/locales/ru.yml +0 -41
  137. data/config/locales/sk.yml +0 -44
  138. data/config/locales/sq-AL.yml +0 -52
  139. data/config/locales/sr-CS.yml +0 -4
  140. data/config/locales/sv.yml +42 -150
  141. data/config/locales/tr-TR.yml +2 -82
  142. data/config/locales/uk.yml +0 -41
  143. data/config/locales/zh-CN.yml +0 -65
  144. data/config/locales/zh-TW.yml +13 -59
  145. data/lib/decidim/budgets/admin_engine.rb +3 -2
  146. data/lib/decidim/budgets/component.rb +4 -90
  147. data/lib/decidim/budgets/engine.rb +30 -10
  148. data/lib/decidim/budgets/project_serializer.rb +3 -3
  149. data/lib/decidim/budgets/seeds.rb +69 -0
  150. data/lib/decidim/budgets/test/factories.rb +23 -37
  151. data/lib/decidim/budgets/version.rb +1 -1
  152. data/lib/decidim/budgets/workflows/base.rb +1 -1
  153. metadata +46 -42
  154. data/app/cells/decidim/budgets/budget_m/data.erb +0 -12
  155. data/app/cells/decidim/budgets/budget_m/footer.erb +0 -5
  156. data/app/cells/decidim/budgets/budget_m_cell.rb +0 -16
  157. data/app/cells/decidim/budgets/project_list_item/project_data.erb +0 -19
  158. data/app/cells/decidim/budgets/project_list_item/project_image.erb +0 -5
  159. data/app/cells/decidim/budgets/project_list_item/project_text.erb +0 -23
  160. data/app/cells/decidim/budgets/project_list_item/show.erb +0 -5
  161. data/app/cells/decidim/budgets/project_list_item_cell.rb +0 -70
  162. data/app/cells/decidim/budgets/project_m/data.erb +0 -12
  163. data/app/cells/decidim/budgets/project_m/footer.erb +0 -5
  164. data/app/cells/decidim/budgets/project_m_cell.rb +0 -22
  165. data/app/packs/stylesheets/decidim/budgets/_budgets.scss +0 -3
  166. data/app/packs/stylesheets/decidim/budgets/budget/_budget-list.scss +0 -198
  167. data/app/packs/stylesheets/decidim/budgets/budget/_budget-meter.scss +0 -83
  168. data/app/packs/stylesheets/decidim/budgets/budget/_progress.scss +0 -19
  169. data/app/views/decidim/budgets/admin/projects/proposals_picker.html.erb +0 -1
  170. data/app/views/decidim/budgets/projects/_filters.html.erb +0 -30
  171. data/app/views/decidim/budgets/projects/_filters_small_view.html.erb +0 -18
  172. data/app/views/decidim/budgets/projects/_order_progress.html.erb +0 -32
  173. data/app/views/decidim/budgets/projects/_order_selected_projects.html.erb +0 -27
  174. data/config/locales/he-IL.yml +0 -1
  175. data/decidim-budgets.gemspec +0 -34
  176. 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">&times;</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>
@@ -1 +0,0 @@
1
- he:
@@ -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