decabeza
f05fdb88ea
Adds link to username on admin users index view
2018-03-14 15:09:30 +01:00
decabeza
4fbc10d85e
Fixes budgets ui for all phases
2018-03-14 15:01:56 +01:00
Bertocq
d9a8474793
Refactor Group partial to be easier to read
2018-03-02 09:17:26 +01:00
Bertocq
7c02f9c82e
Fix missing I18n.t usage
2018-03-02 09:17:21 +01:00
Raúl Fuentes
78fc4010d0
fixed the style
2018-03-02 09:17:08 +01:00
Raúl Fuentes
6d8d44a5e3
Added interface and methods for edit the name of a Budget::Group if the budget is still inthe drafting phase
2018-03-02 09:16:57 +01:00
Bertocq
6b41b6487b
Add UserSegments#user_segment_emails helper method
...
Why:
Both Newsletters and Email Downloads need the same logic: To extract the
emails from all the users in the segment that have newsletter flag
active, removing all empty email values.
How:
1- UserSegments#user_segment_emails holds that repeated logic and is used
on both Newsletter & EmailDownload.
2- Rename Newsletter#list_of_recipients to list_of_recipient_emails as
it is more descriptive. There is no need to pass entire Users around,
only the emails are needed at Mailer#newsletter method.
3- Cleanup Newsletter#list_of_recipient_emails model spec scenario
2018-03-01 20:59:20 +01:00
Bertocq
24aa157998
Fix invalid Newsletter recipients count to 0
...
When a newsletter doesn't have a valid user segment for the recipients
list, the number of users should be 0.
2018-02-21 11:47:24 +01:00
Bertocq
f34d6c1c1d
Prevent invalid newsletters from being sent
...
Why:
Newsletters without a valid user segment can't be sent since there is no
recipient user email list.
How:
* Hiding the send button at the form
* Preventing an invalid newsletter from being delivered at the controller
2018-02-21 11:47:16 +01:00
Bertocq
38f7a222f5
Add error message for invalid Newsletter user segment
...
Instead of the name of the User Segment we'll display an error message
2018-02-21 11:46:30 +01:00
Bertocq
4becd0eb35
Change Newsletter's segment_recipient to string
...
Why:
Newsletter attribute `segment_recipient` is an integer to be used as
enum. There's no advantage to store a number instead of an string if the
ammount of elements in the table is not going to be huge, or we can take
advantage of using an enum.
Also maintaining both Newsletters enum paired with UserSegments::SEGMENTS
would be a maintenance burden.
How:
* Migration to change segment_recipient column from integer to string
* Removing enumeration from Newsletter model class
* Using UserSegments::SEGMENTS instead of Newsletter.segment_recipients
or integer values
2018-02-21 11:46:11 +01:00
Bertocq
f873bff5c6
Fix admin menu controller name conditionals
2018-02-20 22:33:01 +01:00
María Checa
1c458d4be3
Added emails download views
2018-02-20 22:33:01 +01:00
Bertocq
1c653a7096
Improve admin menu active item conditionals
2018-02-20 18:50:39 +01:00
María Checa
24bca36639
Merge branch 'master' into admin-newsletter-emails
2018-02-14 16:07:13 +01:00
María Checa
881059811f
Added newsletter admin views
2018-02-14 16:05:29 +01:00
Bertocq
b3b28e21d0
Fix translation indentation on investments partial
2018-02-10 20:44:02 +01:00
Bertocq
189fa5ba50
Fixes advanced filters link position
2018-02-10 16:42:54 +01:00
BertoCQ
087c8b0a99
Merge pull request #2395 from consul/hidden-comments
...
Hidden comments
2018-02-05 20:27:05 +01:00
Bertocq
770086779e
Use new milestone order_by_publication_date order scope
2018-02-03 19:15:59 +01:00
Bertocq
b926740a32
Show valuation comments at admin investment show page
2018-01-31 16:35:45 +01:00
Bertocq
a15e372f7e
Rename written_by_authors partial to dossier
...
Its more descriptive in the contexts where its rendered
2018-01-31 16:30:39 +01:00
Angel Perez
47c9b343ee
Admins can search investments by title or ID ( #2401 )
2018-01-31 09:52:55 -04:00
Angel Perez
1f50e284a9
'Current applied filters' message handles multiple filters in use
2018-01-31 07:21:51 -04:00
Angel Perez
a5159672d4
Investments are now aggregated when using more than 1 advanced filter
2018-01-31 07:21:51 -04:00
BertoCQ
4020720b32
Merge pull request #2370 from consul/improve_budget_heading_style
...
Improve budget heading style
2018-01-31 02:35:51 +01:00
Angel Perez
2cee29d883
Fix: Admin investments table not showing up properly
2018-01-29 18:34:15 -04:00
Raimond Garcia
b5cb5e2563
Merge pull request #2387 from wairbut-m2c/show_only_current_budget_tags_in_admin_budget
...
Show only current budget tags in admin budget
2018-01-29 20:14:10 +01:00
Raimond Garcia
626b9972d1
Merge pull request #2378 from wairbut-m2c/aperez-investments-search
...
Add search & sorting options to Admin::BudgetInvestments
2018-01-29 20:06:43 +01:00
Sergio Castellano Herrera
54753fece4
Error to access hide comments
2018-01-29 16:48:40 +01:00
Vicente Mendoza
ff5112f96b
Changed the budgets helper so just search for the current budget
2018-01-26 11:30:02 +01:00
decabeza
1d7352d21c
fixes textarea and label order on admin budgets phases form
2018-01-25 14:40:04 +01:00
Angel Perez
716fd6a46e
Persist sorting when filtering/selecting investments
2018-01-25 08:18:04 -04:00
Angel Perez
e04dc5b8f2
Add sorting options for Admin::BudgetInvestments ( #2336 )
2018-01-25 08:18:04 -04:00
Angel Perez
d30d2b0dd8
Arrange Admin::BudgetInvestments I18n for buttons under same namespace
2018-01-25 08:18:04 -04:00
Angel Perez
680ca46ef1
Add search form for Admin::BudgetInvestments ( #2336 )
2018-01-25 08:16:32 -04:00
decabeza
acfd49e5bd
improves styles for budget investments advanced filters
2018-01-25 11:14:06 +01:00
Bertocq
d75fd59684
Align right heading amount & population at admin table
2018-01-24 01:12:38 +01:00
Bertocq
43137df4a5
Format heading price at admin table
2018-01-24 01:12:17 +01:00
María Checa
1c2949b60d
Merge pull request #2344 from wairbut-m2c/aperez-investments-filters
...
Improvements for Admin::Budget::Investment filters
2018-01-23 20:09:54 +01:00
Bertocq
b6cc816d0f
Remove the end date adjustment at admin budget phase table
2018-01-23 02:13:11 +01:00
Bertocq
599442440b
Correctly format Budget's phases dates
2018-01-23 02:07:49 +01:00
Bertocq
cc69225b7a
Assert phases list order in admins budget edit form
2018-01-23 00:15:06 +01:00
Angel Perez
3f6a9187ec
Add 'current applied filters' message to investments partial
2018-01-22 14:04:57 -04:00
Angel Perez
3826f040c2
Add missing 'tbody' HTML tag to investments partial
2018-01-22 14:02:29 -04:00
Angel Perez
e5c73d8f02
Add advanced filters for Admin::Budget::Investment
2018-01-22 14:02:29 -04:00
Bertocq
8eaf0982b1
Fixed Admin Budget's destroy button to a link
...
Why:
The Admin Budget form has a submit button for saving the record, adding
another submit input to destroy the record actually adds to the html:
`<input type="hidden" name="_method" value="delete">` and it collides
with the save button, forcing it to perform a destroy instead of save.
Previously the destroy button was not in the same div as the save button
How:
Just changing the Destroy from a button_to to a link_to.
2018-01-20 14:03:14 +01:00
Angel Perez
10fac6d2d1
Admins can delete an answer's associated images ( #1999 )
2018-01-19 15:29:18 -04:00
María Checa
a97c007150
Added admin budget phases views
2018-01-19 18:19:46 +01:00
BertoCQ
d44db9cec4
Merge branch 'master' into feature/budget_phases
2018-01-16 17:47:47 +01:00