decabeza
16dc5821d1
Add margin to all h3 admin headers
2021-02-18 15:46:16 +01:00
Javi Martín
1c2886debb
Remove redundant condition
...
The association `organization.user` returns `nil` when the user is
hidden.
This was discovered thanks to the `Style/AndOr` rule. We were using
`and` and `||` on the same line, which is confusing.
2021-02-05 17:46:23 +01:00
Javi Martín
663fba53db
Group admin search label translations together
...
Since there are two different labels/placeholders for poll officers and
also two different ones for users, we're only grouping one of each.
2020-12-21 18:25:45 +01:00
Javi Martín
cf510043a4
Search on the same URL by default
2020-12-07 14:28:36 +01:00
Javi Martín
e33794e45e
Reuse admin search component in other sections
...
There are some sections where we are not reusing it:
* The budget investments search is completely different, so this
component isn't appropriate there
* Booth assignment and officers are slightly different, and I'm not
entirely sure it's safe to refactor these cases
2020-12-04 19:57:05 +01:00
Javi Martín
0a3acf3c5f
Use a shared translation for search buttons
...
We were writing the same text over and over for the same translations.
Since they all serve the same function, it's perfectly fine for them to
have the same text, and so we can have a shared translation.
2020-12-04 19:57:05 +01:00
Javi Martín
155da08cf0
Use a generic name for the search parameter
...
This way we can use it for any model.
2020-12-04 19:57:05 +01:00
Javi Martín
1537f25739
Extract component for organization actions
...
We remove duplication by doing so, and now we only need to add the call
do render Admin::TableActionsComponent once.
2020-10-21 13:19:52 +02:00
Javi Martín
6b1864fbcd
Sanitize translations instead of using _html
...
Using the `_html` suffix in an i18n key is the same as using `html_safe`
on it, which means that translation could potentially be used for XSS
attacks.
2019-10-09 19:46:47 +02:00
Javi Martín
c62da726b8
Apply SpaceAroundErbTag ERB Lint rule
2019-09-10 20:02:15 +02:00
Julian Herrero
0bb2633c7a
Use double quotes in app/views/admin
2019-03-19 12:16:50 +01:00
decabeza
90067814e4
moves table ids to fixes specs
2017-10-20 13:59:58 +02:00
decabeza
bb7040359d
fixes i18n key name
2017-10-19 19:09:57 +02:00
decabeza
f17d0a663e
improves styles for admin organizations views
2017-10-19 18:52:04 +02:00
Alberto Garcia Cabeza
fb6dbdf2f9
Improves all pages for admin section
2016-06-01 13:23:57 +02:00
Alberto Garcia Cabeza
3ec0971b37
Replaces icons i tags for span
2016-03-14 19:32:48 +01:00
Alberto Garcia Cabeza
3752f3a53b
Adds foundation 6 🎉
2016-02-26 19:33:33 +01:00
Juanjo Bazán
d814baaf10
shows responsible person in admin/organizations
2015-09-12 18:47:11 +02:00
Juanjo Bazán
6bf8af3526
show info of hidden users in admin/organizations
2015-09-08 18:06:23 +02:00
kikito
8b16ecfcf9
fixes typo and specs
2015-09-04 15:36:54 +02:00
kikito
dd4a2d57cf
makes admin/organization specs more robust
2015-09-04 15:32:15 +02:00
kikito
79febe7bb8
Adds shared/filter_subnav partial to DRY filters
2015-09-02 13:39:27 +02:00
kikito
ebacc8c9c7
Uses has_filters in all controllers with filters & renames @filter to @current_filter
2015-09-02 13:21:46 +02:00
Juanjo Bazán
0f1329fa85
implements organizations search for admins
2015-08-29 16:30:32 +02:00
Juanjo Bazán
c4de2b9af5
removes nonexistent feature
2015-08-29 15:20:24 +02:00
Juanjo Bazán
943ddc60fb
adds missing i18n key
2015-08-29 14:04:11 +02:00
Juanjo Bazán
1353a1c64b
Merge pull request #274 from AyuntamientoMadrid/refactor-selects
...
Refactor selects
2015-08-29 11:36:38 +02:00
Alberto Garcia Cabeza
f75c21f40f
Improve admin's styles
2015-08-29 00:35:08 +02:00
kikito
a7929c607d
adds a helper to simplify the way selects and filters are rendered
2015-08-28 20:07:45 +02:00
Alberto Garcia Cabeza
908d19e2e7
Improves styles for admin
2015-08-23 11:45:43 +02:00
Alberto Garcia Cabeza
30d685ec32
Adds styles for organizations
2015-08-22 18:06:27 +02:00
kikito
5c3f664da4
Fixes links in Admin::Organizations to handle filters + pages
2015-08-20 00:50:50 +02:00
Juanjo Bazán
fda8412ed3
adds pagination to admin lists
...
Ref: #80
2015-08-19 16:32:40 +02:00
Juanjo Bazán
a43c753ebb
updates style of admin/organizations
2015-08-19 16:32:39 +02:00
kikito
1c435eacbe
adds filters to admin/organizations
2015-08-17 14:25:43 +02:00
kikito
3096a73892
Moves organization verification to Admin from Moderation
2015-08-17 13:22:38 +02:00