spina-restaurantmenus 0.2.0 → 0.3.0

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: 90a3264221900d898bf1271ba2de113523d59540
4
- data.tar.gz: 49a956f62857fb78a554c290863c82b090ea0a33
3
+ metadata.gz: ad72a9166244ba063fc4ecb2e8316f6176397c89
4
+ data.tar.gz: 3c81a78530863508d9e1359015475bcfd6269c23
5
5
  SHA512:
6
- metadata.gz: ec98395563f5fce27237bb34a5ff037d7a7e4ebdb03a295c8421f7e88aa83f6d8f0d9868d92c4baea7d941af539b3ae8af229bc64dd7c3fbefbfc819f12a3878
7
- data.tar.gz: ba72c841c0adad0b1d62285cfe0701d9a23c915e6927fb572de5ccd066423203167d73d9f3d57b4753abeca38a9e05546669e24e42628fbadd9bb06e8f4743c7
6
+ metadata.gz: 40ef82c75c88d3573ca065bad78718b8cc95c54772dcac3349e360327d84c0d68686c4bfcee89227354b57cfebd7b64f46d58ed22d4cb4862972a51fa6d3bd3a
7
+ data.tar.gz: d97cc811a9d906d9c419d7dc198a16b359ab79f9dc95db3f4a8a5bdbb2e1c4f272ab4f0227269dbb9a20049924f5af0f341b72e95e48f749986c670e2a78d127
@@ -0,0 +1,74 @@
1
+ // Restaurant menu form
2
+
3
+ .restaurant-menu-form
4
+ border: 1px solid #c3c3c3
5
+ border-radius: 3px
6
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .16)
7
+ margin-bottom: 12px
8
+ padding: 10px
9
+
10
+ .restaurant-menu-name:after
11
+ clear: left
12
+ content: " "
13
+ display: block
14
+
15
+ .restaurant-menu-name input
16
+ font-size: 18px
17
+ padding: 10px
18
+
19
+ .restaurant-menu-name .remove_fields
20
+ color: #999
21
+
22
+ input
23
+ border: none
24
+ box-shadow: none
25
+ font-family: serif
26
+ font-weight: 600
27
+ padding: 5px 10px
28
+
29
+ small input
30
+ color: #666
31
+ font-style: italic
32
+ font-weight: normal
33
+ padding-top: 0
34
+
35
+ .restaurant-dish-fields
36
+ margin-bottom: 10px
37
+
38
+ &:after
39
+ clear: left
40
+ content: " "
41
+ display: block
42
+
43
+ .restaurant-dish-price
44
+ text-align: right
45
+
46
+ .remove_fields
47
+ color: #999
48
+ margin-right: 0px
49
+ opacity: 0
50
+ transition: none
51
+
52
+ input
53
+ color: #333
54
+ font-size: 16px
55
+ font-weight: 600
56
+ text-align: right
57
+
58
+ &:hover .restaurant-dish-price .remove_fields
59
+ opacity: 1
60
+
61
+ .add_fields.button
62
+ background: #f5f5f5
63
+ font-size: 13px
64
+ font-weight: 600
65
+ text-align: center
66
+ width: 100%
67
+
68
+ &:hover
69
+ background: #f1f1f1
70
+
71
+ i:before
72
+ font-size: 11px
73
+ line-height: 13px
74
+ margin-right: 2px
@@ -0,0 +1 @@
1
+ = stylesheet_link_tag 'restaurant_menus/restaurant_menus', data: {turbolinks_track: true}
@@ -0,0 +1,16 @@
1
+ .horizontal-form-label
2
+ = f.object.title
3
+ .horizontal-form-content
4
+ = f.hidden_field :id
5
+ = f.hidden_field :title
6
+ = f.hidden_field :page_partable_type
7
+ = f.hidden_field :name
8
+
9
+ = f.fields_for :page_partable, f.object.page_partable do |form|
10
+
11
+ = form.fields_for :restaurant_menus do |restaurant_menu_builder|
12
+ = render 'spina/admin/restaurant_menus/fields', f: restaurant_menu_builder
13
+
14
+ = link_to_add_fields form, :restaurant_menus do
15
+ %i{data: {icon: 't '}}
16
+ Nieuw restaurant menu
@@ -6,7 +6,7 @@
6
6
  .pull-left= f.text_field :name, placeholder: 'Menukaart'
