taitus
bca9364c64
Align admin polls form fields with new translations interface
2019-07-01 14:49:44 +02:00
taitus
000c6c5911
Align admin active polls form fields with new translations interface
2019-07-01 14:49:44 +02:00
taitus
c9eaeffaf2
Align admin legislation questions form fields with new translations interface
2019-07-01 14:49:44 +02:00
taitus
27a3ff28d3
Align admin legislation processes form fields with new translations interface
2019-07-01 14:49:44 +02:00
taitus
1d4bde46d6
Align admin legislation milestones summary form fields with new translations interface
2019-07-01 14:49:44 +02:00
taitus
9695b0c720
Align admin legislation homepages form fields with new translations interface
2019-07-01 14:49:44 +02:00
taitus
a7dcc61ab4
Align admin legislation draft version form fields with new translations interface
2019-07-01 14:49:44 +02:00
taitus
944e502605
Align admin budget form fields with new translations interface
2019-07-01 14:49:44 +02:00
taitus
44ee8aa0c0
Align admin budget_headings form fields with new translations interface
2019-07-01 14:49:44 +02:00
taitus
fb39e6c09e
Align admin budget_groups form fields with new translations interface
2019-07-01 14:49:44 +02:00
taitus
6c0f9165c7
Align admin budget_phases form fields with new translations interface
2019-07-01 14:49:44 +02:00
taitus
cd5095cf68
Align admin_notifications form fields with new translations interface
2019-07-01 14:49:44 +02:00
Senén Rodero Rodríguez
146c09adb7
Update references to new translation interface
2019-07-01 14:49:43 +02:00
Senén Rodero Rodríguez
01bb0b9c6b
Move translation interface to views root shared folder
...
As we are going to call this partial from any application view it will
have more sense to place it at `app/views/shared`.
2019-07-01 14:49:43 +02:00
Senén Rodero Rodríguez
661ca5a568
Add budget investments translation interface
...
* Adapt translatable spec helper method to work with budget investments
* Remove old attributes from strong parameters
* Add missing locales to admin.yml and budgets.yml
* Change SpendingProposal.title_max_length and
SpendingProposal.description_max_lenght to Budget::Investment methods
* Add budget investment translatable attribute translations
2019-06-27 09:20:24 +02:00
lalo
23d36835d7
Add Admin changes to create Poll:Questions with votation type
2019-06-12 19:44:14 +02:00
German Galia
74083df10f
Add historic fields to participatory budget
2019-06-12 18:03:53 +02:00
German Galia
9ce524e1f3
Create tracker rol
2019-06-12 16:23:40 +02:00
German Galia
16ffa2a259
Add change log in investment participatory budget
2019-06-12 13:06:20 +02:00
Raimond Garcia
259e05c3e0
Merge pull request #3410 from LextrendIT/report_generation
...
Report generation, download CSV
2019-06-12 11:45:59 +02:00
German Galia
9d1ca3bfd4
Report generation. Download csv
2019-06-12 10:17:31 +02:00
Raimond Garcia
22787151f5
Merge pull request #3439 from LextrendIT/feature/add_admin_investments_column_chooser
...
Add columns selector JS component and change Rails view to use it
2019-06-11 17:17:52 +02:00
lalo
c2860dda0e
Add can_comment and can_edit_dossier abilities to valuators
2019-06-11 16:24:02 +02:00
Raimond Garcia
d266cb33ce
Merge pull request #3427 from LextrendIT/feature/unify_valuator_and_admin_investment_pages
...
Display preview public page component on admin and valuators investment page
2019-06-11 14:44:45 +02:00
Julian Nicolas Herrero
c7ea0528e0
Merge pull request #3603 from consul/admin_stats_before_voting_phase
...
Avoid error when accessing final voting stats before the balloting phase
2019-06-11 14:34:42 +02:00
lalo
4740aeaddf
Add columns selector JS component and change Rails view to use it
2019-06-11 14:33:40 +02:00
Julian Herrero
fd71ed825b
Avoid error when accessing final votes stats before balloting phase
...
When accessing the URL `/admin/stats/budget_balloting?budget_id=X'
for a budget in a phase prior to the balloting phase, the following
error was raised due to the stats where not calculated yet.
Instead, we'll now show a flash message.
NoMethodError:
undefined method `[]' for nil:NilClass
./app/controllers/admin/stats_controller.rb:82
2019-06-10 17:28:16 +02:00
lalo
be8a0dbe8a
Add Milestone tag select filter on executions public page
2019-06-07 14:17:32 +02:00
lalo
63e0cd02d0
Display milestone_tags input for investments, display milestone_tags on admin and tests
2019-06-07 14:07:43 +02:00
Javier Martín
72c6b05c64
Merge pull request #3376 from LextrendIT/3350_rename_debates_comments_admin
...
Refactor admin/debates and admin/comments to hidden
2019-06-05 19:15:21 +02:00
Julian Nicolas Herrero
7802305b18
Merge pull request #3585 from consul/images_and_documents_settings
...
Images and documents settings
2019-06-05 19:11:22 +02:00
lalo
d0e1eff532
Add description field to administrator users like evaluators description
2019-06-05 16:18:12 +02:00
Julian Herrero
220bfb065a
Add images and documents settings to admin panel
2019-06-04 11:47:22 +02:00
Julian Herrero
b4e8395bd6
Extract settings forms to partials
2019-06-04 11:39:40 +02:00
lalo
c538d08fee
Display public investment view on admin and valuator pages as preview
2019-06-04 09:30:51 +02:00
German Galia
85722eb7c4
Rename admin/debates and admin/comments to hidden
2019-06-02 19:12:26 +02:00
voodoorai2000
d0b8fef6b3
Delete spending proposals
2019-05-31 18:22:59 +02:00
voodoorai2000
24dde9c35e
Delete valuation
2019-05-31 15:43:06 +02:00
voodoorai2000
a932737881
Delete ballots
2019-05-31 15:43:06 +02:00
Julian Nicolas Herrero
3ba7bd1cab
Merge pull request #3567 from consul/select_proposals_by_admins
...
Make proposals to be selected by administrators
2019-05-31 15:30:39 +02:00
Javier Martín
888c161944
Merge pull request #2616 from consul/show_votes_associated_to_signatures
...
Show count of votes associated to verified signatures
2019-05-31 15:30:04 +02:00
Bertocq
d9fdc2e0f2
Show votes associated to verified signatures
2019-05-30 18:38:46 +02:00
Javi Martín
123196e4ed
Display the same results for stats and recounts
...
In the recounts we were incorrectly assuming the total amount included
the blank and invalid ballots.
2019-05-30 17:22:39 +02:00
Julian Herrero
28835a29ef
Share helper between class Proposal and Legislation::Proposal
2019-05-30 11:19:38 +02:00
Julian Herrero
ad5f7a06e1
Allow admins to select proposals and users to list them
2019-05-30 11:19:33 +02:00
Javier Martín
387488aa68
Merge pull request #3520 from consul/backport-refactor_stats_enabled
...
Add options to show advanced stats
2019-05-23 13:07:19 +02:00
Javi Martín
45a3d8daf0
Add option to enable advanced stats
2019-05-22 11:50:03 +02:00
Javi Martín
4f4dc2c2af
Add show results and stats form to budgets
2019-05-22 11:50:03 +02:00
Javi Martín
eb13994999
Extract partial for form to show results and stats
2019-05-22 11:50:03 +02:00
Javi Martín
354b183e17
Create reports
...
This table will store which reports (stats, results, ...) will be shown
for a certain process (polls, budgets, ...).
Note Rails fails to save a poll and its report when both are new records
if we add a `validate :process, presence: true` rule. Since it caused a
lot of trouble when creating records for tests during factories rule
completely. Instead, I've created the `results_enabled=` and
`stats_enabled=` methods, so tests are easier to set up, while also
automatically creating a report if it doesn't already exist. This also
decouples form structure and database implemenation.
Originally I named this table `enabled_reports` and instead of having
`stats` and `results` columns, it had an `enabled` column and a `kind`
column, which would be set to "stats" or "results". However, although
that table would allow us to add arbitrary reports easily, I found the
way we had to handle the `has_many` relationship was a bit too complex.
2019-05-22 11:50:03 +02:00