Commit Graph

10713 Commits

Author SHA1 Message Date
Javi Martín
7deb857357 Don't disable new invalid translations
After adding a new translation with invalid data and sending the form,
we were disabling the new translation when displaying the form again to
the user, which was confusing.
2018-10-22 15:43:28 +02:00
Javi Martín
1d2979cd57 Keep invalid translation params through requests
We were reloading the values from the database and ignoring the
parameters sent by the browser.
2018-10-22 15:43:28 +02:00
Javi Martín
5cdda12902 Simplify passing the locale to translatable fields
Creating a new form builder might be too much. My idea was so the view
uses more or less the same syntax it would use with Rails' default
builder, and so we can use `text_field` instead of
`translatable_text_field`.
2018-10-22 15:43:28 +02:00
Javi Martín
71601bd3f8 Validate translations in banners
This change forces us to use nested attributes for translations, instead
of using the more convenient `:"title_#{locale}"` methods.

On the other hand, we can use Rails' native `_destroy` attribute to
remove existing translations, so we don't have to use our custom
`delete_translations`, which was a bit buggy since it didn't consider
failed updates.
2018-10-22 15:43:28 +02:00
Javier Martín
7646b9f166 Merge pull request #2982 from consul/backport-simplify_custom_legislation_process
Ease customization in processes controller
2018-10-22 14:45:03 +02:00
Consul Bot
047260b6c3 New translations moderation.yml (Chinese Simplified) 2018-10-22 03:10:54 +02:00
Consul Bot
2906057979 New translations i18n.yml (Russian) 2018-10-21 22:50:41 +02:00
Consul Bot
6a99613f35 New translations activerecord.yml (Russian) 2018-10-21 22:50:40 +02:00
Consul Bot
e8f4b1bd8e New translations activerecord.yml (Russian) 2018-10-21 22:31:05 +02:00
Consul Bot
eb03e5be29 New translations activerecord.yml (Russian) 2018-10-21 22:21:14 +02:00
Consul Bot
ed8cb4b6e3 New translations activerecord.yml (Russian) 2018-10-21 21:30:55 +02:00
Consul Bot
d5c7989006 New translations activerecord.yml (Russian) 2018-10-21 21:20:29 +02:00
Consul Bot
9cbbc6b101 New translations activerecord.yml (Russian) 2018-10-21 21:00:35 +02:00
Consul Bot
5f25d251df New translations activerecord.yml (Russian) 2018-10-21 20:50:28 +02:00
Consul Bot
9c99ddfd8c New translations activerecord.yml (Russian) 2018-10-21 20:40:30 +02:00
Consul Bot
e936ab5120 New translations activerecord.yml (Russian) 2018-10-21 20:30:47 +02:00
Consul Bot
14da6704ff New translations activerecord.yml (Russian) 2018-10-21 20:20:29 +02:00
Consul Bot
3242eecb7f New translations activerecord.yml (Russian) 2018-10-21 20:10:34 +02:00
Consul Bot
8ff8bdf674 New translations activerecord.yml (Russian) 2018-10-21 20:00:34 +02:00
Consul Bot
1dce57baa1 New translations activerecord.yml (Russian) 2018-10-21 18:41:12 +02:00
Consul Bot
dc3abde882 New translations activemodel.yml (Russian) 2018-10-21 17:40:28 +02:00
Consul Bot
18a62d321c New translations activemodel.yml (Russian) 2018-10-21 17:31:03 +02:00
Consul Bot
2ad74dfdb4 New translations i18n.yml (German) 2018-10-20 20:30:37 +02:00
Consul Bot
367af8ace4 New translations responders.yml (German) 2018-10-20 20:30:36 +02:00
Consul Bot
36d3407da8 New translations settings.yml (German) 2018-10-20 20:30:35 +02:00
Consul Bot
6b25116865 New translations management.yml (German) 2018-10-20 20:30:34 +02:00
Consul Bot
8360011cac New translations legislation.yml (German) 2018-10-20 20:30:32 +02:00
Consul Bot
4cdcf426f3 New translations settings.yml (German) 2018-10-20 20:20:33 +02:00
Consul Bot
eb05d77823 New translations settings.yml (German) 2018-10-20 20:10:33 +02:00
Consul Bot
7308ea97a2 New translations responders.yml (Italian) 2018-10-19 17:50:45 +02:00
Consul Bot
e0b06380ce New translations seeds.yml (Italian) 2018-10-19 17:40:45 +02:00
Consul Bot
a1ff7d8a49 New translations responders.yml (Italian) 2018-10-19 17:40:43 +02:00
Consul Bot
f363872637 New translations seeds.yml (Italian) 2018-10-19 17:30:41 +02:00
Alberto
7009a21891 Merge pull request #2983 from consul/ui-design
UI design
2018-10-19 13:01:43 +02:00
Consul Bot
4021e0bb2a New translations management.yml (Chinese Simplified) 2018-10-18 23:50:32 +02:00
decabeza
dc5c26856b Removes unnecessary style to orbit slide 2018-10-18 19:40:25 +02:00
decabeza
8964888711 Removes condition to allow images and data equalizer on proposals
The proposal image only can be present if feature :allow_images is enabled, so there is no need to include both conditions. The data-equalizer also is unnecessary because the :thumb image already has an fix height.
2018-10-18 18:40:58 +02:00
decabeza
0c34e66478 Removes styles to fix logo size on devise views 2018-10-18 18:17:22 +02:00
decabeza
7e828d7e94 Removes unnecessary styles for admin budgets groups 2018-10-18 18:16:11 +02:00
decabeza
8535380402 Fixes color of datepicker calendar 2018-10-18 18:15:12 +02:00
decabeza
7a92df8de5 Updates is-active class for view mode 2018-10-18 18:14:39 +02:00
Javi Martín
9352585e14 Ease customization in processes controller
By extracting a method just for the allowed parameters, forks can
customize this method by reopening the class.
2018-10-18 16:52:40 +02:00
Consul Bot
0a2b0971b8 New translations admin.yml (Valencian) 2018-10-18 13:37:56 +02:00
Consul Bot
75af732373 New translations admin.yml (Swedish) 2018-10-18 13:37:39 +02:00
Consul Bot
c14dddd6e4 New translations admin.yml (German) 2018-10-18 13:37:17 +02:00
Consul Bot
44675f00cb New translations admin.yml (Galician) 2018-10-18 13:36:59 +02:00
Consul Bot
c04fdd0769 New translations admin.yml (French) 2018-10-18 13:35:59 +02:00
Consul Bot
a6cafeabab New translations admin.yml (Polish) 2018-10-18 13:35:17 +02:00
Consul Bot
186e768c98 New translations admin.yml (Italian) 2018-10-18 13:34:24 +02:00
Consul Bot
148711e4dd New translations admin.yml (Albanian) 2018-10-18 13:33:16 +02:00