7
7
 
8
8
  = f.fields_for :restaurant_dishes do |restaurant_dish_builder|
9
- = render 'restaurant_dish_fields', f: restaurant_dish_builder
9
+ = render 'spina/admin/restaurant_dishes/fields', f: restaurant_dish_builder
10
10
 
11
11
  = link_to_add_fields f, :restaurant_dishes do
12
12
  %i{data: {icon: 't'}}
@@ -4,10 +4,10 @@ module Spina
4
4
  isolate_namespace Spina
5
5
 
6
6
  initializer "register plugin" do
7
- plugin = ::Spina::Plugin.new
8
- plugin.name = "Restaurant menu"
9
- plugin.config = Restaurantmenus.config
10
- ::Spina.register_plugin(plugin)
7
+ Spina::Plugin.register do |plugin|
8
+ plugin.name = 'restaurant_menus'
9
+ plugin.namespace = 'restaurant_menus'
10
+ end
11
11
  end
12
12
  end
13
13
  end
@@ -1,5 +1,5 @@
1
1
  module Spina
2
2
  module Restaurantmenus
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,37 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spina-restaurantmenus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bram Jetten
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-12 00:00:00.000000000 Z
11
+ date: 2017-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '4.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '4.0'
27
- - !ruby/object:Gem::Dependency
28
- name: sqlite3
14
+ name: spina
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - ">="
32
18
  - !ruby/object:Gem::Version
33
19
  version: '0'
34
- type: :development
20
+ type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
@@ -48,12 +34,14 @@ files:
48
34
  - MIT-LICENSE
49
35
  - README.rdoc
50
36
  - Rakefile
37
+ - app/assets/stylesheets/restaurant_menus/restaurant_menus.css.sass
51
38
  - app/models/spina/restaurant_dish.rb
52
39
  - app/models/spina/restaurant_menu.rb
53
40
  - app/models/spina/restaurant_menu_collection.rb
54
- - app/views/spina/admin/page_partables/_restaurant_menu_collection_form.html.haml
55
- - app/views/spina/admin/pages/_restaurant_dish_fields.html.haml
56
- - app/views/spina/admin/pages/_restaurant_menu_fields.html.haml
41
+ - app/views/spina/admin/hooks/restaurant_menus/_head.html.haml
42
+ - app/views/spina/admin/page_partables/restaurant_menu_collections/_form.html.haml
43
+ - app/views/spina/admin/restaurant_dishes/_fields.html.haml
44
+ - app/views/spina/admin/restaurant_menus/_fields.html.haml
57
45
  - config/routes.rb
58
46
  - db/migrate/20140328143232_create_menu_collections.rb
59
47
  - db/migrate/20140328144349_add_content_to_spina_menu_collections.rb
@@ -120,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
108
  version: '0'
121
109
  requirements: []
122
110
  rubyforge_project:
123
- rubygems_version: 2.4.5.1
111
+ rubygems_version: 2.6.11
124
112
  signing_key:
125
113
  specification_version: 4
126
114
  summary: Reserveringen
@@ -1,16 +0,0 @@
1
- .horizontal-form-label
2
- = restaurant_menu_collection_form.object.title
3
- .horizontal-form-content
4
- = restaurant_menu_collection_form.hidden_field :id
5
- = restaurant_menu_collection_form.hidden_field :title
6
- = restaurant_menu_collection_form.hidden_field :page_partable_type
7
- = restaurant_menu_collection_form.hidden_field :name
8
-
9
- = restaurant_menu_collection_form.fields_for :page_partable, restaurant_menu_collection_form.object.page_partable do |form|
10
-
11
- = form.fields_for :restaurant_menus do |restaurant_menu_builder|
12
- = render 'restaurant_menu_fields', f: restaurant_menu_builder
13
-
14
- = link_to_add_fields form, :restaurant_menus do
15
- %i{data: {icon: 't '}}
16
- Nieuw restaurant menu