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
Senén Rodero Rodríguez
146c09adb7
Update references to new translation interface
2019-07-01 14:49:43 +02:00
German Galia
9ce524e1f3
Create tracker rol
2019-06-12 16:23:40 +02:00
German Galia
9d1ca3bfd4
Report generation. Download csv
2019-06-12 10:17:31 +02:00
Julian Herrero
28835a29ef
Share helper between class Proposal and Legislation::Proposal
2019-05-30 11:19:38 +02:00
Javi Martín
3e4e65ead7
Use double quotes inside ERB
...
We were using single quotes inside ERB code when that code was inside
HTML double quotes.
2019-03-25 14:58:54 +01:00
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