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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cf25a923207426595d36f0fa0cb878f030749a4a977c150f7acf3c2fba07cea
4
- data.tar.gz: 04a46d33119f0112cab21d1ed94afad605ae372c4e068a3f9236294715050c8b
3
+ metadata.gz: 632a09e1ca2c5d31cc9bee704ce61dd1af541f311f4c08894dafea61c9fc937f
4
+ data.tar.gz: 115dc1b7748679c85b2643b1abc4e7b1c94adccb45fae159f5eae6b22f21e00b
5
5
  SHA512:
6
- metadata.gz: cf4c8cdd0e65f3db33269338893ec65d448df04ea5ac15f8d38324711709ef10702596f73bd33e941fee451332be21267cf85eec952df133e81f7be380d324f5
7
- data.tar.gz: b3456e259d47c7948e300e6f6ae6beeb33707b855c0481bbceb0576fe4fa983149b189f4f25e509504e2b4c1760db37aa9eb57cab4c75c09bfec35ac3241a5f4
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
- :background,
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: :numeric,
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,
@@ -0,0 +1,6 @@
1
+ ru:
2
+ hints:
3
+ tramway:
4
+ landing:
5
+ block:
6
+ position: "Занятые позиции: %{array}. Блок типа Начальный (Header) должен быть на самой первой позиции. Блок типа Подвал (Footer) должен быть на самой последней"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Landing
5
- VERSION = '1.8.1.2'
5
+ VERSION = '1.8.2'
6
6
  end
7
7
  end
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.1.2
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