Senén Rodero Rodríguez
76400a8c23
Add LocalCensusRecords link to admin menu
...
* Add to menu as a Settings sub-options
* Add translations for EN and ES locales
* Activate menu sub-option when user is at any LocalCensusRecords page
2019-07-29 13:07:24 +02:00
Senén Rodero Rodríguez
d3422acbb7
Add validation to check translations amount on updates
...
In order to not allow users to remove all persited
translations from any resource. A few exceptions were
added:
* Does not apply to globalizable models without
translatable attributes required
* Make a copy of main model error on current translations to be more realistic
2019-07-02 17:15:16 +02:00
Senén Rodero Rodríguez
97eab7445d
Move translations from admin.yml to general.yml
...
After extract translation interface partials from admin
folder translations should be placed in general.yml file
inside shared context.
2019-07-01 15:03:48 +02:00
Senén Rodero Rodríguez
10939fddb1
Add missing translation and fix indentation
2019-07-01 15:03:48 +02:00
Senén Rodero Rodríguez
9fd77d4042
Add languages in use description
...
New interface now shows a description to ensure the user
knows how many languages are currently in use.
2019-07-01 14:49:43 +02:00
voodoorai2000
53b4c12439
Use correct interpolation variable
...
This view[1] has changed and now uses `handle` instead of `org`. The Dutch translations, used in this view, had not been updated yet and when used in specs[2] it was raising a variable interpolation error.
[1] https://github.com/consul/consul/blob/master/app/views/budgets/investments/_investment_show.html.erb#L197
[2] rspec ./spec/features/budgets/investments_spec.rb[1:2:5:1:2]
2019-06-27 09:21:19 +02:00
taitus
395143ba5a
Display button or informative text
...
When all remote translations are enqueued we not display button but
we display informative text.
Co-Authored-By: alessandro <agileontheweb@gmail.com >
2019-06-27 09:21:19 +02:00
taitus
cbd7ab7179
Add remote translation button
...
- Create partial to render remote translation button. This button will
send remote_translations as json to remote translations controller.
- Add locales
- Add styles
Co-Authored-By: alessandro <agileontheweb@gmail.com >
2019-06-27 09:21:18 +02:00
taitus
21f347778b
Add Remote Translations Settings
...
- Add to seeds and dev_seeds
- Add locales
2019-06-27 09:21:18 +02:00
taitus
744a3d48fd
Create RemoteTranslations Controller
...
- Create RemoteTranslations Controller to receive resources without
translations and create RemoteTranslation instances when theirs
translations are not enqueued.
- Create remote_translation_enqueued? class method on RemoteTranslation
model to check if exists same remote translations without errors
pending to translate.
2019-06-27 09:21:18 +02:00
Senén Rodero Rodríguez
7e3f0b5c18
Add translation interface feature setting
...
Allow to enable/disable translation interface at frontend
2019-06-27 09:20:25 +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
Senén Rodero Rodríguez
4236a3a388
Move label translations to activerecord.yml files
...
Moved only :es and :en translations from general.yml to activerecord.yml
and use them in related forms.
2019-06-27 09:19:37 +02:00
Senén Rodero Rodríguez
f70adbe23a
Move label translations to activerecord.yml
2019-06-27 09:19:37 +02:00
Senén Rodero Rodríguez
51cda51155
Add debates translation interface
...
Also fix broken spec after removing translatable attributes from
strong_parameters definition. Now we need to send these attributes
as nested translations attributes.
Use activerecord.yml title attribute label so form helper could load it
from default location.
2019-06-27 09:19:36 +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
Raimond Garcia
e0e1e1dac1
Merge pull request #3437 from LextrendIT/feature/add_valuator_role_actions_manager
...
Add abilities to valuator model for comment and edit dossiers
2019-06-11 17:13:13 +02:00
Raimond Garcia
c1b14943e6
Merge pull request #3473 from LextrendIT/3463_collaborative_legislation_summary
...
Collaborative legislation summary
2019-06-11 16:41:45 +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
lalo
ef345ca87c
Collaborative legislation summary
2019-06-11 14:31:44 +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
Raimond Garcia
a874d25bfa
Merge pull request #3413 from LextrendIT/feature/notify_evaluation_comments
...
notify by email new evaluation comments
2019-06-06 11:29:38 +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
Javier Martín
cbad8ad416
Merge pull request #3389 from LextrendIT/feature/add_description_field_to_administrator_users_like_evaluators
...
Add description field to administrator users like evaluators description
2019-06-05 18:36:16 +02:00
lalo
8061bfa5e8
Send email to users related with an investment when valuation comment is created
2019-06-05 17:02:59 +02:00
lalo
28815cb290
Create new email template for new evaluation comment created and add it to system_emails view
2019-06-05 16:22:12 +02:00
lalo
d0e1eff532
Add description field to administrator users like evaluators description
2019-06-05 16:18:12 +02:00
Julian Herrero
1f76b25e2a
Show name and email for deleted poll officer's user account
...
Avoid to raise an exception `Module::DelegationError' when trying to
show the name and/or email of a poll officer whose user account has
been deleted.
We'll show a message "User deleted" and "Email deleted" instead.
2019-06-04 18:55:51 +02:00
Julian Herrero
220bfb065a
Add images and documents settings to admin panel
2019-06-04 11:47:22 +02:00
Julian Herrero
35cd26c117
Add images and document settings to the DB
2019-06-04 11:45:38 +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
4f50e67ac3
Collaborative legislation summary
2019-06-03 12:34:25 +02:00
German Galia
85722eb7c4
Rename admin/debates and admin/comments to hidden
2019-06-02 19:12:26 +02:00
Alberto
2f8505332e
Merge pull request #3574 from consul/remove-dashboard-polls
...
Allow users to delete dashboard polls
2019-06-01 11:06:34 +02:00
Alberto
8ee396f311
Merge pull request #3573 from consul/improve-ux
...
Add help texs, links and new message section to improve UX
2019-06-01 10:38:52 +02:00
Raimond Garcia
0d967b2765
Merge pull request #3571 from consul/i18n_available_locales
...
Add Bosnian, Croatian, Czech, Danish, Greek, and Turkish locales
2019-05-31 19:12:33 +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