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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50394d43ef8016c2cbd18308d3c6fa69953265c39d8c7a032e1a03271b81140c
4
- data.tar.gz: 25b57f293c038f5052643a141dffa18183a41ee2ab8669cd843e0b01925ace5c
3
+ metadata.gz: 688cbe6a0810acd8980722dbde29b68a21116d2e695a01bb0f71da9bef6c03c2
4
+ data.tar.gz: ca04c46a641c5214422e23f5b78e4872bccb5447691e5f02a1f76a049da16923
5
5
  SHA512:
6
- metadata.gz: a32361f670baf0c9f1d94dcdbd733e6a7fcd63cd473aab07afe36aeda11112f4a2cc918206eee7d801b6a83a77887cb0178a485635262c8a2d8a83f1c5be03c0
7
- data.tar.gz: fd7c8aae6a967f8f1e2f34479c6a5d2b345eb771e7d9820e73ca903d0e21f7202e5e52ee48889c897b4c58c4ffd12fb3116ab02e079aa8493e001c42aced0703
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.approved
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"
@@ -0,0 +1,7 @@
1
+ class AddAskedForWriteAccessToUsers < ActiveRecord::Migration[5.2]
2
+ def change
3
+ within_renalware_schema do
4
+ add_column :users, :asked_for_write_access, :boolean, default: false, null: false
5
+ end
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Renalware
4
- VERSION = "2.0.98"
4
+ VERSION = "2.0.99"
5
5
  end
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.98
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