renalware-core 2.0.62 → 2.0.63

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64ca193c21a9cd60df8f1db1616a04549ffd2e7dccc0a05fbcbf15844a35e37c
4
- data.tar.gz: d392a058b9cb8d77312e6afd10f6093d1503022a33a31ad76d88c2bbf2b6a421
3
+ metadata.gz: f61f781fe0dc02b33492af2c0007e8533192f9479042bb6966884a9e09cf78ee
4
+ data.tar.gz: 496511b58dc7bd6e5229b0e5c8979d85b5df30300a3760ac086ced22043a6062
5
5
  SHA512:
6
- metadata.gz: c9c119fad8b500a3aaacccb6efccfcb4b4c83e1d77d0271519c961ac4b4a70be0406bada8fb5b6e32041fa41cd1ce2df38c002b9d4c658bcac0e606019470b04
7
- data.tar.gz: f90aacae8a824dd90e10732712fa644f356766bf36ef527e9f0ba46d24c810b7ce26ce446c73e6866947fde9d53e6e51da45aac6160cb2baf777997441b7c0ac
6
+ metadata.gz: b7195cf7fbde424de5e8a79c973c8216dff8582ffcf9c72fe08ba483ad92bfb6a493d0f504ba400c6bca8e5079124dd1681f20f2b97522ffa182d71b06318751
7
+ data.tar.gz: 11de42735fbd3daad0adde101af9f08ce730061e123f445f60918f53e5bc592a26dcd8d707d063c39df177df58cb5af844c79e15d57eb1ffc3ca3779ccf5f021
@@ -1,10 +1,21 @@
1
- table.stripeless {
2
- // .session_import_success {
3
- // background-color: lightgreen !important;
4
- // }
5
-
6
- .session_import_error {
7
- background-color: #ffe5e5 !important;
1
+ .hd_transmission_logs {
2
+ tr {
3
+ &.session_import_success {
4
+ td.result {
5
+ background: lighten($nhs-light-green, 50);
6
+ }
7
+ }
8
+ &.file {
9
+ td {
10
+ background: $off-white;
11
+ border-bottom: solid 2px $charcoal;
12
+ }
13
+ }
14
+ &.session_import_error {
15
+ td.result {
16
+ background-color:lighten($nhs-pink, 50);
17
+ }
18
+ }
8
19
  }
9
20
  }
10
21
 
@@ -24,7 +24,7 @@ module Renalware
24
24
  log = TransmissionLog.find(params[:id])
25
25
  authorize log
26
26
  respond_to do |format|
27
- format.xml { render xml: log.payload }
27
+ format.xml { render xml: log.payload, template: nil }
28
28
  end
29
29
  end
30
30
  end
@@ -7,7 +7,7 @@ module Renalware
7
7
  include NumericScaleValidations
8
8
  MIN_VALUE = 5.0
9
9
  MAX_VALUE = 300.0
10
- MAX_DECIMAL_PLACES = 1
10
+ MAX_DECIMAL_PLACES = 2
11
11
 
12
12
  def validate_each(record, attribute, value)
13
13
  return if value.blank?
@@ -11,7 +11,7 @@
11
11
  th.col-width-medium Patient
12
12
  th.col-width-small Ext Session Id
13
13
  th.col-width-small Session Id
14
- th.col-width-tiny Result
14
+ th.col-width-large Result
15
15
  th Errors
16
16
  tbody
17
17
  - logs.each do |log|
@@ -19,24 +19,37 @@
19
19
  klass = if log.parent_id.present?
20
20
  log.session_id.present? ? "session_import_success" : "session_import_error"
21
21
  else
22
- ""
22
+ "file"
23
23
  end
24
24
  tr(class=klass)
25
25
  td= l(log.created_at)
26
26
  td= log.direction
27
27
  td= log.format
28
- td= link_to "...",
28
+ td
29
+ - if log.payload.present?
30
+ = link_to "...",
29
31
  hd_transmission_log_path(log, format: :xml),
30
32
  class: "button small_ellipsis_button",
31
33
  target: "_blank"
32
34
  td
33
- span(title=log.filepath)= log.filepath && Pathname(log.filepath).basename
35
+ span(title=log.filepath)
36
+ - filename = log.filepath && Pathname(log.filepath).basename
37
+ - if filename.present?
38
+ i.fas.fa-file
39
+ |  
40
+ = filename
34
41
  td= log.patient && link_to(log.patient, patient_hd_sessions_path(log.patient))
35
- td= log.external_session_id
36
- th
42
+ td
43
+ - if log.parent_id.present?
44
+ = log.external_session_id
45
+ - else
46
+ i.fas.fa-arrow
47
+ td
37
48
  - if log.patient && log.session
38
49
  = link_to log.session_id, patient_hd_session_path(log.patient, log.session)
39
- td= log.result
40
- td= log.error_messages.compact.uniq.join("<br>").html_safe
50
+ td.result
51
+ = log.result
52
+ td.result
53
+ = log.error_messages.compact.uniq.join("<br>").html_safe
41
54
 
42
55
  = paginate logs
@@ -10,7 +10,7 @@ en:
10
10
  attributes:
11
11
  weight:
12
12
  out_of_range: Must be between 5.0 and 300.0 kg
13
- invalid_number: Please enter a number with up to 1 decimal place, for example 100 or 100.1
13
+ invalid_number: Please enter a number with up to 2 decimal places, for example 100 or 100.11
14
14
  renalware:
15
15
  clinical:
16
16
  dry_weights:
@@ -80,7 +80,7 @@ en:
80
80
  out_of_range: Please enter a pulse between 20 and 200
81
81
  weight:
82
82
  out_of_range: Please enter a weight between 5.0 and 300.0 kg
83
- invalid_number: Please enter a number with up to 1 decimal place, for example 100 or 100.1
83
+ invalid_number: Please enter a number with up to 2 decimal place, for example 100 or 100.11
84
84
  temperature:
85
85
  out_of_range: Please enter a temperature between 28.0 and 45.0°C
86
86
  invalid_number: Please enter a number with up to 1 decimal place, for example 37 or 37.1
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Renalware
4
- VERSION = "2.0.62"
4
+ VERSION = "2.0.63"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renalware-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.62
4
+ version: 2.0.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airslie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-20 00:00:00.000000000 Z
11
+ date: 2018-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_type