Javi Martín
e844b0b2db
Remove CKEditor divs
...
This way the HTML does not depend on CKEditor, and changing the editor
we use in textareas will require very few changes.
2019-10-25 17:00:18 +02:00
Javi Martín
6ef07f8a54
Use text_area instead of cktext_area
...
We're going to change CKEditor to an inline editor, and the "ckeditor"
gem doesn't provide an option to do so.
Since using `cktext_area` would automatically generate a "classic"
iframe CKEditor, we need to use `text_area` and load the editor using
JavaScript. Personally I prefer this option anyway.
Note in the jQuery selector we need to use `textarea.html-area`; using
just `.html-area` would fail if there's an error message associated to
the textarea, since Rails will add the `.html-area` class to the error
message.
2019-10-25 16:34:25 +02:00
Javi Martín
75a28fafcb
Sanitize label texts automatically
...
This way we can remove all those `html_safe` calls and we avoid
potential XSS attacks in label texts.
2019-10-08 18:46:21 +02:00
Javi Martín
6fa67b5e53
Use active record translations for labels
...
This way we can simplify the way we generate form fields. In some cases,
we also use the human attribute in table headers, which IMHO makes
sense.
I haven't moved all of them: for example, sometimes a label is
different depending on whether it's shown to administrators, valuators,
or users. And I haven't touched the ones related to devise, since I
wasn't sure about possible side effects.
Note I've also removed placeholders when they had the same text as their
labels, since they weren't helpful. On the contrary, the added redundant
text to the form, potentially distracting users.
2019-10-07 01:56:23 +02:00
Javi Martín
8d9cb4d8e3
Simplify generating checkboxes in forms
...
Using the block syntax to generate the label with a <span> tag inside
isn't necessary after upgrading foundation_rails_helpers. Before the
upgrade, we couldn't do so because the <span> tag was escaped.
2019-10-06 19:32:04 +02:00
Javi Martín
4f5de5be3b
Add aria-describedby attribute automatically
...
We were manually adding the attribute in many places, but not
everywhere. I'm assuming adding it where we didn't have it is doing no
harm.
2019-10-06 19:32:03 +02:00
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
Senén Rodero Rodríguez
db70594fca
Add column class to keep proper alignment of forms
...
When translations interface is enabled we also want to keep
proper alignment between translatable and not translatable fields.
Co-Authored-By: alessandro <agileontheweb@gmail.com >
2019-07-01 14:49:43 +02:00
Senén Rodero Rodríguez
146c09adb7
Update references to new translation interface
2019-07-01 14:49:43 +02:00
Senén Rodero Rodríguez
f70adbe23a
Move label translations to activerecord.yml
2019-06-27 09:19:37 +02:00
Senén Rodero Rodríguez
6a6080e6b7
Fix debates suggest feature
2019-06-27 09:19:36 +02:00
Senén Rodero Rodríguez
51cda51155
Add debates translation interface
...
Also fix broken spec after removing translatable attributes from
strong_parameters definition. Now we need to send these attributes
as nested translations attributes.
Use activerecord.yml title attribute label so form helper could load it
from default location.
2019-06-27 09:19:36 +02:00
Julian Herrero
b78ff808c1
Use double quotes in app/views/debates
2019-03-19 12:16:50 +01:00
iagirre
4db2584f87
The tags are suggested based on the entries the user makes.
...
Cambios para hacer commit:
modificado: app/assets/javascripts/tag_autocomplete.js.coffee
modificado: app/assets/stylesheets/autocomplete_overrides.scss
nuevo archivo: app/controllers/tags_controller.rb
modificado: app/models/abilities/common.rb
modificado: app/views/debates/_form.html.erb
modificado: app/views/proposals/_form.html.erb
modificado: config/initializers/acts_as_taggable_on.rb
modificado: config/routes.rb
modificado: spec/lib/acts_as_taggable_on_spec.rb
2017-09-21 18:21:45 +02:00
iagirre
049967649e
Selection of multiple tags separated by ',' works for hardcoded array of tags.
2017-09-19 17:37:31 +02:00
decabeza
af7807ce9f
Updates custom note class to foundation help-text
2017-06-27 10:29:36 +02:00
rgarcia
3c682b8a9b
adds signature sheets
2016-12-20 12:21:05 +01:00
kikito
eedf02a186
Starts using invisible_captcha in the source code. Pending: tests, proper invisible_captcha gem in Gemfile
2016-04-27 16:07:48 +02:00
kikito
dea1a28a69
purges simple_captcha
2016-04-27 16:07:47 +02:00
Alberto Garcia Cabeza
9dce52a69a
Adds title on input checkboxes
2016-03-14 19:32:49 +01:00
Alberto Garcia Cabeza
3752f3a53b
Adds foundation 6 🎉
2016-02-26 19:33:33 +01:00
rgarcia
f82a590e1e
reverts debate links
2016-02-19 19:08:35 +01:00
palomahnhp
2ee90ac76e
share links to debate
2016-02-08 10:32:57 +01:00
Maite
8f1431ec3f
corrections about coding style
2016-02-01 17:11:29 +01:00
MaiteHdezRivas
5dd4633d6a
Merge branch 'suggest_before_creating'
...
Conflicts:
app/assets/javascripts/application.js
app/controllers/debates_controller.rb
app/controllers/proposals_controller.rb
config/locales/es.yml
config/routes.rb
db/schema.rb
spec/features/debates_spec.rb
spec/features/proposals_spec.rb
2016-01-27 13:11:23 +01:00
MaiteHdezRivas
7406904c51
adding suggest with coffescript
2016-01-27 12:32:44 +01:00
rgarcia
21b9e31f11
uses geozones instead of district tags
2016-01-25 22:28:46 +01:00
nachogomez
d16f1ccd08
merge with master two
2016-01-19 11:09:47 +01:00
nachogomez
51d9d186af
Add Thematic structure and Districts - Iss685
2016-01-08 13:49:23 +01:00
Alberto Garcia Cabeza
dd7f429104
Changes notes tag on forms
2015-09-28 13:46:54 +02:00
rgarcia
f3af263e68
adds crud specs for proposals
2015-09-13 11:47:57 +02:00
kikito
2d3015703d
replaces constants by class methods + private functions. Fixes broken tests
2015-09-10 13:02:21 +02:00
kikito
ada03c8474
Adds max lengths in views
2015-09-09 18:34:26 +02:00
Alberto Garcia Cabeza
101a50a96e
Improves layout styles
2015-09-07 16:36:33 +02:00
Alberto Garcia Cabeza
83b44fd53a
Improves layout, adds link to checkbox's label
2015-09-05 00:34:18 +02:00
Alberto Garcia Cabeza
f20192d9d7
Improves styles for debates
2015-09-03 14:15:45 +02:00
Alberto Garcia Cabeza
7fefcb692e
Changes and updates texts
2015-09-02 23:43:08 +02:00
rgarcia
a81612b226
improves consistency of error messages [ #110 ]
2015-08-16 15:57:09 +02:00
David Gil
8b89cc5117
adds some js to click-and-add tags to the debate's tag list input
2015-08-15 18:57:27 +02:00
David Gil
1de941d1fa
adding featured tags list to debate form
2015-08-15 18:36:10 +02:00
Alberto Garcia Cabeza
f98510cea7
Improves styles for simple captcha
2015-08-15 01:05:00 +02:00
rgarcia
4839081ad2
uses simple_captcha instead of recaptcha [ #51 ]
2015-08-10 20:24:56 +02:00
Alberto Garcia Cabeza
1067d2272e
Adds styles for debate new
2015-08-06 17:59:22 +02:00
kikito
5c141e36ab
uses the debate title length in the debates form
2015-08-06 14:01:48 +02:00
Alberto Garcia Cabeza
851aefbaa6
Adds styles for authentication pages
2015-07-30 19:51:33 +02:00
rgarcia
95101c4cc8
fixing conflicts [ #45 ]
2015-07-29 13:36:48 +02:00
kikito
b87331c958
merges master and fixes conflicts
2015-07-29 13:00:33 +02:00
kikito
c71182f6a6
Adds classes to several buttons so they don't look ugly
2015-07-29 12:54:51 +02:00
rgarcia
1deecea0af
adds wysiwyg to debate description
2015-07-28 21:46:01 +02:00