Javi Martín
4c35df4812
Use double quotes inside string interpolation
2019-03-25 14:58:54 +01:00
Javi Martín
2b4e1cf358
Add missing double quotes
...
We overlooked a few single quotes while we changed thousands of them.
2019-03-25 13:22:35 +01:00
Julian Herrero
7b4b4b716c
Use double quotes in app/views/admin/legislation
2019-03-19 12:16:50 +01:00
decabeza
528a4b6e8e
Add default colours to admin banners
2019-03-13 13:17:42 +01:00
decabeza
4a532bf807
Use activerecord translations on admin legislation processes
2019-03-05 17:43:39 +01:00
decabeza
e1bbd0eef0
Add default colours for legislation processes header
2019-02-20 13:32:31 +01:00
decabeza
32d4495a88
Replace created at date to start and end date on admin legislation processes
2019-02-20 13:32:22 +01:00
decabeza
6b62ba0e91
Show cached_votes_score on admin legislation proposals
2019-02-12 18:42:44 +01:00
decabeza
e68f5c0b77
Use labels for type text inputs
2019-02-08 12:29:00 +01:00
decabeza
8b295b14a3
Improve legislation processes form colors layout and add help text
2019-02-08 12:19:41 +01:00
decabeza
865dca85bf
Improve layout of admin legislation process form
2019-01-30 13:16:35 +01:00
Alberto
c297595e49
Merge branch 'master' into add_image_to_legislation_processes
2019-01-28 14:49:19 +01:00
Manu
d08fc08769
added i18n to process form
2019-01-21 12:02:27 -05:00
Manu
37edfb94a4
changed h4 instead of h3
2019-01-21 12:02:27 -05:00
Manu
1e020f4df8
use banners js in new legislative process
2019-01-21 12:02:27 -05:00
Manu
bd4e12112d
Add image to legislation processes and banner colors
2019-01-21 12:02:27 -05:00
Javi Martín
c5d32c5ab9
Manage progress bars in the admin area
2019-01-18 14:17:33 +01:00
decabeza
6a580ede5b
Improves layout of admin legislation homepage form
2018-12-28 18:23:12 +01:00
dperez
ff9a32c0a5
code reviewed
2018-12-15 18:04:24 +01:00
dperez
bef404c443
add homepage for legislation processes
2018-12-15 18:04:24 +01:00
Javi Martín
449f810255
Edit only existing languages in milestones summary
...
Adding languages using this form would result in validation errors since
there's no way to fill in the title for the new translation.
2018-12-12 15:15:01 +01:00
Javi Martín
a42f5fab37
Add milestones summary to legislation processes
2018-12-11 20:19:48 +01:00
Javi Martín
03dc43a500
Manage legislation process milestones
2018-12-11 20:18:53 +01:00
Javi Martín
9ad8c5728a
Refactor legislation process subnav
2018-11-30 18:09:52 +01:00
Javi Martín
abf48af331
Rename draft_texts key to draft_versions
...
This way we can refactor the legislation tabs, since now all translation
keys follow the same convention (using the same name as the active tab
name).
2018-11-30 18:09:51 +01:00
João Lutz
34b58a5208
Adds draft phase functionality in legislation processes
2018-11-19 22:18:50 -02:00
Javi Martín
9105ac3a69
Prefix classes used in JavaScript with "js-"
...
The same way it's done in the rest of the application.
2018-10-22 16:36:18 +02:00
Javi Martín
dbea577062
Follow naming conventions for HTML classes and IDs
...
We use underscores for IDs and hyphens for classes.
2018-10-22 16:36:18 +02:00
Javi Martín
5511a3a194
Fix "Add option" link position
...
The new options were being added inside the `.column` div, when they
needed to be added before it.
2018-10-22 16:36:17 +02:00
Javi Martín
21cf39d5ed
Fix alignment in last translatable fields
...
When we grouped the fields together, the last one turned into a
`last-child`, which foundation automatically aligns to the right.
The markdown editor also needed to be tweaked a little bit.
2018-10-22 16:36:17 +02:00
Javi Martín
7479223d59
Wrap translation fields in a div
...
This way we can show/hide that div when displaying translations, and we
can remove the duplication applying the same logic to the label, the
input, the error and the CKEditor.
This way we also solve the problem of the textarea of the CKEditor
taking space when we switch locales, as well as CKEditor itself taking
space even when not displayed.
2018-10-22 16:36:17 +02:00
Javi Martín
124b8496de
Simplify methods defining translation styles
...
This refactor is going to be useful when we change these rules within
the next few commits.
2018-10-22 16:28:53 +02:00
Javi Martín
f70ef3ff2f
Fix question options translations not being saved
...
If we enabled the locale and then added an option, the "add option" link
added the partial which was generated before enabling the translation,
and so it generated a field where the translation was disabled.
Enabling the translation after inserting each field solves the issue.
2018-10-22 15:46:24 +02:00
Javi Martín
85701bd754
Update legislation questions translatable fields
2018-10-22 15:46:24 +02:00
Javi Martín
5bfc7ca2e3
Update legislation process translatable fields
2018-10-22 15:46:16 +02:00
Javi Martín
6278175f57
Update legislation drafts translatable fields
...
Updating it required reorganizing the form so translatable fields are
together.
We also needed to add a `hint` option to the form label and input
methods so the hint wouldn't show up for every language.
Finally, the markdown editor needed to use the same globalize attributes
as inputs, labels and hints, which adds a bit of duplication.
2018-10-22 15:44:14 +02:00
Javi Martín
0945f046a3
Avoid using xpath in specs
...
Using xpath is usually harder to read and more fragile.
2018-10-04 16:31:00 +02:00
Javi Martín
4c84a3a854
Move logic from view to helper
2018-10-04 16:31:00 +02:00
Javi Martín
75d1ab1e52
Use AJAX requests to select legislation proposals
...
Now the interface is more similar to the one in budget investments.
2018-10-04 16:29:01 +02:00
Javi Martín
667c2c82b5
Use toggle_select action for legislation proposals
...
The `update` action is usually expected to behave the same way it does
everywhere else, which is updating a record using the `params` hash.
The name `toggle_select` comes from the name we use in a similar
situation for budget investments.
2018-10-04 16:29:01 +02:00
Javi Martín
806b1fb3ca
Extract select proposal button into a partial
2018-10-04 16:29:01 +02:00
Javi Martín
9df201780d
Extract proposals table into a partial
2018-10-04 16:29:01 +02:00
Raúl Fuentes
05340e423c
Add select to Legislation::Proposals
...
Add admin interface for mark any proposal as selected
Add filter to public interface for selected proposals
2018-10-04 16:28:56 +02:00
Javi Martín
cc6da6be28
Fix inputs in legislation process translations
...
They were accidentally changed from `text_area` to `text_field` when
making them translatable.
2018-09-19 14:54:24 +02:00
Marko Lovic
05bfa193cd
Make Legislation Draft Versions translatable
2018-09-19 14:54:24 +02:00
Marko Lovic
06347062dd
Make Legislation Questions translatable
2018-09-19 14:54:24 +02:00
Marko Lovic
d78aea1fd3
Make Legistlation Processes translatable
2018-09-19 14:54:24 +02:00
decabeza
f8707a73cd
Unifies styles and views for admin legislation processes
2018-07-31 12:50:48 +02:00
decabeza
4fca07172c
Reorders and improve i18n for legislation processes form
2018-06-08 18:45:52 +02:00
decabeza
bf4d1cd8e2
Adss missing th on legislation processes index table
2018-06-08 18:45:10 +02:00