renalware-core 2.0.98 → 2.0.99
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/renalware/concerns/devise_controller_methods.rb +3 -0
- data/app/views/renalware/admin/users/edit.html.slim +6 -0
- data/app/views/renalware/admin/users/index.html.slim +8 -2
- data/app/views/renalware/devise/registrations/new.html.slim +12 -0
- data/db/migrate/20190823105642_add_asked_for_write_access_to_users.rb +7 -0
- data/lib/renalware/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 688cbe6a0810acd8980722dbde29b68a21116d2e695a01bb0f71da9bef6c03c2
|
4
|
+
data.tar.gz: ca04c46a641c5214422e23f5b78e4872bccb5447691e5f02a1f76a049da16923
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7585d9b098511c978d0b3f5b5f3b7ab7bcc89dc648e01943d7391694f69672afc07bf00451e9a65ab4f2caa622d2e7809aa8ade755d32428a208891c4332f223
|
7
|
+
data.tar.gz: 1c30a614fb4d0d85fc50a566ce141fd4aaf684ad6fed4080b32fd207e7bc2334e2f3c432d73899435826be964a67dc08078db6318846ab852ed1872751811f10
|
@@ -20,6 +20,7 @@ module Renalware
|
|
20
20
|
configure_account_update_parameters
|
21
21
|
end
|
22
22
|
|
23
|
+
# rubocop:disable Metrics/MethodLength
|
23
24
|
def configure_sign_up_parameters
|
24
25
|
devise_parameter_sanitizer.permit(
|
25
26
|
:sign_up,
|
@@ -30,10 +31,12 @@ module Renalware
|
|
30
31
|
:email,
|
31
32
|
:password,
|
32
33
|
:password_confirmation,
|
34
|
+
:asked_for_write_access,
|
33
35
|
:remember_me
|
34
36
|
]
|
35
37
|
)
|
36
38
|
end
|
39
|
+
# rubocop:enable Metrics/MethodLength
|
37
40
|
|
38
41
|
def configure_sign_in_parameters
|
39
42
|
devise_parameter_sanitizer.permit(:sign_in, keys: [:username, :password, :remember_me])
|
@@ -18,6 +18,11 @@
|
|
18
18
|
= check_box_tag "user[unexpire]", true, false, class: "inline"
|
19
19
|
= label_tag :user_unexpire, "Reactivate account"
|
20
20
|
|
21
|
+
span
|
22
|
+
| Requested write access:
|
23
|
+
= yes_no(@user.asked_for_write_access)
|
24
|
+
|
25
|
+
br
|
21
26
|
br
|
22
27
|
- Renalware::Role.all.each_with_index do |role, index|
|
23
28
|
- element_id = "user_role_ids_#{index}"
|
@@ -30,6 +35,7 @@
|
|
30
35
|
= label_tag element_id, role.name.humanize
|
31
36
|
br
|
32
37
|
br
|
38
|
+
|
33
39
|
= f.input :telephone,
|
34
40
|
input_html: { class: "input small" },
|
35
41
|
wrapper: :horizontal_small
|
@@ -16,6 +16,7 @@
|
|
16
16
|
"User")
|
17
17
|
th.col-width-small= sort_link(user_search, :username, "Login")
|
18
18
|
th= sort_link(user_search, :email, "Email")
|
19
|
+
th.col-width-small Requested write access
|
19
20
|
th.col-width-medium Role
|
20
21
|
th.col-width-tiny= sort_link(user_search, :approved, "Approved")
|
21
22
|
th.col-width-date= sort_link(user_search, :expired_at, "Expired On")
|
@@ -34,14 +35,19 @@
|
|
34
35
|
td= user.to_s
|
35
36
|
td= user.username
|
36
37
|
td= user.email
|
38
|
+
td
|
39
|
+
- if user.asked_for_write_access?
|
40
|
+
i.far.fa-check-square
|
41
|
+
- else
|
42
|
+
i.muted.far.fa-square
|
37
43
|
td
|
38
44
|
- user.roles.each do |role|
|
39
45
|
span.tag(class=role.name)= role.name.humanize
|
40
|
-
td
|
46
|
+
td
|
41
47
|
- if user.approved?
|
42
48
|
i.far.fa-check-square
|
43
49
|
- else
|
44
|
-
i.unapproved.far.fa-square
|
50
|
+
i.muted.unapproved.far.fa-square
|
45
51
|
td.expired= l(user.expired_at&.to_date)
|
46
52
|
td.show-for-large-up= l(user.current_sign_in_at)
|
47
53
|
td.show-for-large-up= l(user.last_sign_in_at)
|
@@ -19,6 +19,18 @@
|
|
19
19
|
as: :password,
|
20
20
|
input_html: { autocomplete: "off" },
|
21
21
|
wrapper: :horizontal_small
|
22
|
+
|
23
|
+
|
24
|
+
.panel
|
25
|
+
b
|
26
|
+
| Check this box if you feel you should have full access to the database.
|
27
|
+
br
|
28
|
+
| Leaving the box unchecked means you will have read-only access.
|
29
|
+
br
|
30
|
+
br
|
31
|
+
|
32
|
+
= f.input :asked_for_write_access, label: "Write access required"
|
33
|
+
|
22
34
|
= f.submit "Sign up", class: "button save"
|
23
35
|
|
24
36
|
= render "devise/shared/links"
|
data/lib/renalware/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: renalware-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.99
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airslie
|
@@ -3541,6 +3541,7 @@ files:
|
|
3541
3541
|
- db/migrate/20190822180201_create_consultants.rb
|
3542
3542
|
- db/migrate/20190823044107_add_outcome_columns_to_clinic_appointments.rb
|
3543
3543
|
- db/migrate/20190823051014_add_hidden_colum_to_event_types.rb
|
3544
|
+
- db/migrate/20190823105642_add_asked_for_write_access_to_users.rb
|
3544
3545
|
- db/seeds.rb
|
3545
3546
|
- db/seeds/default/accesses/access_pd_catheter_insertion_techniques.csv
|
3546
3547
|
- db/seeds/default/accesses/access_pd_catheter_insertion_techniques.rb
|