dhatu 0.3.7.pre.materialize → 0.3.8.pre.materialize

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: b7e514404f5159a6180032e4868ebe93b3d67b50705cb51f40e75d7c3d0e6bfa
4
- data.tar.gz: 3bb8191e6a5aee1dfe8e930476bd7361fdbfe19fc333e7483f2a23582e739a91
3
+ metadata.gz: c50e82ba159c036a18a8f743d46269e6f84c4d59a0566688cb40b4e0dc8a4fc5
4
+ data.tar.gz: c6ac9decad26ff0f0b85470bd90e77d93e1643fbbb93e6dd3f854269eb7b120b
5
5
  SHA512:
6
- metadata.gz: 71f3557e5be6d76ed0a713ab2b6787af47a2a6acaa10cb2712d0829e2f494557b93254010e2bb0447be8d8ffcb429f52f14c7690fb795ce7927a387a0286fc14
7
- data.tar.gz: 88b9f7e82e240b882f23e673677781051524f0aafaf6b20e8d04e588892829186e7bf15d1a5826f86b5e4f15835b1224e7bfa3f3d5b80ceae06cac4fc36abcb5
6
+ metadata.gz: be3bed96f12b862ba7b37b1f0eefefbe35892376f6197c9467ce3a269232d2ee12998270a86ad340847b4ea03b878808ad6d642b9a12f9a48b49499cdc21242d
7
+ data.tar.gz: 2a21d5dd957df3f9f7da300b6f61aaf735ff20339f1355e3b302e971c3fd042a532322974d47fade42bd7f03a087d7ef26a1da61a92ae9c40f0ede17672bcbe4
@@ -16,7 +16,7 @@ class Dhatu::Booking < Dhatu::ApplicationRecord
16
16
  belongs_to :service, optional: true
17
17
 
18
18
  # Serializers
19
- # serialize :additional_attributes, Hash
19
+ serialize :additional_attributes, Hash
20
20
 
21
21
  # ------------------
22
22
  # Class Methods
@@ -5,7 +5,8 @@
5
5
  <th style="text-align: center;width:8%" class="hidden-sm hidden-xs">#</th>
6
6
  <th>Name</th>
7
7
  <th>Date / Time</th>
8
- <th>Service</th>
8
+ <th>Reason For Visit</th>
9
+ <th>Doctor Name</th>
9
10
  <th style="width:20%" class="hidden-sm hidden-xs">Message</th>
10
11
  <% if display_manage_links? %>
11
12
  <th style="text-align: center;width:10%;" class="" >Actions</th>
@@ -27,20 +28,24 @@
27
28
  <% else %>
28
29
  <%= link_to booking.name, booking_path(booking), remote: true %></td>
29
30
  <% end %>
30
- <br><%= link_to booking.email, booking_path(booking), remote: true %>
31
+ <br><%= link_to booking.email, booking_path(booking), remote: true %>
31
32
  <br><%= link_to booking.mobile, booking_path(booking), remote: true %>
32
33
  <br><%= link_to time_ago_in_words(booking.created_at) + " ago", booking_path(booking), remote: true, style: "color:chocolate;font-size:10px;" %>
33
34
  <%= display_readable_status(booking) %>
34
35
  </td>
35
36
 
36
37
  <td class="">
37
- <strong><%= booking.date %></strong><br>
38
- <%= booking.time %>
39
- </td>
38
+ <strong><%= booking.date %></strong><br>
39
+ <%= booking.time %>
40
+ </td>
40
41
 
41
- <td class="">
42
- <%= content_tag :span, booking.try(:service).try(:name), style: "color: chocolate; font-weight:bold;" %>
43
- </td>
42
+ <% unless booking[:additional_attributes].blank? %>
43
+ <% booking.additional_attributes.values.each do |addr_attr_value| %>
44
+ <td class="">
45
+ <strong><%= addr_attr_value %></strong>
46
+ </td>
47
+ <% end %>
48
+ <% end %>
44
49
 
45
50
  <td class="hidden-sm hidden-xs"><%= truncate booking.message, length: 100 %></td>
46
51
 
@@ -1,5 +1,5 @@
1
1
  module Dhatu
2
- VERSION = '0.3.7.pre.materialize'
2
+ VERSION = '0.3.8.pre.materialize'
3
3
  # The old version to migrate existing applications
4
4
  # VERSION = '0.1.25'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dhatu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7.pre.materialize
4
+ version: 0.3.8.pre.materialize
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-15 00:00:00.000000000 Z
11
+ date: 2018-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails