Skip to content

Commit 8b884ca

Browse files
authored
Merge pull request #663 from coopdevs/manage_users_base
User sign-up & cancel membership and more!
2 parents afafeaf + e467044 commit 8b884ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+819
-233
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ gem 'select2-rails', '~> 4.0.13'
3636

3737
group :development do
3838
gem 'listen', '~> 3.2.0'
39-
gem 'localeapp', '~> 3.1', require: false
39+
gem 'localeapp', '~> 3.3', require: false
4040
gem 'letter_opener', '~> 1.7.0'
4141
gem 'web-console', '~> 4.1.0'
4242
gem 'capistrano', '~> 3.1'

Gemfile.lock

Lines changed: 92 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (6.1.6)
5-
actionpack (= 6.1.6)
6-
activesupport (= 6.1.6)
4+
actioncable (6.1.7.3)
5+
actionpack (= 6.1.7.3)
6+
activesupport (= 6.1.7.3)
77
nio4r (~> 2.0)
88
websocket-driver (>= 0.6.1)
9-
actionmailbox (6.1.6)
10-
actionpack (= 6.1.6)
11-
activejob (= 6.1.6)
12-
activerecord (= 6.1.6)
13-
activestorage (= 6.1.6)
14-
activesupport (= 6.1.6)
9+
actionmailbox (6.1.7.3)
10+
actionpack (= 6.1.7.3)
11+
activejob (= 6.1.7.3)
12+
activerecord (= 6.1.7.3)
13+
activestorage (= 6.1.7.3)
14+
activesupport (= 6.1.7.3)
1515
mail (>= 2.7.1)
16-
actionmailer (6.1.6)
17-
actionpack (= 6.1.6)
18-
actionview (= 6.1.6)
19-
activejob (= 6.1.6)
20-
activesupport (= 6.1.6)
16+
actionmailer (6.1.7.3)
17+
actionpack (= 6.1.7.3)
18+
actionview (= 6.1.7.3)
19+
activejob (= 6.1.7.3)
20+
activesupport (= 6.1.7.3)
2121
mail (~> 2.5, >= 2.5.4)
2222
rails-dom-testing (~> 2.0)
23-
actionpack (6.1.6)
24-
actionview (= 6.1.6)
25-
activesupport (= 6.1.6)
23+
actionpack (6.1.7.3)
24+
actionview (= 6.1.7.3)
25+
activesupport (= 6.1.7.3)
2626
rack (~> 2.0, >= 2.0.9)
2727
rack-test (>= 0.6.3)
2828
rails-dom-testing (~> 2.0)
2929
rails-html-sanitizer (~> 1.0, >= 1.2.0)
30-
actiontext (6.1.6)
31-
actionpack (= 6.1.6)
32-
activerecord (= 6.1.6)
33-
activestorage (= 6.1.6)
34-
activesupport (= 6.1.6)
30+
actiontext (6.1.7.3)
31+
actionpack (= 6.1.7.3)
32+
activerecord (= 6.1.7.3)
33+
activestorage (= 6.1.7.3)
34+
activesupport (= 6.1.7.3)
3535
nokogiri (>= 1.8.5)
36-
actionview (6.1.6)
37-
activesupport (= 6.1.6)
36+
actionview (6.1.7.3)
37+
activesupport (= 6.1.7.3)
3838
builder (~> 3.1)
3939
erubi (~> 1.4)
4040
rails-dom-testing (~> 2.0)
@@ -48,22 +48,22 @@ GEM
4848
kaminari (~> 1.0, >= 1.2.1)
4949
railties (>= 5.2, < 6.2)
5050
ransack (~> 2.1, >= 2.1.1)
51-
activejob (6.1.6)
52-
activesupport (= 6.1.6)
51+
activejob (6.1.7.3)
52+
activesupport (= 6.1.7.3)
5353
globalid (>= 0.3.6)
54-
activemodel (6.1.6)
55-
activesupport (= 6.1.6)
56-
activerecord (6.1.6)
57-
activemodel (= 6.1.6)
58-
activesupport (= 6.1.6)
59-
activestorage (6.1.6)
60-
actionpack (= 6.1.6)
61-
activejob (= 6.1.6)
62-
activerecord (= 6.1.6)
63-
activesupport (= 6.1.6)
54+
activemodel (6.1.7.3)
55+
activesupport (= 6.1.7.3)
56+
activerecord (6.1.7.3)
57+
activemodel (= 6.1.7.3)
58+
activesupport (= 6.1.7.3)
59+
activestorage (6.1.7.3)
60+
actionpack (= 6.1.7.3)
61+
activejob (= 6.1.7.3)
62+
activerecord (= 6.1.7.3)
63+
activesupport (= 6.1.7.3)
6464
marcel (~> 1.0)
6565
mini_mime (>= 1.1.0)
66-
activesupport (6.1.6)
66+
activesupport (6.1.7.3)
6767
concurrent-ruby (~> 1.0, >= 1.0.2)
6868
i18n (>= 1.6, < 2)
6969
minitest (>= 5.1)
@@ -77,8 +77,8 @@ GEM
7777
activesupport (>= 3.0.0, < 6.2)
7878
ruby2_keywords (>= 0.0.2, < 1.0)
7979
ast (2.4.2)
80-
autoprefixer-rails (10.2.4.0)
81-
execjs
80+
autoprefixer-rails (10.4.13.0)
81+
execjs (~> 2)
8282
aws-eventstream (1.1.1)
8383
aws-partitions (1.451.0)
8484
aws-sdk-core (3.114.0)
@@ -126,10 +126,11 @@ GEM
126126
regexp_parser (>= 1.5, < 3.0)
127127
xpath (~> 3.2)
128128
childprocess (3.0.0)
129-
concurrent-ruby (1.1.10)
129+
concurrent-ruby (1.2.2)
130130
connection_pool (2.2.5)
131131
crass (1.0.6)
132132
database_cleaner (1.8.5)
133+
date (3.3.3)
133134
devise (4.7.3)
134135
bcrypt (~> 3.0)
135136
orm_adapter (~> 0.1)
@@ -144,10 +145,10 @@ GEM
144145
dotenv-rails (2.7.6)
145146
dotenv (= 2.7.6)
146147
railties (>= 3.2)
147-
erubi (1.10.0)
148+
erubi (1.12.0)
148149
et-orbi (1.2.4)
149150
tzinfo
150-
execjs (2.7.0)
151+
execjs (2.8.1)
151152
fabrication (2.22.0)
152153
faker (2.17.0)
153154
i18n (>= 1.6, < 2)
@@ -158,14 +159,14 @@ GEM
158159
fugit (1.4.5)
159160
et-orbi (~> 1.1, >= 1.1.8)
160161
raabro (~> 1.4)
161-
gli (2.20.0)
162-
globalid (1.0.1)
162+
gli (2.21.0)
163+
globalid (1.1.0)
163164
activesupport (>= 5.0)
164165
has_scope (0.7.2)
165166
actionpack (>= 4.1)
166167
activesupport (>= 4.1)
167168
http-accept (1.7.0)
168-
http-cookie (1.0.3)
169+
http-cookie (1.0.5)
169170
domain_name (~> 0.5)
170171
http_accept_language (2.1.1)
171172
i18n (1.12.0)
@@ -183,7 +184,7 @@ GEM
183184
rails-dom-testing (>= 1, < 3)
184185
railties (>= 4.2.0)
185186
thor (>= 0.14, < 2.0)
186-
json (2.5.1)
187+
json (2.6.3)
187188
json_translate (4.0.1)
188189
activerecord (>= 4.2.0)
189190
kaminari (1.2.1)
@@ -206,28 +207,40 @@ GEM
206207
listen (3.2.1)
207208
rb-fsevent (~> 0.10, >= 0.10.3)
208209
rb-inotify (~> 0.9, >= 0.9.10)
209-
localeapp (3.1.3)
210+
localeapp (3.3.0)
210211
gli
211212
i18n (>= 0.7, < 2)
212213
json (>= 1.7.7)
213214
rest-client (>= 1.8.0)
214215
loofah (2.19.1)
215216
crass (~> 1.0.2)
216217
nokogiri (>= 1.5.9)
217-
mail (2.7.1)
218+
mail (2.8.1)
218219
mini_mime (>= 0.1.1)
220+
net-imap
221+
net-pop
222+
net-smtp
219223
marcel (1.0.2)
220224
method_source (1.0.0)
221-
mime-types (3.3.1)
225+
mime-types (3.4.1)
222226
mime-types-data (~> 3.2015)
223-
mime-types-data (3.2021.0225)
227+
mime-types-data (3.2022.0105)
224228
mini_magick (4.11.0)
225229
mini_mime (1.1.2)
226-
mini_portile2 (2.8.0)
227-
minitest (5.17.0)
230+
mini_portile2 (2.8.1)
231+
minitest (5.18.0)
228232
msgpack (1.5.2)
233+
net-imap (0.3.4)
234+
date
235+
net-protocol
236+
net-pop (0.1.2)
237+
net-protocol
238+
net-protocol (0.2.1)
239+
timeout
229240
net-scp (3.0.0)
230241
net-ssh (>= 2.6.5, < 7.0.0)
242+
net-smtp (0.3.3)
243+
net-protocol
231244
net-ssh (6.1.0)
232245
netrc (0.11.0)
233246
nio4r (2.5.8)
@@ -252,24 +265,24 @@ GEM
252265
pundit (2.1.0)
253266
activesupport (>= 3.0.0)
254267
raabro (1.4.0)
255-
racc (1.6.1)
256-
rack (2.2.6.3)
257-
rack-test (2.0.2)
268+
racc (1.6.2)
269+
rack (2.2.6.4)
270+
rack-test (2.1.0)
258271
rack (>= 1.3)
259-
rails (6.1.6)
260-
actioncable (= 6.1.6)
261-
actionmailbox (= 6.1.6)
262-
actionmailer (= 6.1.6)
263-
actionpack (= 6.1.6)
264-
actiontext (= 6.1.6)
265-
actionview (= 6.1.6)
266-
activejob (= 6.1.6)
267-
activemodel (= 6.1.6)
268-
activerecord (= 6.1.6)
269-
activestorage (= 6.1.6)
270-
activesupport (= 6.1.6)
272+
rails (6.1.7.3)
273+
actioncable (= 6.1.7.3)
274+
actionmailbox (= 6.1.7.3)
275+
actionmailer (= 6.1.7.3)
276+
actionpack (= 6.1.7.3)
277+
actiontext (= 6.1.7.3)
278+
actionview (= 6.1.7.3)
279+
activejob (= 6.1.7.3)
280+
activemodel (= 6.1.7.3)
281+
activerecord (= 6.1.7.3)
282+
activestorage (= 6.1.7.3)
283+
activesupport (= 6.1.7.3)
271284
bundler (>= 1.15.0)
272-
railties (= 6.1.6)
285+
railties (= 6.1.7.3)
273286
sprockets-rails (>= 2.0.0)
274287
rails-controller-testing (1.0.5)
275288
actionpack (>= 5.0.1.rc1)
@@ -278,14 +291,14 @@ GEM
278291
rails-dom-testing (2.0.3)
279292
activesupport (>= 4.2.0)
280293
nokogiri (>= 1.6)
281-
rails-html-sanitizer (1.4.4)
294+
rails-html-sanitizer (1.5.0)
282295
loofah (~> 2.19, >= 2.19.1)
283296
rails-i18n (6.0.0)
284297
i18n (>= 0.7, < 2)
285298
railties (>= 6.0.0, < 7)
286-
railties (6.1.6)
287-
actionpack (= 6.1.6)
288-
activesupport (= 6.1.6)
299+
railties (6.1.7.3)
300+
actionpack (= 6.1.7.3)
301+
activesupport (= 6.1.7.3)
289302
method_source
290303
rake (>= 12.2)
291304
thor (~> 1.0)
@@ -381,9 +394,9 @@ GEM
381394
simplecov_json_formatter (0.1.3)
382395
skylight (5.0.1)
383396
activesupport (>= 5.2.0)
384-
sprockets (4.1.1)
397+
sprockets (4.2.0)
385398
concurrent-ruby (~> 1.0)
386-
rack (> 1, < 3)
399+
rack (>= 2.2.4, < 4)
387400
sprockets-rails (3.4.2)
388401
actionpack (>= 5.2)
389402
activesupport (>= 5.2)
@@ -393,14 +406,15 @@ GEM
393406
net-ssh (>= 2.8.0)
394407
thor (1.2.1)
395408
tilt (2.0.10)
409+
timeout (0.3.2)
396410
ttfunk (1.7.0)
397-
tzinfo (2.0.5)
411+
tzinfo (2.0.6)
398412
concurrent-ruby (~> 1.0)
399413
uglifier (4.2.0)
400414
execjs (>= 0.3.0, < 3)
401415
unf (0.1.4)
402416
unf_ext
403-
unf_ext (0.0.7.7)
417+
unf_ext (0.0.8.2)
404418
unicode-display_width (2.0.0)
405419
unicorn (5.5.5)
406420
kgio (~> 2.6)
@@ -421,7 +435,7 @@ GEM
421435
websocket-extensions (0.1.5)
422436
xpath (3.2.0)
423437
nokogiri (~> 1.8)
424-
zeitwerk (2.6.6)
438+
zeitwerk (2.6.7)
425439

