ecm_opening_times_backend 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 9acacb08ca1b9911308d11d5c1a1a3cde58e2f66
4
- data.tar.gz: 16aa73b4097d9c63b1cd303c993d7fce6c3cc3f1
3
+ metadata.gz: ac9d4e5a30060f203f5963c6cc65e1ae1ad09cfa
4
+ data.tar.gz: b88993b4d72507ffbf9186fe084f4d7294aa91c5
5
5
  SHA512:
6
- metadata.gz: 3f93228ac36cfaad031e11be10a3ba3f43b2f8b01bb361673ef0416ff079b7c9c07cb970cf93b5212c77764c490583d879f0127e464f5ab89f657a43aca4b214
7
- data.tar.gz: 689040e4a8efe006b7c54727840c31d3725f08824a2827ac0fbfda4c0117f914e11cfb062de421a7065c76215aa9eee8e090de2ea056e268f435bdbbcbdf30fb
6
+ metadata.gz: d3cc2cb0b429ae08700b5a05e7630ef7d62a80921fb1c13d21142cc72d8d87648d757e238a546fec731d54717afb34950ea8e03c0f96c4d9a1ccc7419101c0b2
7
+ data.tar.gz: 255efaeae46441b6edfa92a9a1a80ea222580f6e4d6f1dc37cd00fc760d5580696d143423d0e2a7ee63147276e2f598ebaa2cc6d6328025fd6bee67baa298cb3
@@ -4,6 +4,8 @@ module Ecm
4
4
  class BranchesController < Itsf::Backend::Resource::BaseController
5
5
  include Controller::ActsAsListConcern
6
6
 
7
+ helper Ecm::OpeningTimes::ApplicationHelper
8
+
7
9
  def self.resource_class
8
10
  Ecm::OpeningTimes::Branch
9
11
  end
@@ -0,0 +1,34 @@
1
+ .row
2
+ .col-lg-12
3
+ = render_collection(@resource.entries, Ecm::OpeningTimes::Entry, as: :bootstrap_table) do |table|
4
+ = table.column :monday do |resource|
5
+ - if resource.monday
6
+ %div.text-center
7
+ %i.glyphicon.glyphicon-ok
8
+ = table.column :tuesday do |resource|
9
+ - if resource.tuesday
10
+ %div.text-center
11
+ %i.glyphicon.glyphicon-ok
12
+ = table.column :wednesday do |resource|
13
+ - if resource.wednesday
14
+ %div.text-center
15
+ %i.glyphicon.glyphicon-ok
16
+ = table.column :thursday do |resource|
17
+ - if resource.thursday
18
+ %div.text-center
19
+ %i.glyphicon.glyphicon-ok
20
+ = table.column :friday do |resource|
21
+ - if resource.friday
22
+ %div.text-center
23
+ %i.glyphicon.glyphicon-ok
24
+ = table.column :saturday do |resource|
25
+ - if resource.saturday
26
+ %div.text-center
27
+ %i.glyphicon.glyphicon-ok
28
+ = table.column :sunday do |resource|
29
+ - if resource.sunday
30
+ %div.text-center
31
+ %i.glyphicon.glyphicon-ok
32
+ = table.column :open_at
33
+ = table.column :close_at
34
+ = table.timestamps
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module OpeningTimes
3
3
  module Backend
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_opening_times_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-12 00:00:00.000000000 Z
11
+ date: 2018-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -202,6 +202,7 @@ files:
202
202
  - app/helpers/ecm/opening_times/backend/application_helper.rb
203
203
  - app/views/ecm/opening_times/backend/branches/_entries_form.haml
204
204
  - app/views/ecm/opening_times/backend/branches/_form.haml
205
+ - app/views/ecm/opening_times/backend/branches/_show_extras.haml
205
206
  - app/views/ecm/opening_times/backend/branches/_table.haml
206
207
  - app/views/ecm/opening_times/backend/entries/_form.haml
207
208
  - app/views/ecm/opening_times/backend/entries/_table.haml