tramway-landing 1.8.1.2 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/forms/tramway/landing/block_form.rb +8 -14
- data/config/locales/forms.yml +6 -0
- data/lib/tramway/landing/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 632a09e1ca2c5d31cc9bee704ce61dd1af541f311f4c08894dafea61c9fc937f
|
4
|
+
data.tar.gz: 115dc1b7748679c85b2643b1abc4e7b1c94adccb45fae159f5eae6b22f21e00b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4c3bab9b197ce665d9f6c430eb94e7b03817cfcd20e7d0da6e1db6167484377b5d1a1c9685548730c9f67704bd1798cf273adb807e099f074cf733cf808d1a8
|
7
|
+
data.tar.gz: 30204fef032d97fe6ddf0a7a042ea84c2959e7a044b7b1d8566822be19f0630ea7ec861d07b5f0104be463ca0df14ca5654983edf2704132a1edb4da0d639f45
|
@@ -1,25 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class Tramway::Landing::BlockForm < ::Tramway::Core::ExtendedApplicationForm
|
4
|
-
properties :title,
|
5
|
-
:
|
6
|
-
:view_state,
|
7
|
-
:block_type,
|
8
|
-
:position,
|
9
|
-
:navbar_link,
|
10
|
-
:anchor,
|
11
|
-
:description,
|
12
|
-
:link_object_type,
|
13
|
-
:link_object_id,
|
14
|
-
:button_title,
|
15
|
-
:button_link,
|
16
|
-
:view_name
|
4
|
+
properties :title, :background, :view_state, :block_type, :position, :navbar_link, :anchor, :description,
|
5
|
+
:link_object_type, :link_object_id, :button_title, :button_link, :view_name
|
17
6
|
|
18
7
|
def initialize(object = nil)
|
19
8
|
super(object).tap do
|
20
9
|
form_properties title: :string,
|
21
10
|
background: :file,
|
22
|
-
position:
|
11
|
+
position: {
|
12
|
+
type: :numeric,
|
13
|
+
input_options: {
|
14
|
+
hint: I18n.t('hints.tramway.landing.block.position', array: ::Tramway::Landing::Block.active.on_main_page.map(&:position).join(','))
|
15
|
+
},
|
16
|
+
},
|
23
17
|
block_type: :default,
|
24
18
|
navbar_link: :default,
|
25
19
|
anchor: :string,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-landing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
@@ -60,6 +60,7 @@ files:
|
|
60
60
|
- app/views/tramway/landing/blocks/templates/_text.html.haml
|
61
61
|
- config/initializers/assets.rb
|
62
62
|
- config/initializers/tramway.rb
|
63
|
+
- config/locales/forms.yml
|
63
64
|
- config/locales/models.yml
|
64
65
|
- config/locales/state_machines.yml
|
65
66
|
- config/routes.rb
|