taitus
c1a72e7169
Align admin polls questions answers form fields with new translations interface
2019-07-01 15:03:48 +02:00
taitus
9f98435789
Align admin polls questions form fields with new translations interface
2019-07-01 15:03:48 +02:00
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
a700ea2fce
Align admin milestones 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
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
Senén Rodero Rodríguez
db70594fca
Add column class to keep proper alignment of forms
...
When translations interface is enabled we also want to keep
proper alignment between translatable and not translatable fields.
Co-Authored-By: alessandro <agileontheweb@gmail.com >
2019-07-01 14:49:43 +02:00
Senén Rodero Rodríguez
6183f14d9d
Move translations interface after heading selector
...
Co-Authored-By: alessandro <agileontheweb@gmail.com >
2019-07-01 14:49:43 +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
140c37fcc0
Render translation interface only when feature setting is active
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
taitus
72d1893703
Manage the remote translation button display
...
- Add remote_translation_button partial to layout
- Only display button when we have remote_translations and if current
locale is include on available locales from remote translations service.
- Recover available locales from remote translations service.
Use daily_cache to detect every day if remote translation service has
added new available locale.
Co-Authored-By: alessandro <agileontheweb@gmail.com >
2019-06-27 09:21:18 +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
44ef1ce5e1
Fix houncibot parse error
...
Add missing quotes.
Notification Error:
warning: 2.6.0-dev-compliant syntax, but you are running 2.6.1.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri .
2 error(s) were found in ERB files
expected attribute value after '=' (at >)
2019-06-27 09:20:24 +02:00
Senén Rodero Rodríguez
1565a5a71d
Fix most of Hound offenses
2019-06-27 09:20:24 +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
0f4fcfb20e
Fix proposals suggest feature
...
Now we need one suggest placeholder for each translation. This also
fixes invalid usage of id HTML attribute.
2019-06-27 09:19:37 +02:00
Senén Rodero Rodríguez
bd3bb72370
Add proposals translation interface
...
* Convert proposal form into translatable one.
* Adapt translatable shared spec to define an owner when running at
frontend feature specs.
* Remove old attributes from strong parameters.
2019-06-27 09:19:37 +02:00
Senén Rodero Rodríguez
6a6080e6b7
Fix debates suggest feature
2019-06-27 09:19:36 +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
Senén Rodero Rodríguez
02be0c61f9
Add proposal translations
...
Adapt retire form to include needed translations and move validations
from controller to model.
Also change sanitizable concern to sanitize not marked for destruction
translations.
2019-06-27 09:19:36 +02:00
Senén Rodero Rodríguez
ce7be5f2d6
Change the way to retrieve notifiable body
...
Using 'try' method to get notifiable is not working with translations
anymore. It was returning 'nil' always even when body translation is
populated.
2019-06-27 09:19:36 +02:00
lalo
c6e4b2480f
Add public changes to create and vote Poll:Questions with votation type
2019-06-12 19:44:14 +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