Alberto
a709f846be
Merge pull request #2046 from wairbut-m2c/aperez-removable-admin-answer-images
...
Removable answer's associated images
2018-05-03 17:24:48 +02:00
Alberto
1e8f4c7f32
Merge pull request #2342 from wairbut-m2c/iagirre-budgets-column-show-valuators
...
Budget: add column show to valuators
2018-04-30 17:49:15 +02:00
decabeza
56f64779ba
Fixes actions buttons on admin valuators index table
2018-04-27 18:24:53 +02:00
decabeza
1f82599380
Adds class on back link to admin budget investments show
2018-04-27 18:24:17 +02:00
Bertocq
1dc8d29f2d
Add Valuator Groups list to investment csv & table
...
We've added the list of valuator groups assigned to each investment at
both admin investment list and investment csv exported file
2018-04-11 21:12:46 +02:00
Bertocq
b364fc475e
Move assigned_valuators from helper to model
...
There's no good reason to call assigned_valuators(investment) when the
logic can be at the model.
Also removed the valuator_groups texts to be added in an independent
method
2018-04-11 21:07:01 +02:00
iagirre
e2a91c6cc8
Modified the investments partial to fit the new budget_investments UI: valuating filter name has changed to under_valuation.
...
Modified the specs to fit the new UI for budget_investments
2018-04-09 15:02:35 +02:00
iagirre
b8cc10d218
Fix conflics after rebase
2018-04-09 15:02:35 +02:00
rgarcia
00c965b715
Clean up
2018-04-04 13:19:01 +02:00
rgarcia
2d3c4e1fbd
Add group member count
2018-04-03 20:58:35 +02:00
rgarcia
1152f95965
Display valuator group assignments
2018-04-03 20:56:31 +02:00
rgarcia
fcb377c9e5
Remove description when creating valuator from index
2018-04-03 20:56:31 +02:00
rgarcia
7e839e7815
Filter by valuator group
2018-04-03 20:56:31 +02:00
rgarcia
bb82d533a3
Display valuators on valuator group's show
2018-04-03 20:56:31 +02:00
decabeza
3163293626
Improves valuator groups index count
2018-04-03 20:56:31 +02:00
decabeza
13d0b08cb4
Adds styles and missing i18n for valuator groups 👨🏻🎨
2018-04-03 20:56:31 +02:00
rgarcia
ab498d6d93
Assign groups to investments
2018-04-03 20:55:44 +02:00
rgarcia
1dbbe331c9
Assign valuators to groups
2018-04-03 20:55:44 +02:00
rgarcia
cddfdf4b84
Add valuator groups
2018-04-03 20:55:44 +02:00
Raimond Garcia
4260c05f30
Merge pull request #2537 from consul/budgets-ui
...
Fixes budgets ui for all phases
2018-03-27 20:21:45 +02:00
Raimond Garcia
678faa17ec
Merge pull request #2539 from consul/admin-budget-investments
...
Admin budget investment info
2018-03-27 20:21:03 +02:00
Raimond Garcia
c83dc13c56
Merge pull request #2538 from consul/admin-users
...
Admin users
2018-03-27 20:12:53 +02:00
rgarcia
730072e91e
Add max votable headings to groups
2018-03-22 22:24:58 +01:00
Raimond Garcia
c1d7378c92
Merge pull request #2504 from consul/budget_group_name_edit
...
Allow Budget Group names to be edited
2018-03-22 22:12:04 +01:00
rgarcia
c908e91f00
Order budget headings by id
...
To maintain order after editing a heading’s name
We should probably add timestamps to `groups` and `headings` and order
by `created_at` instead
Could have done it in a separate PR, but gotta keep moving to other
priority issues. Creating issue for timestamps to do correctly and with
tests 😌
2018-03-22 10:20:07 +01:00
rgarcia
1083213ac7
Order budget groups by id
...
To maintain order after editing a group’s name
We should probably add timestamps to `groups` and `headings` and order
by `created_at` instead
2018-03-22 10:19:56 +01:00
decabeza
acebb07ddd
Adds link to image and docs on admin budget investment info
2018-03-14 15:14:47 +01:00
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