thecore_dataentry_with_date_start_and_end 1.1.3 → 1.1.6

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
  SHA1:
3
- metadata.gz: 7895a3b605c34c13432d594f8d7e288d55c977d6
4
- data.tar.gz: f54cd81f6a0628ae482d3226883afdeeef0eb00b
3
+ metadata.gz: a59f5206e9543795a8c87803b1915a228451b36d
4
+ data.tar.gz: 9909c44545ccf59bd7d38fe54f9a45d544ca1e79
5
5
  SHA512:
6
- metadata.gz: 6b9c8dc25eb7145e7a3d2c370d09d1fe8a1a48ee7094c60068bf81708eef8e7add86ce3b34e6215f4657e185bc8839b2ca63757cf7acae10a19bb5e77534f767
7
- data.tar.gz: 6c272af002f5d657d1b513b57ef5add29d659e6ab59d053e9b95ff96788019008d70ef760d9c9bb197ddd019c5736f74ffbc9004a9bba86b6f46823be884f7ee
6
+ metadata.gz: 3e5f21567706efd1cbd2f62dd9b2849d4a6ecfaa65807bdf668db882dcdcc01c2cfe34f5b90b594997fe3dafb376707f6c810f4808b256bca38e3a1cebd21715
7
+ data.tar.gz: 6ce6eb8e6e8511c76a5ebd07995a51e2b919f984d3c427fb1a8d0b9617ad2e5c30b838d909841e2b1479150da2f85f2f3885a70b5ca9dd5c1cc52e6fa6500092
@@ -6,10 +6,14 @@
6
6
  function contentHtmlString(data){
7
7
  var html = $("<div></div>");
8
8
  html.append("<h3><%=t "thecore_dataentry_with_date_start_and_end.header" %> "+data.barcode+"</h3>");
9
- html.append(buildDTPicker("not-before", '<%=t "thecore_dataentry_with_date_start_and_end.not_before" %>', data.not_before));
9
+ <%-if (not_before rescue true)%>
10
+ html.append(buildDTPicker("not-before", '<%=t "thecore_dataentry_with_date_start_and_end.not_before" %>', data.not_before, <%= not_before_ro rescue false %>));
10
11
  html.append("<br/>");
11
- html.append(buildDTPicker("not-after", '<%=t "thecore_dataentry_with_date_start_and_end.not_after" %>', data.not_after));
12
+ <%-end%>
13
+ <%-if (not_after rescue true)%>
14
+ html.append(buildDTPicker("not-after", '<%=t "thecore_dataentry_with_date_start_and_end.not_after" %>', data.not_after, <%= not_after_ro rescue false %>));
12
15
  html.append("<br/>");
16
+ <%-end%>
13
17
  html.append("<strong><%=t "thecore_dataentry_with_date_start_and_end.description"%></strong>");
14
18
  return html;
15
19
  }
@@ -3,9 +3,9 @@ module ThecoreDataentryWithDateStartAndEnd
3
3
  # This code makes the static assets present in this
4
4
  # engine available to main app, even if this gem is
5
5
  # just a dependency of another engine
6
- initializer 'thecore_dataentry_with_date_start_and_end.load_static_assets' do |app|
7
- puts "Loading static assets for #{root}"
8
- app.middleware.use ::ActionDispatch::Static, "#{root}/app"
9
- end
6
+ # initializer 'thecore_dataentry_with_date_start_and_end.load_static_assets' do |app|
7
+ # puts "Loading static assets for #{root}"
8
+ # app.middleware.use ::ActionDispatch::Static, "#{root}/app"
9
+ # end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module ThecoreDataentryWithDateStartAndEnd
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_dataentry_with_date_start_and_end
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-31 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_dataentry_commons