Javi Martín
00983200d4
Update information texts translatable fields
...
This part used the code we deleted in order to make it easier to
refactor the rest of the translatable models. Now we add the code back.
2018-10-22 16:36:12 +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
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
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
decabeza
546105d989
Merge branch 'master' into dashboard-master
2018-10-19 01:48:37 +02:00
decabeza
dc5c26856b
Removes unnecessary style to orbit slide
2018-10-18 19:40:25 +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
Alberto
938494aef5
Merge pull request #2972 from consul/dashboard-pdf
...
Dashboard PDF
2018-10-17 17:19:29 +02:00
decabeza
dbf41421ed
Removes guide feature
2018-10-17 14:58:29 +02:00
decabeza
bd1ba2bc78
Adds styles to dashboard poster
2018-10-17 01:12:09 +02:00
decabeza
35dca0a17a
Removes dashboard poster css file
2018-10-17 01:11:11 +02:00
decabeza
c33d9fa97b
Improves styles for dashboard mailer forward
...
Uses layout with tables and inline styles to avoid display errors in mail readers
2018-10-13 13:03:02 +02:00
decabeza
5d00952b05
Improves styles for dashboard mailer preview
2018-10-13 13:01:38 +02:00
decabeza
e0c5a79fae
Removes dashboard mailer css
2018-10-13 12:59:05 +02:00
decabeza
775b4698be
Moves all new styles to dashboard.scss
2018-10-05 18:52:04 +02:00
decabeza
d38ef88b06
Adds styles to dashboard poster views
2018-10-05 18:38:17 +02:00
decabeza
b7c3a918e3
Updates js class name and id name
2018-10-05 18:18:42 +02:00
decabeza
71c70b8324
Removes foundation icons font
2018-10-05 17:42:14 +02:00
decabeza
0d8c9c289a
Removes closed message on legislation proposals votes
2018-10-04 16:32:32 +02:00
Alberto
857f747ab8
Merge pull request #2922 from consul/legislation-proposals-imageable
...
Legislation proposals imageable
2018-10-02 11:22:19 +02:00
decabeza
aa76251d1d
Adds image to legislation proposals views
2018-10-01 16:49:22 +02:00
Juan Salvador Pérez García
2dc39e1498
Enhacements in proposal progress graph
...
Proposed action execution is shown with a red dot. Mouse hover event
shows a pop up for the points of the graph. Red dots will contain the
proposed acction executed for the given date.
2018-10-01 11:22:32 +02:00
Juan Salvador Pérez García
488e7e081f
Merge branch 'dashboard' into rebase_consul_master
2018-09-27 09:18:27 +02:00
Alberto
35ebe79d26
Merge pull request #2921 from consul/custom-js
...
[Backport] Adds custom javascripts folder
2018-09-26 14:24:47 +02:00
Raimond Garcia
4086220ebf
Merge pull request #2914 from microweb10/make_polls_translatable
...
Make polls translatable
2018-09-26 13:19:17 +02:00
decabeza
62490c4640
Adds custom javascripts folder
2018-09-26 12:34:16 +02:00
Javier Martín
ef0192c3ff
Merge pull request #2912 from consul/backport-make-collaborative-legislation-translatable
...
Make collaborative legislation translatable
2018-09-24 17:45:59 +02:00
decabeza
a94591fe78
Loads custom fonts before default ones
...
Also includes a .keep file inside fonts/custom folder to track the directory by git
2018-09-21 13:46:50 +02:00
Julian Herrero
673ec075eb
Make answers translatable
2018-09-20 17:13:40 +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
Juan Salvador Pérez García
2a0664d473
Enabled zoom for proposal progress graph
2018-09-18 17:42:34 +02:00
Juan Salvador Pérez García
475323ddd5
User Interface enhancements
...
Progress graph for the proposal dashboard now has its legend on the
bottom. This improves the visualization on mobile platforms.
2018-09-18 17:18:16 +02:00
Juan Salvador Pérez García
6f1a866878
Dashboard graph shows achievents again
...
label has been moved to the bottom to improve its readability
2018-09-17 09:40:21 +02:00
Juan Salvador Pérez García
d6919155c8
Added comments regarding tests for dashboard graph
...
Added comment regarding tests for dashboard graph. This feature should
be migrated to Ecma6 and had its own tests once Consul reaches
compatibility with Rails 5.1.
2018-09-17 09:12:36 +02:00
Juan Salvador Pérez García
c763ca2f99
Fixed bug in x axis labels in dashboard
...
Dashboard progress graph was not showing all labels in x axis when there
were less than 12 samples.
2018-09-14 16:43:42 +02:00
Juan Salvador Pérez García
826ce8af25
Enhancements in proposal progress graph
...
x axis legend now show less labels in order to improve its readability.
2018-09-14 16:28:20 +02:00
Juan Salvador Pérez García
7143e10201
Graph enhancements
...
Y axis have received the following enhancement:
It won't show labels for each value in order to improve its readability.
Maximum value will be set according to the maximum number of supports
received for the current proposal.
In case no supports are received it will use the number of supports
required for a successful proposal.
2018-09-14 12:20:03 +02:00
Juan Salvador Pérez García
38472cb670
Fixed colours in the progress graphic
...
progress graph will be shown in blue
successful graph will be shown in orange
2018-09-14 11:54:57 +02:00
Javi Martín
5faeefab2c
Show the image button only if editing admin pages
...
That's the only place where we need to attach images so far.
2018-09-12 12:35:28 +02:00
Javi Martín
9705360d98
Enable only a few headings in CKEditor
...
Allowing every format is way more than what we initially intended.
I've only added h2 and h3 because h1 is set somewhere else in the page
(like the title), and h4, h5 and h6 are usually not necessary.
2018-09-12 12:35:28 +02:00
Javi Martín
b6855b7140
Restore allowedContent line
...
We're not sure why it was removed, and we're using server-side
sanitizers to remove dangerous HTML.
2018-09-12 12:35:28 +02:00
Raúl Fuentes
88f0f14eab
Modify the configuration of ckeditor 4
...
add links, headers and images
2018-09-12 12:35:28 +02:00
Marko Lovic
4603a30f95
Change Translatable impl to keep track of enabled locales
2018-09-10 17:18:01 +02:00
decabeza
a2bf8a85f4
Fixes logo header on devise layout
2018-07-31 18:08:09 +02:00
decabeza
92f4c26fa4
Updates styles for admin tables
2018-07-31 12:54:52 +02:00
Juan Salvador Pérez García
6cc1ddb9af
Fixes #231
...
Implements a poster feature for the proposals dashboard
2018-07-31 12:50:25 +02:00