426440
PLATFORMS
427441
ruby
@@ -449,7 +463,7 @@ DEPENDENCIES
449463
kaminari (~> 1.2.1)
450464
letter_opener (~> 1.7.0)
451465
listen (~> 3.2.0)
452-
localeapp (~> 3.1)
466+
localeapp (~> 3.3)
453467
pg (~> 1.4)
454468
pg_search (~> 2.3.5)
455469
prawn (~> 2.4.0)

app/admin/category.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
ActiveAdmin.register Category do
22
index do
33
id_column
4-
column :name, sortable: false
4+
column :name do |category|
5+
"#{tag.span(nil, class: "glyphicon glyphicon-#{category.icon_name}")} #{category.name}".html_safe
6+
end
57
actions
68
end
79

810
form do |f|
911
f.inputs do
1012
f.input :name
13+
f.input :icon_name, hint: "See all available <a href='https://getbootstrap.com/docs/3.3/components/#glyphicons' target='_blank'>icons here</a>".html_safe
1114
end
1215
f.actions
1316
end
@@ -16,6 +19,7 @@
1619
attributes_table do
1720
row :created_at
1821
row :updated_at
22+
row :icon_name
1923
row :name_translations do
2024
cat.name_translations.map do |locale, translation|
2125
tag.strong("#{I18n.t("locales.#{locale}", locale: locale)}: ") +
@@ -25,5 +29,5 @@
2529
end
2630
end
2731

28-
permit_params :name
32+
permit_params :name, :icon_name
2933
end

app/admin/petition.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ActiveAdmin.register Petition do
2+
actions :index
3+
4+
index do
5+
id_column
6+
column :user
7+
column :organization
8+
column :created_at
9+
column :status
10+
end
11+
12+
filter :status, as: :select, collection: -> { Petition.statuses }
13+
filter :created_at
14+
end

app/assets/images/redeira.png

-24.1 KB
Binary file not shown.

app/assets/stylesheets/active_admin.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ $table-stripe-color: #f5f5f5;
55
@import "active_admin/mixins";
66
@import "active_admin/base";
77
@import "select2";
8+
@import "bootstrap-sprockets";
9+
@import "bootstrap/variables";
10+
@import "bootstrap/glyphicons";

0 commit comments

Comments
 (0)