Julian Herrero
17b4fb58c9
Add type to budget index table
...
Co-Authored-By: decabeza <alberto@decabeza.es >
2021-06-11 00:51:52 +02:00
taitus
b1b2cfa8b1
Add new time format :short_datetime
...
Improve DurationComponent for render time without seconds.
I believe that adding the seconds in this component is not necessary.
2021-06-10 17:14:01 +02:00
decabeza
f8008a4a6f
Add link to remove budget on budget admin index
2021-06-08 18:45:55 +02:00
Julian Herrero
f8d6ba12d7
Add headings step to budget creation
...
Co-Authored-By: decabeza <alberto@decabeza.es >
2021-06-08 18:45:53 +02:00
Javi Martín
82e8de094b
Extract budget form to a component
...
This way it will be easier to change it and reuse it.
2021-06-08 14:25:43 +02:00
Javi Martín
93a7d28a82
Fix crash with budgets with no published phases
...
In this case, the duration of the budget cannot be determined, and the
application was crashing when trying to do so.
Now we're just returning `nil` as duration.
2021-06-02 18:00:17 +02:00
Javi Martín
69ade5b131
Fix crash with budgets with disabled current phase
...
There's an edge case where the current phase of the budget was disabled.
In this case, the application was crashing.
I'm not sure what we should do regarding this case. Is it OK to allow
disabling the current phase? Is it OK to allow selecting a disabled
phase as the current phase?
Since I'm not sure about it, for now I'm leaving it the same way it was.
Co-authored-by: Julian Herrero <microweb10@gmail.com >
2021-06-02 18:00:17 +02:00
Julian Herrero
d2871d7770
Include duration in budgets table
2021-03-11 19:37:58 +01:00
Javi Martín
da7846c6d5
Merge pull request #4361 from consul/sdg_per_budget_stats
...
Split investment projects statistics by participatory budget
2021-02-26 14:41:13 +01:00
Senén Rodero Rodríguez
ebe8903c75
Investment projects statistics by participatory budget
...
The more recent budgets show first.
The current budget will only show the amount of sent investments
until the winner's phase.
2021-02-26 14:08:45 +01:00
decabeza
7eda4be219
Add link to preview budget on budgets table
2021-02-23 17:05:24 +01:00
Senén Rodero Rodríguez
4c2d918bb5
Create component to render goal stats
2021-01-23 12:23:29 +01:00
Javi Martín
c66a5a30ef
Allow using table actions in different namespaces
...
This way we can reuse it in sections like SDGManagement and URLs will be
automatically generated as expected.
2021-01-14 17:35:38 +01:00
Javi Martín
c5a6ee74c4
Fix component specs using "within"
...
These specs were passing because the `within` method does not work in
components specs. We have to use `page.find` instead.
2021-01-09 15:48:12 +01:00
Javi Martín
7cb0a4135b
Extract component for admin officers table
...
This way we can remove duplication and simplify the code in the view.
Note we're not using the "within" method in the tests to access a row,
because it doesn't seem to work in components tests when passing the
`text:` option.
2020-10-21 13:19:52 +02:00
Javi Martín
08c2bfc255
Extract component to add/remove admin/mod/manager
...
We remove some duplication by doing so.
2020-10-21 13:19:52 +02:00
Javi Martín
02e27e13dc
Extract component for budget actions
...
We can omit passing a parameter to the helper method thanks to that, and
we group related code together.
2020-10-21 13:19:52 +02:00
Javi Martín
1537f25739
Extract component for organization actions
...
We remove duplication by doing so, and now we only need to add the call
do render Admin::TableActionsComponent once.
2020-10-21 13:19:52 +02:00
Javi Martín
eb3f2bc2ca
Extract component for restore and hide actions
...
By doing so, we remove a lot of duplication.
2020-10-21 13:19:52 +02:00
Javi Martín
fb23df2e5b
Allow additional links in table actions component
...
This way we'll be able to make these links consistent.
2020-10-21 13:19:49 +02:00
Javi Martín
e3753b1ad9
Allow custom options in links to actions
...
Some links were using options like `remote: true`.
2020-10-19 18:56:02 +02:00
Javi Martín
497963817c
Allow different confirmation texts in destroy link
2020-10-19 18:56:02 +02:00
Javi Martín
b1f9ca4ad5
Allow custom URLs in links to actions
...
There were a couple of cases where these links didn't point to the
default actions.
2020-10-19 18:56:02 +02:00
Javi Martín
738646a565
Allow different texts in links to actions
...
The texts were different for a few models, so the component needs to be
updated.
2020-10-19 18:56:02 +02:00
Javi Martín
10c095d821
Move table actions partial to a component
...
This partial was going to get too complex since in some places we've got
different texts, different URLs or different confirmation messages.
While we should probably try to be more consistent and that would make
the partial work in most cases, there'll always be some exceptions, and
using a partial (with, perhaps, some helper methods) will become messy
really quickly.
2020-10-19 18:56:02 +02:00