ucb_rails_user 6.2.2 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +18 -1
- data/app/assets/config/ucb_rails_user_manifest.js +1 -0
- data/app/assets/stylesheets/ucb_rails_user/components/impersonations.css +12 -0
- data/app/assets/stylesheets/ucb_rails_user/components/loader.css +41 -0
- data/app/assets/stylesheets/ucb_rails_user/components/users_table.css +54 -0
- data/app/assets/stylesheets/ucb_rails_user/main.css +1 -0
- data/app/assets/stylesheets/ucb_rails_user/pagy_tailwind.css +21 -0
- data/app/assets/stylesheets/ucb_rails_user/user.css +29 -0
- data/app/controllers/concerns/ucb_rails_user/auth_concerns.rb +1 -0
- data/app/controllers/concerns/ucb_rails_user/users_controller_concerns.rb +2 -5
- data/app/helpers/ucb_rails_user/users_helper.rb +1 -0
- data/app/helpers/ucb_rails_user_helper.rb +0 -15
- data/app/views/ucb_rails_user/home/logged_in.html.erb +6 -0
- data/app/views/ucb_rails_user/home/not_logged_in.html.erb +5 -0
- data/app/views/ucb_rails_user/impersonations/index.html.erb +32 -0
- data/app/views/ucb_rails_user/lps/_form.html.erb +20 -0
- data/app/views/ucb_rails_user/lps/_modal.html.erb +15 -0
- data/app/views/ucb_rails_user/lps/_results.html.erb +44 -0
- data/app/views/ucb_rails_user/lps/search.js.erb +5 -0
- data/app/views/ucb_rails_user/users/_form.html.erb +15 -0
- data/app/views/ucb_rails_user/users/_search_results.html.erb +33 -0
- data/app/views/ucb_rails_user/users/_user.html.erb +18 -0
- data/app/views/ucb_rails_user/users/edit.html.erb +3 -0
- data/app/views/ucb_rails_user/users/index.html.erb +34 -0
- data/app/views/ucb_rails_user/users/new.html.erb +19 -0
- data/app/views/ucb_rails_user/users/search.js.erb +4 -0
- data/lib/ucb_rails_user/configuration/email.rb +2 -58
- data/lib/ucb_rails_user/engine.rb +14 -0
- data/lib/ucb_rails_user/version.rb +1 -1
- data/lib/ucb_rails_user.rb +0 -2
- metadata +94 -60
- data/app/assets/stylesheets/ucb_rails_user/components/_impersonations.sass +0 -13
- data/app/assets/stylesheets/ucb_rails_user/components/_loader.sass +0 -46
- data/app/assets/stylesheets/ucb_rails_user/components/_users_table.sass +0 -10
- data/app/assets/stylesheets/ucb_rails_user/components/index.sass +0 -3
- data/app/assets/stylesheets/ucb_rails_user/main.sass +0 -6
- data/app/views/ucb_rails_user/home/logged_in.html.haml +0 -5
- data/app/views/ucb_rails_user/home/not_logged_in.html.haml +0 -5
- data/app/views/ucb_rails_user/impersonations/index.html.haml +0 -20
- data/app/views/ucb_rails_user/lps/_form.html.haml +0 -19
- data/app/views/ucb_rails_user/lps/_modal.html.haml +0 -9
- data/app/views/ucb_rails_user/lps/_results.html.haml +0 -34
- data/app/views/ucb_rails_user/lps/search.js.haml +0 -3
- data/app/views/ucb_rails_user/users/_form.html.haml +0 -14
- data/app/views/ucb_rails_user/users/_search_results.html.haml +0 -24
- data/app/views/ucb_rails_user/users/_user.html.haml +0 -11
- data/app/views/ucb_rails_user/users/edit.html.haml +0 -3
- data/app/views/ucb_rails_user/users/index.html.haml +0 -22
- data/app/views/ucb_rails_user/users/new.html.haml +0 -16
- data/app/views/ucb_rails_user/users/search.js.haml +0 -4
- data/lib/ucb_rails_user/configuration/exception_notification.rb +0 -21
metadata
CHANGED
@@ -1,80 +1,114 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ucb_rails_user
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 8.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Downey
|
8
8
|
- Peter Philips
|
9
9
|
- Tyler Minard
|
10
10
|
- Darin Wilson
|
11
|
+
- Brandon Zylstra
|
12
|
+
- Chris Chernesky
|
11
13
|
autorequire:
|
12
14
|
bindir: bin
|
13
15
|
cert_chain: []
|
14
|
-
date:
|
16
|
+
date: 2025-03-04 00:00:00.000000000 Z
|
15
17
|
dependencies:
|
16
18
|
- !ruby/object:Gem::Dependency
|
17
19
|
name: rails
|
18
20
|
requirement: !ruby/object:Gem::Requirement
|
19
21
|
requirements:
|
20
|
-
- - "
|
22
|
+
- - ">="
|
21
23
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
24
|
+
version: '8.0'
|
23
25
|
- - "<"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '9.0'
|
28
|
+
type: :runtime
|
29
|
+
prerelease: false
|
30
|
+
version_requirements: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
24
33
|
- !ruby/object:Gem::Version
|
25
34
|
version: '8.0'
|
35
|
+
- - "<"
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '9.0'
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: propshaft
|
40
|
+
requirement: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 1.1.0
|
45
|
+
- - "<"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
26
48
|
type: :runtime
|
27
49
|
prerelease: false
|
28
50
|
version_requirements: !ruby/object:Gem::Requirement
|
29
51
|
requirements:
|
30
|
-
- - "
|
52
|
+
- - ">="
|
31
53
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
54
|
+
version: 1.1.0
|
33
55
|
- - "<"
|
34
56
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
57
|
+
version: '2.0'
|
36
58
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
59
|
+
name: turbo-rails
|
38
60
|
requirement: !ruby/object:Gem::Requirement
|
39
61
|
requirements:
|
40
|
-
- - "
|
62
|
+
- - ">="
|
41
63
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
64
|
+
version: 2.0.11
|
65
|
+
- - "<"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '3.0'
|
43
68
|
type: :runtime
|
44
69
|
prerelease: false
|
45
70
|
version_requirements: !ruby/object:Gem::Requirement
|
46
71
|
requirements:
|
47
|
-
- - "
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 2.0.11
|
75
|
+
- - "<"
|
48
76
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
77
|
+
version: '3.0'
|
50
78
|
- !ruby/object:Gem::Dependency
|
51
|
-
name:
|
79
|
+
name: importmap-rails
|
52
80
|
requirement: !ruby/object:Gem::Requirement
|
53
81
|
requirements:
|
54
|
-
- - "
|
82
|
+
- - ">="
|
55
83
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
84
|
+
version: 2.0.3
|
85
|
+
- - "<"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '3.0'
|
57
88
|
type: :runtime
|
58
89
|
prerelease: false
|
59
90
|
version_requirements: !ruby/object:Gem::Requirement
|
60
91
|
requirements:
|
61
|
-
- - "
|
92
|
+
- - ">="
|
62
93
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
94
|
+
version: 2.0.3
|
95
|
+
- - "<"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '3.0'
|
64
98
|
- !ruby/object:Gem::Dependency
|
65
99
|
name: active_attr
|
66
100
|
requirement: !ruby/object:Gem::Requirement
|
67
101
|
requirements:
|
68
102
|
- - "~>"
|
69
103
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
104
|
+
version: 0.17.1
|
71
105
|
type: :runtime
|
72
106
|
prerelease: false
|
73
107
|
version_requirements: !ruby/object:Gem::Requirement
|
74
108
|
requirements:
|
75
109
|
- - "~>"
|
76
110
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
111
|
+
version: 0.17.1
|
78
112
|
- !ruby/object:Gem::Dependency
|
79
113
|
name: simple_form
|
80
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,6 +123,20 @@ dependencies:
|
|
89
123
|
- - ">="
|
90
124
|
- !ruby/object:Gem::Version
|
91
125
|
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: pagy
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - "~>"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 9.3.3
|
133
|
+
type: :runtime
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: 9.3.3
|
92
140
|
- !ruby/object:Gem::Dependency
|
93
141
|
name: omniauth
|
94
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,14 +191,14 @@ dependencies:
|
|
143
191
|
requirements:
|
144
192
|
- - "~>"
|
145
193
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
194
|
+
version: 2.12.1
|
147
195
|
type: :runtime
|
148
196
|
prerelease: false
|
149
197
|
version_requirements: !ruby/object:Gem::Requirement
|
150
198
|
requirements:
|
151
199
|
- - "~>"
|
152
200
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
201
|
+
version: 2.12.1
|
154
202
|
- !ruby/object:Gem::Dependency
|
155
203
|
name: puma
|
156
204
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,34 +229,20 @@ dependencies:
|
|
181
229
|
version: '0'
|
182
230
|
- !ruby/object:Gem::Dependency
|
183
231
|
name: rspec-rails
|
184
|
-
requirement: !ruby/object:Gem::Requirement
|
185
|
-
requirements:
|
186
|
-
- - "~>"
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
version: '5.0'
|
189
|
-
type: :development
|
190
|
-
prerelease: false
|
191
|
-
version_requirements: !ruby/object:Gem::Requirement
|
192
|
-
requirements:
|
193
|
-
- - "~>"
|
194
|
-
- !ruby/object:Gem::Version
|
195
|
-
version: '5.0'
|
196
|
-
- !ruby/object:Gem::Dependency
|
197
|
-
name: factory_bot_rails
|
198
232
|
requirement: !ruby/object:Gem::Requirement
|
199
233
|
requirements:
|
200
234
|
- - ">="
|
201
235
|
- !ruby/object:Gem::Version
|
202
|
-
version: '0'
|
236
|
+
version: '6.0'
|
203
237
|
type: :development
|
204
238
|
prerelease: false
|
205
239
|
version_requirements: !ruby/object:Gem::Requirement
|
206
240
|
requirements:
|
207
241
|
- - ">="
|
208
242
|
- !ruby/object:Gem::Version
|
209
|
-
version: '0'
|
243
|
+
version: '6.0'
|
210
244
|
- !ruby/object:Gem::Dependency
|
211
|
-
name:
|
245
|
+
name: factory_bot_rails
|
212
246
|
requirement: !ruby/object:Gem::Requirement
|
213
247
|
requirements:
|
214
248
|
- - ">="
|
@@ -222,7 +256,7 @@ dependencies:
|
|
222
256
|
- !ruby/object:Gem::Version
|
223
257
|
version: '0'
|
224
258
|
- !ruby/object:Gem::Dependency
|
225
|
-
name:
|
259
|
+
name: faker
|
226
260
|
requirement: !ruby/object:Gem::Requirement
|
227
261
|
requirements:
|
228
262
|
- - ">="
|
@@ -310,15 +344,16 @@ files:
|
|
310
344
|
- app/assets/javascripts/ucb_rails_user/scripts.js
|
311
345
|
- app/assets/javascripts/ucb_rails_user/typeahead.bundle.js
|
312
346
|
- app/assets/javascripts/ucb_rails_user/ucb_rails_user.js
|
313
|
-
- app/assets/stylesheets/ucb_rails_user/components/
|
314
|
-
- app/assets/stylesheets/ucb_rails_user/components/
|
315
|
-
- app/assets/stylesheets/ucb_rails_user/components/
|
316
|
-
- app/assets/stylesheets/ucb_rails_user/components/index.sass
|
347
|
+
- app/assets/stylesheets/ucb_rails_user/components/impersonations.css
|
348
|
+
- app/assets/stylesheets/ucb_rails_user/components/loader.css
|
349
|
+
- app/assets/stylesheets/ucb_rails_user/components/users_table.css
|
317
350
|
- app/assets/stylesheets/ucb_rails_user/datatables.css
|
318
351
|
- app/assets/stylesheets/ucb_rails_user/index.sass
|
319
|
-
- app/assets/stylesheets/ucb_rails_user/main.
|
352
|
+
- app/assets/stylesheets/ucb_rails_user/main.css
|
353
|
+
- app/assets/stylesheets/ucb_rails_user/pagy_tailwind.css
|
320
354
|
- app/assets/stylesheets/ucb_rails_user/styles.css
|
321
355
|
- app/assets/stylesheets/ucb_rails_user/typeahead_tweaks.sass
|
356
|
+
- app/assets/stylesheets/ucb_rails_user/user.css
|
322
357
|
- app/controllers/concerns/ucb_rails_user/auth_concerns.rb
|
323
358
|
- app/controllers/concerns/ucb_rails_user/home_controller_concerns.rb
|
324
359
|
- app/controllers/concerns/ucb_rails_user/impersonations_controller_concerns.rb
|
@@ -348,20 +383,20 @@ files:
|
|
348
383
|
- app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
|
349
384
|
- app/models/ucb_rails_user/user_session_manager/test_session_manager.rb
|
350
385
|
- app/models/ucb_rails_user/user_uc_path_service.rb
|
351
|
-
- app/views/ucb_rails_user/home/logged_in.html.
|
352
|
-
- app/views/ucb_rails_user/home/not_logged_in.html.
|
353
|
-
- app/views/ucb_rails_user/impersonations/index.html.
|
354
|
-
- app/views/ucb_rails_user/lps/_form.html.
|
355
|
-
- app/views/ucb_rails_user/lps/_modal.html.
|
356
|
-
- app/views/ucb_rails_user/lps/_results.html.
|
357
|
-
- app/views/ucb_rails_user/lps/search.js.
|
358
|
-
- app/views/ucb_rails_user/users/_form.html.
|
359
|
-
- app/views/ucb_rails_user/users/_search_results.html.
|
360
|
-
- app/views/ucb_rails_user/users/_user.html.
|
361
|
-
- app/views/ucb_rails_user/users/edit.html.
|
362
|
-
- app/views/ucb_rails_user/users/index.html.
|
363
|
-
- app/views/ucb_rails_user/users/new.html.
|
364
|
-
- app/views/ucb_rails_user/users/search.js.
|
386
|
+
- app/views/ucb_rails_user/home/logged_in.html.erb
|
387
|
+
- app/views/ucb_rails_user/home/not_logged_in.html.erb
|
388
|
+
- app/views/ucb_rails_user/impersonations/index.html.erb
|
389
|
+
- app/views/ucb_rails_user/lps/_form.html.erb
|
390
|
+
- app/views/ucb_rails_user/lps/_modal.html.erb
|
391
|
+
- app/views/ucb_rails_user/lps/_results.html.erb
|
392
|
+
- app/views/ucb_rails_user/lps/search.js.erb
|
393
|
+
- app/views/ucb_rails_user/users/_form.html.erb
|
394
|
+
- app/views/ucb_rails_user/users/_search_results.html.erb
|
395
|
+
- app/views/ucb_rails_user/users/_user.html.erb
|
396
|
+
- app/views/ucb_rails_user/users/edit.html.erb
|
397
|
+
- app/views/ucb_rails_user/users/index.html.erb
|
398
|
+
- app/views/ucb_rails_user/users/new.html.erb
|
399
|
+
- app/views/ucb_rails_user/users/search.js.erb
|
365
400
|
- config/initializers/simple_form.rb
|
366
401
|
- config/initializers/simple_form_bootstrap.rb
|
367
402
|
- config/locales/simple_form.en.yml
|
@@ -374,7 +409,6 @@ files:
|
|
374
409
|
- lib/ucb_rails_user/configuration/cas.rb
|
375
410
|
- lib/ucb_rails_user/configuration/configuration.rb
|
376
411
|
- lib/ucb_rails_user/configuration/email.rb
|
377
|
-
- lib/ucb_rails_user/configuration/exception_notification.rb
|
378
412
|
- lib/ucb_rails_user/configuration/ldap.rb
|
379
413
|
- lib/ucb_rails_user/engine.rb
|
380
414
|
- lib/ucb_rails_user/spec_helpers.rb
|
@@ -398,7 +432,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
398
432
|
- !ruby/object:Gem::Version
|
399
433
|
version: '0'
|
400
434
|
requirements: []
|
401
|
-
rubygems_version: 3.
|
435
|
+
rubygems_version: 3.5.22
|
402
436
|
signing_key:
|
403
437
|
specification_version: 4
|
404
438
|
summary: Rails engine for UCB user accounts
|
@@ -1,46 +0,0 @@
|
|
1
|
-
.ucb-rails-user-loader,
|
2
|
-
.ucb-rails-user-loader:after
|
3
|
-
border-radius: 50%
|
4
|
-
width: 6em
|
5
|
-
height: 6em
|
6
|
-
|
7
|
-
.ucb-rails-user-loader
|
8
|
-
display: none
|
9
|
-
margin: 60px auto
|
10
|
-
font-size: 10px
|
11
|
-
position: relative
|
12
|
-
text-indent: -9999em
|
13
|
-
border-top: .8em solid rgba(0,50,97, 0.2)
|
14
|
-
border-right: .8em solid rgba(0,50,97, 0.2)
|
15
|
-
border-bottom: .8em solid rgba(0,50,97, 0.2)
|
16
|
-
border-left: .8em solid #003261
|
17
|
-
-webkit-transform: translateZ(0)
|
18
|
-
-ms-transform: translateZ(0)
|
19
|
-
transform: translateZ(0)
|
20
|
-
-webkit-animation: load8 1.1s infinite linear
|
21
|
-
animation: load8 1.1s infinite linear
|
22
|
-
|
23
|
-
@-webkit-keyframes load8
|
24
|
-
0%
|
25
|
-
-webkit-transform: rotate(0deg)
|
26
|
-
transform: rotate(0deg)
|
27
|
-
|
28
|
-
100%
|
29
|
-
-webkit-transform: rotate(360deg)
|
30
|
-
transform: rotate(360deg)
|
31
|
-
|
32
|
-
|
33
|
-
@keyframes load8
|
34
|
-
0%
|
35
|
-
-webkit-transform: rotate(0deg)
|
36
|
-
transform: rotate(0deg)
|
37
|
-
|
38
|
-
100%
|
39
|
-
-webkit-transform: rotate(360deg)
|
40
|
-
transform: rotate(360deg)
|
41
|
-
|
42
|
-
.ucb-rails-user-loader-small
|
43
|
-
margin: 16px
|
44
|
-
font-size: 6px
|
45
|
-
|
46
|
-
|
@@ -1,20 +0,0 @@
|
|
1
|
-
%h1 Impersonate user
|
2
|
-
|
3
|
-
- if current_user.impersonating?
|
4
|
-
.clear-impersonation
|
5
|
-
= link_to "Stop impersonating #{current_user.impersonation_target.full_name}", admin_stop_impersonation_path(), class: "btn btn-primary"
|
6
|
-
- else
|
7
|
-
.impersonation-form
|
8
|
-
= simple_form_for UcbRailsUser::Impersonation.new, url: admin_impersonations_path(), method: :post do |f|
|
9
|
-
= f.input :target, label: "User", input_html: { class: "typeahead" }
|
10
|
-
= f.input :target_id, as: :hidden
|
11
|
-
= f.button :submit, value: "Impersonate", class: "btn btn-primary", disabled: true, data: { impersonate_button: true }
|
12
|
-
|
13
|
-
.recent-impersonations
|
14
|
-
- if current_user.recent_impersonations.present?
|
15
|
-
%h3 Recent impersonations
|
16
|
-
%ul
|
17
|
-
- current_user.recent_impersonations.each do |imp|
|
18
|
-
%li= link_to full_name_with_uid(imp.target), admin_impersonations_path() + "?ucb_rails_user_impersonation[target_id=#{imp.target.id}]", method: :post
|
19
|
-
- else
|
20
|
-
%h4 No recent impersonations
|
@@ -1,19 +0,0 @@
|
|
1
|
-
= form_tag('/ucb_rails/ldap_person_search', :class => "well form-inline", :id => 'lps-form', :method => :get, :remote => true) do
|
2
|
-
|
3
|
-
= hidden_field_tag('search-field-name')
|
4
|
-
= hidden_field_tag('result-link-http-method')
|
5
|
-
= hidden_field_tag('result-link-text')
|
6
|
-
= hidden_field_tag('result-link-class')
|
7
|
-
= hidden_field_tag('result-link-url')
|
8
|
-
|
9
|
-
.form-group
|
10
|
-
= label_tag 'first_name', 'First Name'
|
11
|
-
= text_field_tag("first_name", nil, class: "form-control")
|
12
|
-
|
13
|
-
.form-group
|
14
|
-
= label_tag 'last_name', 'Last Name'
|
15
|
-
= text_field_tag("last_name", nil, class: "form-control")
|
16
|
-
|
17
|
-
= submit_button_tag('Search', id: 'lps-search')
|
18
|
-
= button("Clear", url: "#", :id => 'lps-clear')
|
19
|
-
|
@@ -1,34 +0,0 @@
|
|
1
|
-
= ucbr_table_tag(class: 'table-condensed') do
|
2
|
-
%thead
|
3
|
-
%tr
|
4
|
-
%th{style: 'width="1%"'}
|
5
|
-
%th First Name
|
6
|
-
%th Last Name
|
7
|
-
%th Email
|
8
|
-
%th Department
|
9
|
-
%tbody
|
10
|
-
- @lps_entries.each do |entry|
|
11
|
-
- entry_id = "ldap_uid_#{entry.uid}"
|
12
|
-
%tr{id: entry_id, class: ldap_entry_class(entry)}
|
13
|
-
%td= link_to_ldap_person_entry(entry)
|
14
|
-
%td= entry.first_name
|
15
|
-
%td= entry.last_name
|
16
|
-
%td= entry.email
|
17
|
-
%td= entry.departments
|
18
|
-
|
19
|
-
:javascript
|
20
|
-
$('#lps-modal table').dataTable({
|
21
|
-
"bPaginate": false,
|
22
|
-
"bFilter": false,
|
23
|
-
"bInfo": false,
|
24
|
-
"oLanguage": {
|
25
|
-
"sEmptyTable": "No matches for your search."
|
26
|
-
},
|
27
|
-
"aaSorting": [ [1, "asc"], [2, "asc"] ],
|
28
|
-
"aoColumnDefs": [
|
29
|
-
{ "bSortable": false, "aTargets": [ 0 ] }, // selection link
|
30
|
-
{ "aDataSort": [ 1, 2 ], "aTargets": [ 1 ] }, // first name
|
31
|
-
{ "aDataSort": [ 2, 1 ], "aTargets": [ 2 ] }, // last name
|
32
|
-
{ "aDataSort": [ 3, 1, 2 ], "aTargets": [ 3 ] }, // department
|
33
|
-
]
|
34
|
-
});
|
@@ -1,14 +0,0 @@
|
|
1
|
-
= simple_form_for(@user, url: url, method: method, :html => {:class => 'form-horizontal'}, wrapper: :horizontal_form) do |f|
|
2
|
-
= f.input :ldap_uid, :input_html => {disabled: 'disabled'}
|
3
|
-
= f.input :first_name, :input_html => {disabled: 'disabled'}
|
4
|
-
= f.input :last_name, :input_html => {disabled: 'disabled'}
|
5
|
-
= f.input :email, :input_html => {disabled: 'disabled'}
|
6
|
-
= f.input :alternate_email
|
7
|
-
= f.input :last_login_at, as: :string, :input_html => {disabled: 'disabled', value: @user.last_login_at&.strftime("%m/%d/%Y %H:%M:%S")}
|
8
|
-
= f.input :superuser_flag, :as => :boolean, label: "Superuser?", wrapper: :horizontal_boolean
|
9
|
-
= f.input :inactive_flag, :as => :boolean, :label => "Inactive User?", wrapper: :horizontal_boolean
|
10
|
-
|
11
|
-
.form-actions
|
12
|
-
%button{type: "submit", class: "btn btn-primary"} Submit
|
13
|
-
= link_to "Cancel", admin_users_path
|
14
|
-
|
@@ -1,24 +0,0 @@
|
|
1
|
-
%h3 Search Results
|
2
|
-
- if @results.empty?
|
3
|
-
%p No results matched your search
|
4
|
-
- else
|
5
|
-
%table.table.table-striped.add-user-search-results-table
|
6
|
-
%thead
|
7
|
-
%tr
|
8
|
-
%th UID
|
9
|
-
%th Employee ID
|
10
|
-
%th First Name
|
11
|
-
%th Last Name
|
12
|
-
%th
|
13
|
-
%tbody
|
14
|
-
- @results.each do |person|
|
15
|
-
%tr
|
16
|
-
%td= person.uid
|
17
|
-
%td= person.employee_id
|
18
|
-
%td= person.first_name
|
19
|
-
%td= person.last_name
|
20
|
-
%td
|
21
|
-
= form_tag admin_users_path(), method: :post do
|
22
|
-
= hidden_field_tag :ldap_uid, person.uid
|
23
|
-
= submit_tag "Add", class: "btn btn-primary"
|
24
|
-
|
@@ -1,11 +0,0 @@
|
|
1
|
-
%tr[user]
|
2
|
-
%td= checkmark(user.superuser?)
|
3
|
-
%td= checkmark(user.inactive?)
|
4
|
-
%td= user.first_name
|
5
|
-
%td= user.last_name
|
6
|
-
%td= mail_to(user.email)
|
7
|
-
%td.dt= user.last_login_at&.strftime("%m/%d/%Y %H:%M:%S")
|
8
|
-
%td.min= user.ldap_uid
|
9
|
-
%td.min= user.employee_id
|
10
|
-
%td= link_to('edit', edit_admin_user_path(user), :class => 'btn btn-info btn-xs', :id => dom_id(user, 'edit'))
|
11
|
-
%td= button_to 'delete', admin_user_path(user), method: :delete, data: {confirm: "Are you sure?"}, class: "btn btn-danger btn-xs"
|
@@ -1,22 +0,0 @@
|
|
1
|
-
.ucb-rails-users-table-header.clearfix
|
2
|
-
%h1
|
3
|
-
Users
|
4
|
-
|
5
|
-
.table-responsive.ucb-rails-users-table-wrapper
|
6
|
-
%table.table.table-striped.table-bordered.table-hover.ucb-rails-users-table
|
7
|
-
%thead
|
8
|
-
%tr
|
9
|
-
%th.min Superuser?
|
10
|
-
%th.min Inactive?
|
11
|
-
%th First Name
|
12
|
-
%th Last Name
|
13
|
-
%th Email
|
14
|
-
%th.dt Last Login
|
15
|
-
%th UID
|
16
|
-
%th Employee ID
|
17
|
-
%th.min.unsorted Edit
|
18
|
-
%th.min.unsorted Delete
|
19
|
-
%tbody.highlight
|
20
|
-
= render partial: "ucb_rails_user/users/user", collection: @users
|
21
|
-
|
22
|
-
|
@@ -1,16 +0,0 @@
|
|
1
|
-
%h2 Add New User
|
2
|
-
|
3
|
-
= form_tag admin_user_search_path(), method: :get, remote: true, class: "form-inline user-search-form" do
|
4
|
-
= text_field_tag :first_name, "", placeholder: "First name", class: "form-control"
|
5
|
-
= text_field_tag :last_name, "", placeholder: "Last name", class: "form-control"
|
6
|
-
= text_field_tag :employee_id, "", placeholder: "Employee ID", class: "form-control"
|
7
|
-
= submit_tag "Search", class: "btn btn-primary"
|
8
|
-
= link_to "Cancel", admin_users_path(), class: "btn btn-default"
|
9
|
-
|
10
|
-
.ucb-rails-user-loader
|
11
|
-
Loading...
|
12
|
-
|
13
|
-
.search-results
|
14
|
-
- if @results
|
15
|
-
= render "results"
|
16
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module UcbRailsUser
|
2
|
-
module Configuration
|
3
|
-
|
4
|
-
class ExceptionNotification
|
5
|
-
|
6
|
-
class << self
|
7
|
-
|
8
|
-
def configure(config)
|
9
|
-
return if config.blank?
|
10
|
-
|
11
|
-
config = config.symbolize_keys
|
12
|
-
config[:email].symbolize_keys!
|
13
|
-
config[:email][:email_prefix] = config[:email][:email_prefix].gsub("{env}", RailsEnvironment.short)
|
14
|
-
|
15
|
-
Rails.application.config.middleware.use ::ExceptionNotification::Rack, config
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
21
|
-
end
|