Javi Martín
f9ed186909
Add rubocop spacing rules
...
We were following these rules in most places; we just didn't define them
anywhere.
2019-09-10 21:04:56 +02:00
Javi Martín
c62da726b8
Apply SpaceAroundErbTag ERB Lint rule
2019-09-10 20:02:15 +02:00
taitus
0602a38742
Fix Style: Display Titles without highlight
2019-07-01 15:03:48 +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
Javi Martín
4c35df4812
Use double quotes inside string interpolation
2019-03-25 14:58:54 +01:00
Julian Herrero
7b4b4b716c
Use double quotes in app/views/admin/legislation
2019-03-19 12:16:50 +01: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
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
Marko Lovic
05bfa193cd
Make Legislation Draft Versions 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
0b235d69d4
adds consistency for back links
2017-07-26 18:18:30 +02:00
decabeza
76b7f66fb3
fixes scss lint warnings
2017-06-16 12:09:01 +02:00
decabeza
02055bd09a
hides legislation empty tables, improves table styles
2017-05-24 13:34:37 +02:00
decabeza
5364ec106a
fixes headings structure on legislation admin
2017-05-24 13:04:19 +02:00
decabeza
28e17b870c
unifies styles and html code
2017-05-24 13:03:25 +02:00
decabeza
9be616f62c
improves admin legislation forms
2017-05-23 13:54:36 +02:00
Amaia Castro
7d118a0c27
Add draft versions comments count to admin views
2017-03-10 12:10:28 +01:00
Fernando Blat
f7a6f8399b
Add pending translations
2017-01-23 14:58:12 +01:00
Martín González
deb9d2a508
Fix typo
2017-01-23 14:25:51 +01:00
Martín González
dca072beaf
Hide legislation text when the full-screen editor is not active
2017-01-23 12:55:05 +01:00
Amaia Castro
536784ee04
Merge pull request #72 from medialab-prado/back-improvements
...
Back improvements
2017-01-19 10:27:12 +01:00
Fernando Blat
6560e77554
Ask for confirmation when changing the page and
...
the forms watched do have changes
2017-01-18 13:37:11 +01:00
Fernando Blat
1537dd41da
Add forms placeholders
2017-01-18 11:46:19 +01:00
Fernando Blat
48764d757c
Fix label markup
2017-01-05 10:29:21 +01:00
Amaia Castro
39633dce67
Fix back links in admin
2017-01-04 12:39:09 +01:00
Amaia Castro
c935373c07
Remove draft version preview buttons from edit form and add link to index
2017-01-04 10:14:58 +01:00
Amaia Castro
5627b18be2
Draft Version page
2017-01-02 18:05:15 +01:00
Amaia Castro
ab12ffe98f
Titles for legislation admin pages
2016-12-30 12:03:11 +01:00
Amaia Castro
4c309b5243
Refactor css classes
2016-12-30 11:22:28 +01:00
Amaia Castro
0cd2b62e2c
Integrate admin html and css from sandbox
2016-12-30 11:00:34 +01:00
Amaia Castro
d25d6c178c
Legislation Questions model and basic admin
2016-12-20 18:52:43 +01:00
Amaia Castro
400b510b71
Store the processed html from the markdown text body field
2016-12-14 11:32:28 +01:00
Amaia Castro
c69f1b3e83
Fullscreen toggle for the markdown editor
2016-12-13 15:29:30 +01:00
Amaia Castro
715d9e5b88
Markdown editor for DraftVersion body
2016-12-12 11:10:10 +01:00
Amaia Castro
e4fe499e66
DraftVersion base model and very basic admin pages
2016-12-06 12:10:20 +01:00