kirgudu_refs 0.0.8 → 0.0.9
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 +4 -4
- data/app/controllers/kirgudu_refs/base_controller.rb +14 -0
- data/app/controllers/kirgudu_refs/finances/banks_controller.rb +358 -0
- data/app/controllers/kirgudu_refs/globe/cities_controller.rb +374 -0
- data/app/controllers/kirgudu_refs/globe/continents_controller.rb +100 -0
- data/app/controllers/kirgudu_refs/globe/countries_controller.rb +228 -0
- data/app/controllers/kirgudu_refs/globe/regions_controller.rb +321 -0
- data/app/controllers/kirgudu_refs/globe/states_controller.rb +217 -0
- data/app/controllers/kirgudu_refs/globe/subway_lines_controller.rb +58 -0
- data/app/controllers/kirgudu_refs/globe/subway_stations_controller.rb +117 -0
- data/app/controllers/kirgudu_refs/globe/timezones_controller.rb +102 -0
- data/app/controllers/kirgudu_refs/it/encodings_controller.rb +75 -0
- data/app/controllers/kirgudu_refs/it/hosting_types_controller.rb +64 -0
- data/app/controllers/kirgudu_refs/it/operating_system_families_controller.rb +112 -0
- data/app/controllers/kirgudu_refs/it/operating_systems_controller.rb +145 -0
- data/app/controllers/kirgudu_refs/it/processor_architectures_controller.rb +78 -0
- data/app/controllers/kirgudu_refs/it/top_level_domains_controller.rb +65 -0
- data/app/controllers/kirgudu_refs/it/website_types_controller.rb +63 -0
- data/app/controllers/kirgudu_refs/national/currencies_controller.rb +190 -0
- data/app/controllers/kirgudu_refs/national/languages_controller.rb +109 -0
- data/app/controllers/kirgudu_refs/shops/manufacturers_controller.rb +128 -0
- data/app/models/kirgudu_refs/concerns/models/bank_id.rb +48 -0
- data/app/models/kirgudu_refs/concerns/models/capital_id.rb +36 -0
- data/app/models/kirgudu_refs/concerns/models/city_id.rb +35 -0
- data/app/models/kirgudu_refs/concerns/models/continent_id.rb +37 -0
- data/app/models/kirgudu_refs/concerns/models/country_id.rb +37 -0
- data/app/models/kirgudu_refs/concerns/models/currency_id.rb +51 -0
- data/app/models/kirgudu_refs/concerns/models/encoding_id.rb +26 -0
- data/app/models/kirgudu_refs/concerns/models/language_id.rb +31 -0
- data/app/models/kirgudu_refs/concerns/models/manufacturer_id.rb +23 -0
- data/app/models/kirgudu_refs/concerns/models/operating_system_family_id.rb +23 -0
- data/app/models/kirgudu_refs/concerns/models/operating_system_id.rb +22 -0
- data/app/models/kirgudu_refs/concerns/models/processor_architecture_id.rb +24 -0
- data/app/models/kirgudu_refs/concerns/models/region_id.rb +34 -0
- data/app/models/kirgudu_refs/concerns/models/state_id.rb +33 -0
- data/app/models/kirgudu_refs/concerns/models/territory_area.rb +30 -0
- data/app/models/kirgudu_refs/concerns/models/territory_population.rb +30 -0
- data/app/models/kirgudu_refs/finances/bank.rb +8 -12
- data/app/models/kirgudu_refs/globe/city.rb +13 -29
- data/app/models/kirgudu_refs/globe/continent.rb +6 -15
- data/app/models/kirgudu_refs/globe/country.rb +20 -26
- data/app/models/kirgudu_refs/globe/region.rb +13 -26
- data/app/models/kirgudu_refs/globe/state.rb +12 -21
- data/app/models/kirgudu_refs/globe/subway_line.rb +4 -4
- data/app/models/kirgudu_refs/globe/subway_station.rb +4 -5
- data/app/models/kirgudu_refs/globe/timezone.rb +7 -8
- data/app/models/kirgudu_refs/it/encoding.rb +3 -4
- data/app/models/kirgudu_refs/it/hosting_type.rb +5 -11
- data/app/models/kirgudu_refs/it/operating_system.rb +8 -14
- data/app/models/kirgudu_refs/it/operating_system_family.rb +6 -18
- data/app/models/kirgudu_refs/it/processor_architecture.rb +5 -11
- data/app/models/kirgudu_refs/it/top_level_domain.rb +3 -3
- data/app/models/kirgudu_refs/it/website_type.rb +5 -12
- data/app/models/kirgudu_refs/national/currency.rb +7 -10
- data/app/models/kirgudu_refs/national/language.rb +7 -11
- data/app/models/kirgudu_refs/shops/manufacturer.rb +7 -13
- data/config/locales/kirgudu_refs.en.yml +321 -0
- data/config/locales/kirgudu_refs.ru.yml +321 -0
- metadata +44 -8
- data/app/helpers/kirgudu_refs/application_helper.rb +0 -4
- data/app/helpers/kirgudu_refs/model_basic_properties.rb +0 -261
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d66b2b70511766bc0508d5ad20f105f48ab17f0e
|
|
4
|
+
data.tar.gz: 086e6e52a25c130ef484659fc06acbaa49311c67
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c29cb5f133729e05dc662091dd47795b15712808d001a4396c0439b8a2b1f2a96c67a7df73c3e27471beee5f566a116b57656918c081ee528ee367ce18a3febf
|
|
7
|
+
data.tar.gz: a72adf9a3fa2da7ecdac17877442710e265c688b3224ce698ffdd00fc433a161a981e593ae3ea9ee76f28493e1cdcd58d42b65339d553b99b9a0a4a45400f385
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module KirguduRefs
|
|
2
|
+
class BaseController < ::KirguduBase::ApplicationController
|
|
3
|
+
|
|
4
|
+
before_action :authenticate_user
|
|
5
|
+
|
|
6
|
+
include ::KirguduBase::Controllers::BasicActions::Base::IndexActions
|
|
7
|
+
include ::KirguduBase::Controllers::BasicActions::Base::NewActions
|
|
8
|
+
include ::KirguduBase::Controllers::BasicActions::Base::EditActions
|
|
9
|
+
include ::KirguduBase::Controllers::BasicActions::Base::ShowActions
|
|
10
|
+
include ::KirguduBase::Controllers::BasicActions::Base::DeleteActions
|
|
11
|
+
include ::KirguduBase::Controllers::BasicActions::Base::ItemsManagementActions
|
|
12
|
+
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
module KirguduRefs
|
|
2
|
+
class Finances::BanksController < ::KirguduRefs::BaseController
|
|
3
|
+
|
|
4
|
+
kb_entry_class ::KirguduRefs::Finances::Bank
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
kb_page :index do
|
|
8
|
+
|
|
9
|
+
list :entries_list do
|
|
10
|
+
url_path KirguduRefs::Finances::BanksController, :index
|
|
11
|
+
filters do
|
|
12
|
+
filter :keyword do
|
|
13
|
+
label "#{::KirguduRefs::Finances::BanksController.to_i18n}.filters.labels.keyword"
|
|
14
|
+
visible :false
|
|
15
|
+
end
|
|
16
|
+
filter :name do
|
|
17
|
+
label "#{::KirguduRefs::Finances::BanksController.to_i18n}.filters.labels.name"
|
|
18
|
+
end
|
|
19
|
+
filter :bik do
|
|
20
|
+
label "#{::KirguduRefs::Finances::BanksController.to_i18n}.filters.labels.bik"
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
properties do
|
|
24
|
+
property :short_name
|
|
25
|
+
property :bik
|
|
26
|
+
property :country_id do
|
|
27
|
+
text_value_property :country_name
|
|
28
|
+
end
|
|
29
|
+
property :state_id do
|
|
30
|
+
text_value_property :state_name
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
property :city_id do
|
|
34
|
+
text_value_property :city_name
|
|
35
|
+
end
|
|
36
|
+
property :phone1
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
kb_page :new do
|
|
43
|
+
form :changes do
|
|
44
|
+
http_method :post
|
|
45
|
+
properties do
|
|
46
|
+
property :name
|
|
47
|
+
property :short_name
|
|
48
|
+
property :authorised_capital
|
|
49
|
+
property :foundation_year do
|
|
50
|
+
placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_foundation_year"
|
|
51
|
+
input_type :chosen_select
|
|
52
|
+
data_source do
|
|
53
|
+
type :array
|
|
54
|
+
model (1900..Date.today.year).to_a.reverse.map { |i| [i, i] }
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
property :bik do
|
|
58
|
+
max_length 9
|
|
59
|
+
placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_foundation_year"
|
|
60
|
+
tooltip "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_foundation_year"
|
|
61
|
+
end
|
|
62
|
+
property :ogrn do
|
|
63
|
+
max_length 13
|
|
64
|
+
placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_ogrn"
|
|
65
|
+
tooltip "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_ogrn"
|
|
66
|
+
end
|
|
67
|
+
property :correspondent_account do
|
|
68
|
+
max_length 20
|
|
69
|
+
placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_foundation_year"
|
|
70
|
+
tooltip "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_foundation_year"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
property :registration_number
|
|
74
|
+
property :registered_date do
|
|
75
|
+
input_type :date_picker
|
|
76
|
+
end
|
|
77
|
+
property :telex
|
|
78
|
+
property :swift
|
|
79
|
+
property :country_id do
|
|
80
|
+
placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_country"
|
|
81
|
+
input_type :chosen_select
|
|
82
|
+
text_value_property :country_name
|
|
83
|
+
data_source do
|
|
84
|
+
type :db
|
|
85
|
+
model ::KirguduRefs::Globe::Country
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
events do
|
|
89
|
+
event :change do
|
|
90
|
+
|
|
91
|
+
action :nullify do
|
|
92
|
+
target :state_id
|
|
93
|
+
end
|
|
94
|
+
action :nullify do
|
|
95
|
+
target :city_id
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
kb_if :more, 0 do
|
|
99
|
+
action :enable do
|
|
100
|
+
target :state_id
|
|
101
|
+
end
|
|
102
|
+
action :disable do
|
|
103
|
+
target :city_id
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
action :retrieve do
|
|
107
|
+
target :state_id
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
kb_if :is, "" do
|
|
112
|
+
action :disable do
|
|
113
|
+
target :state_id
|
|
114
|
+
end
|
|
115
|
+
action :disable do
|
|
116
|
+
target :city_id
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
property :state_id do
|
|
124
|
+
parent :country_id
|
|
125
|
+
placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_state"
|
|
126
|
+
input_type :chosen_select
|
|
127
|
+
text_value_property :state_name
|
|
128
|
+
data_source do
|
|
129
|
+
http_method :get
|
|
130
|
+
type :jquery_db
|
|
131
|
+
data_format :json
|
|
132
|
+
model ::KirguduRefs::Globe::State
|
|
133
|
+
url_path ::KirguduRefs::Globe::StatesController, :index
|
|
134
|
+
end
|
|
135
|
+
events do
|
|
136
|
+
event :change do
|
|
137
|
+
action :nullify do
|
|
138
|
+
target :city_id
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
kb_if :more, 0 do
|
|
142
|
+
action :enable do
|
|
143
|
+
target :city_id
|
|
144
|
+
end
|
|
145
|
+
action :retrieve do
|
|
146
|
+
target :city_id
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
kb_if :is, "" do
|
|
150
|
+
action :disable do
|
|
151
|
+
target :city_id
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
property :city_id do
|
|
160
|
+
parent :state_id
|
|
161
|
+
placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_city"
|
|
162
|
+
input_type :chosen_select
|
|
163
|
+
text_value_property :city_name
|
|
164
|
+
data_source do
|
|
165
|
+
http_method :get
|
|
166
|
+
type :jquery_db
|
|
167
|
+
data_format :json
|
|
168
|
+
model ::KirguduRefs::Globe::City
|
|
169
|
+
url_path ::KirguduRefs::Globe::CitiesController, :index
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
property :address_legal
|
|
173
|
+
property :address_actual
|
|
174
|
+
property :phone1
|
|
175
|
+
property :phone2
|
|
176
|
+
property :phone3
|
|
177
|
+
property :phone4
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
kb_page :edit do
|
|
184
|
+
form :changes do
|
|
185
|
+
http_method :patch
|
|
186
|
+
properties do
|
|
187
|
+
property :name
|
|
188
|
+
property :short_name
|
|
189
|
+
property :authorised_capital
|
|
190
|
+
property :foundation_year do
|
|
191
|
+
placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_foundation_year"
|
|
192
|
+
input_type :chosen_select
|
|
193
|
+
data_source do
|
|
194
|
+
type :array
|
|
195
|
+
model (1900..Date.today.year).to_a.reverse.map { |i| [i, i] }
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
property :bik do
|
|
199
|
+
max_length 9
|
|
200
|
+
placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_foundation_year"
|
|
201
|
+
tooltip "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_foundation_year"
|
|
202
|
+
end
|
|
203
|
+
property :ogrn do
|
|
204
|
+
max_length 13
|
|
205
|
+
#placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_foundation_year"
|
|
206
|
+
#tooltip "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_foundation_year"
|
|
207
|
+
end
|
|
208
|
+
property :correspondent_account do
|
|
209
|
+
max_length 20
|
|
210
|
+
placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_foundation_year"
|
|
211
|
+
tooltip "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_foundation_year"
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
property :registration_number
|
|
215
|
+
property :registered_date do
|
|
216
|
+
input_type :date_picker
|
|
217
|
+
end
|
|
218
|
+
property :telex
|
|
219
|
+
property :swift
|
|
220
|
+
property :country_id do
|
|
221
|
+
placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_country"
|
|
222
|
+
input_type :chosen_select
|
|
223
|
+
text_value_property :country_name
|
|
224
|
+
data_source do
|
|
225
|
+
type :db
|
|
226
|
+
model ::KirguduRefs::Globe::Country
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
events do
|
|
230
|
+
event :change do
|
|
231
|
+
|
|
232
|
+
action :nullify do
|
|
233
|
+
target :state_id
|
|
234
|
+
end
|
|
235
|
+
action :nullify do
|
|
236
|
+
target :city_id
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
kb_if :more, 0 do
|
|
240
|
+
action :enable do
|
|
241
|
+
target :state_id
|
|
242
|
+
end
|
|
243
|
+
action :disable do
|
|
244
|
+
target :city_id
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
action :retrieve do
|
|
248
|
+
target :state_id
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
kb_if :is, "" do
|
|
253
|
+
action :disable do
|
|
254
|
+
target :state_id
|
|
255
|
+
end
|
|
256
|
+
action :disable do
|
|
257
|
+
target :city_id
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
property :state_id do
|
|
265
|
+
parent :country_id
|
|
266
|
+
placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_state"
|
|
267
|
+
input_type :chosen_select
|
|
268
|
+
text_value_property :state_name
|
|
269
|
+
data_source do
|
|
270
|
+
http_method :get
|
|
271
|
+
type :jquery_db
|
|
272
|
+
data_format :json
|
|
273
|
+
model ::KirguduRefs::Globe::State
|
|
274
|
+
url_path ::KirguduRefs::Globe::StatesController, :index
|
|
275
|
+
end
|
|
276
|
+
events do
|
|
277
|
+
event :change do
|
|
278
|
+
action :nullify do
|
|
279
|
+
target :city_id
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
kb_if :more, 0 do
|
|
283
|
+
action :enable do
|
|
284
|
+
target :city_id
|
|
285
|
+
end
|
|
286
|
+
action :retrieve do
|
|
287
|
+
target :city_id
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
kb_if :is, "" do
|
|
291
|
+
action :disable do
|
|
292
|
+
target :city_id
|
|
293
|
+
end
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
property :city_id do
|
|
301
|
+
parent :state_id
|
|
302
|
+
placeholder "#{::KirguduRefs::Finances::BanksController.to_i18n}.labels.choose_city"
|
|
303
|
+
input_type :chosen_select
|
|
304
|
+
text_value_property :city_name
|
|
305
|
+
data_source do
|
|
306
|
+
http_method :get
|
|
307
|
+
type :jquery_db
|
|
308
|
+
data_format :json
|
|
309
|
+
model ::KirguduRefs::Globe::City
|
|
310
|
+
url_path ::KirguduRefs::Globe::CitiesController, :index
|
|
311
|
+
end
|
|
312
|
+
end
|
|
313
|
+
property :address_legal
|
|
314
|
+
property :address_actual
|
|
315
|
+
property :phone1
|
|
316
|
+
property :phone2
|
|
317
|
+
property :phone3
|
|
318
|
+
property :phone4
|
|
319
|
+
end
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
kb_page :show do
|
|
325
|
+
entry :show do
|
|
326
|
+
http_method :patch
|
|
327
|
+
properties do
|
|
328
|
+
property :name
|
|
329
|
+
property :short_name
|
|
330
|
+
property :authorised_capital
|
|
331
|
+
property :foundation_year
|
|
332
|
+
property :bik
|
|
333
|
+
property :ogrn
|
|
334
|
+
property :correspondent_account
|
|
335
|
+
property :registration_number
|
|
336
|
+
property :registered_date
|
|
337
|
+
property :telex
|
|
338
|
+
property :swift
|
|
339
|
+
property :country_id do
|
|
340
|
+
text_value_property :country_name
|
|
341
|
+
end
|
|
342
|
+
property :state_id do
|
|
343
|
+
text_value_property :state_name
|
|
344
|
+
end
|
|
345
|
+
property :city_id do
|
|
346
|
+
text_value_property :city_name
|
|
347
|
+
end
|
|
348
|
+
property :address_legal
|
|
349
|
+
property :address_actual
|
|
350
|
+
property :phone1
|
|
351
|
+
property :phone2
|
|
352
|
+
property :phone3
|
|
353
|
+
property :phone4
|
|
354
|
+
end
|
|
355
|
+
end
|
|
356
|
+
end
|
|
357
|
+
end
|
|
358
|
+
end
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
|
2
|
+
module KirguduRefs
|
|
3
|
+
class Globe::CitiesController < ::KirguduRefs::BaseController
|
|
4
|
+
|
|
5
|
+
kb_entry_class ::KirguduRefs::Globe::City
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
kb_page :index do
|
|
9
|
+
list :entries_list do
|
|
10
|
+
filters do
|
|
11
|
+
filter :country_id do
|
|
12
|
+
label "#{::KirguduRefs::Globe::CitiesController.to_i18n}.filters.labels.country_id"
|
|
13
|
+
placeholder "#{::KirguduRefs::Globe::CitiesController.to_i18n}.filters.placeholders.choose_country"
|
|
14
|
+
input_type :chosen_select
|
|
15
|
+
text_value_property :country_name
|
|
16
|
+
data_source do
|
|
17
|
+
type :db
|
|
18
|
+
model ::KirguduRefs::Globe::Country
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
filter :state_id do
|
|
22
|
+
parent :country_id
|
|
23
|
+
label "#{::KirguduRefs::Globe::CitiesController.to_i18n}.filters.labels.state_id"
|
|
24
|
+
placeholder "#{::KirguduRefs::Globe::CitiesController.to_i18n}.filters.placeholders.choose_state"
|
|
25
|
+
input_type :chosen_select
|
|
26
|
+
text_value_property :state_name
|
|
27
|
+
data_source do
|
|
28
|
+
http_method :get
|
|
29
|
+
type :jquery
|
|
30
|
+
model ::KirguduRefs::Globe::State
|
|
31
|
+
url_path ::KirguduRefs::Globe::StatesController, :index
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
filter :region_id do
|
|
35
|
+
parent :state_id
|
|
36
|
+
label "#{::KirguduRefs::Globe::CitiesController.to_i18n}.filters.labels.region_id"
|
|
37
|
+
placeholder "#{::KirguduRefs::Globe::CitiesController.to_i18n}.filters.placeholders.choose_region"
|
|
38
|
+
input_type :chosen_select
|
|
39
|
+
text_value_property :region_name
|
|
40
|
+
data_source do
|
|
41
|
+
http_method :get
|
|
42
|
+
type :jquery
|
|
43
|
+
model ::KirguduRefs::Globe::Region
|
|
44
|
+
url_path ::KirguduRefs::Globe::RegionsController, :index
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
filter :name do
|
|
50
|
+
label "#{::KirguduRefs::Globe::CitiesController.to_i18n}.filters.labels.name"
|
|
51
|
+
end
|
|
52
|
+
filter :slug do
|
|
53
|
+
label "#{::KirguduRefs::Globe::CitiesController.to_i18n}.filters.labels.slug"
|
|
54
|
+
end
|
|
55
|
+
filter :area_min do
|
|
56
|
+
label "#{::KirguduRefs::Globe::CitiesController.to_i18n}.filters.labels.area_min"
|
|
57
|
+
end
|
|
58
|
+
filter :area_max do
|
|
59
|
+
label "#{::KirguduRefs::Globe::CitiesController.to_i18n}.filters.labels.area_max"
|
|
60
|
+
end
|
|
61
|
+
filter :population_min do
|
|
62
|
+
label "#{::KirguduRefs::Globe::CitiesController.to_i18n}.filters.labels.population_min"
|
|
63
|
+
end
|
|
64
|
+
filter :population_max do
|
|
65
|
+
label "#{::KirguduRefs::Globe::CitiesController.to_i18n}.filters.labels.population_max"
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
properties do
|
|
69
|
+
property :country_id do
|
|
70
|
+
text_value_property :country_name
|
|
71
|
+
end
|
|
72
|
+
property :state_id do
|
|
73
|
+
text_value_property :state_name
|
|
74
|
+
end
|
|
75
|
+
property :region_id do
|
|
76
|
+
text_value_property :region_name
|
|
77
|
+
end
|
|
78
|
+
property :name
|
|
79
|
+
property :slug
|
|
80
|
+
property :area
|
|
81
|
+
property :population
|
|
82
|
+
property :is_active do
|
|
83
|
+
text_value_property :is_active_label
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
kb_page :new do
|
|
90
|
+
form :changes do
|
|
91
|
+
http_method :post
|
|
92
|
+
properties do
|
|
93
|
+
property :country_id do
|
|
94
|
+
placeholder "#{::KirguduRefs::Globe::CitiesController.to_i18n}.labels.choose_country"
|
|
95
|
+
input_type :chosen_select
|
|
96
|
+
text_value_property :country_name
|
|
97
|
+
data_source do
|
|
98
|
+
type :db
|
|
99
|
+
model ::KirguduRefs::Globe::Country
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
events do
|
|
103
|
+
event :change do
|
|
104
|
+
|
|
105
|
+
action :nullify do
|
|
106
|
+
target :state_id
|
|
107
|
+
end
|
|
108
|
+
action :nullify do
|
|
109
|
+
target :region_id
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
kb_if :more, 0 do
|
|
113
|
+
action :enable do
|
|
114
|
+
target :state_id
|
|
115
|
+
end
|
|
116
|
+
action :disable do
|
|
117
|
+
target :region_id
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
action :retrieve do
|
|
121
|
+
target :state_id
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
kb_if :is, "" do
|
|
126
|
+
action :disable do
|
|
127
|
+
target :state_id
|
|
128
|
+
end
|
|
129
|
+
action :disable do
|
|
130
|
+
target :region_id
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
property :state_id do
|
|
138
|
+
parent :country_id
|
|
139
|
+
placeholder "#{::KirguduRefs::Globe::CitiesController.to_i18n}.labels.choose_state"
|
|
140
|
+
input_type :chosen_select
|
|
141
|
+
text_value_property :state_name
|
|
142
|
+
data_source do
|
|
143
|
+
http_method :get
|
|
144
|
+
type :jquery_db
|
|
145
|
+
data_format :json
|
|
146
|
+
model ::KirguduRefs::Globe::State
|
|
147
|
+
url_path ::KirguduRefs::Globe::StatesController, :index
|
|
148
|
+
end
|
|
149
|
+
events do
|
|
150
|
+
event :change do
|
|
151
|
+
action :nullify do
|
|
152
|
+
target :region_id
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
kb_if :more, 0 do
|
|
156
|
+
action :enable do
|
|
157
|
+
target :region_id
|
|
158
|
+
end
|
|
159
|
+
action :retrieve do
|
|
160
|
+
target :region_id
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
kb_if :is, "" do
|
|
164
|
+
action :disable do
|
|
165
|
+
target :region_id
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
property :region_id do
|
|
174
|
+
parent :state_id
|
|
175
|
+
placeholder "#{::KirguduRefs::Globe::CitiesController.to_i18n}.labels.choose_region"
|
|
176
|
+
input_type :chosen_select
|
|
177
|
+
text_value_property :region_name
|
|
178
|
+
data_source do
|
|
179
|
+
http_method :get
|
|
180
|
+
type :jquery_db
|
|
181
|
+
data_format :json
|
|
182
|
+
model ::KirguduRefs::Globe::Region
|
|
183
|
+
url_path ::KirguduRefs::Globe::RegionsController, :index
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
property :name
|
|
187
|
+
property :slug
|
|
188
|
+
|
|
189
|
+
property :area
|
|
190
|
+
property :population
|
|
191
|
+
property :phone_code
|
|
192
|
+
|
|
193
|
+
property :coordinates do
|
|
194
|
+
input_type :text_area
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
property :meta_keywords do
|
|
198
|
+
input_type :text_area
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
property :meta_description do
|
|
202
|
+
input_type :text_area
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
property :image_id do
|
|
206
|
+
input_type :image_selector
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
property :description do
|
|
210
|
+
input_type :text_area
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
kb_page :edit do
|
|
218
|
+
form :changes do
|
|
219
|
+
http_method :patch
|
|
220
|
+
properties do
|
|
221
|
+
property :country_id do
|
|
222
|
+
placeholder "#{::KirguduRefs::Globe::CitiesController.to_i18n}.labels.choose_country"
|
|
223
|
+
input_type :chosen_select
|
|
224
|
+
text_value_property :country_name
|
|
225
|
+
data_source do
|
|
226
|
+
type :db
|
|
227
|
+
model ::KirguduRefs::Globe::Country
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
events do
|
|
231
|
+
event :change do
|
|
232
|
+
|
|
233
|
+
action :nullify do
|
|
234
|
+
target :state_id
|
|
235
|
+
end
|
|
236
|
+
action :nullify do
|
|
237
|
+
target :region_id
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
kb_if :more, 0 do
|
|
241
|
+
action :enable do
|
|
242
|
+
target :state_id
|
|
243
|
+
end
|
|
244
|
+
action :disable do
|
|
245
|
+
target :region_id
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
action :retrieve do
|
|
249
|
+
target :state_id
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
kb_if :is, "" do
|
|
254
|
+
action :disable do
|
|
255
|
+
target :state_id
|
|
256
|
+
end
|
|
257
|
+
action :disable do
|
|
258
|
+
target :region_id
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
property :state_id do
|
|
266
|
+
parent :country_id
|
|
267
|
+
placeholder "#{::KirguduRefs::Globe::CitiesController.to_i18n}.labels.choose_state"
|
|
268
|
+
input_type :chosen_select
|
|
269
|
+
text_value_property :state_name
|
|
270
|
+
data_source do
|
|
271
|
+
http_method :get
|
|
272
|
+
type :jquery_db
|
|
273
|
+
data_format :json
|
|
274
|
+
model ::KirguduRefs::Globe::State
|
|
275
|
+
url_path ::KirguduRefs::Globe::StatesController, :index
|
|
276
|
+
end
|
|
277
|
+
events do
|
|
278
|
+
event :change do
|
|
279
|
+
action :nullify do
|
|
280
|
+
target :region_id
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
kb_if :more, 0 do
|
|
284
|
+
action :enable do
|
|
285
|
+
target :region_id
|
|
286
|
+
end
|
|
287
|
+
action :retrieve do
|
|
288
|
+
target :region_id
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
kb_if :is, "" do
|
|
292
|
+
action :disable do
|
|
293
|
+
target :region_id
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
property :region_id do
|
|
302
|
+
parent :state_id
|
|
303
|
+
placeholder "#{::KirguduRefs::Globe::CitiesController.to_i18n}.labels.choose_region"
|
|
304
|
+
input_type :chosen_select
|
|
305
|
+
text_value_property :region_name
|
|
306
|
+
data_source do
|
|
307
|
+
http_method :get
|
|
308
|
+
type :jquery_db
|
|
309
|
+
data_format :json
|
|
310
|
+
model ::KirguduRefs::Globe::Region
|
|
311
|
+
url_path ::KirguduRefs::Globe::RegionsController, :index
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
property :name
|
|
315
|
+
property :slug
|
|
316
|
+
|
|
317
|
+
property :area
|
|
318
|
+
property :population
|
|
319
|
+
property :phone_code
|
|
320
|
+
|
|
321
|
+
property :coordinates do
|
|
322
|
+
input_type :text_area
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
property :meta_keywords do
|
|
326
|
+
input_type :text_area
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
property :meta_description do
|
|
330
|
+
input_type :text_area
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
property :image_id do
|
|
334
|
+
input_type :image_selector
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
property :description do
|
|
338
|
+
input_type :text_area
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
kb_page :show do
|
|
346
|
+
entry :show do
|
|
347
|
+
properties do
|
|
348
|
+
property :country_id do
|
|
349
|
+
text_value_property :country_name
|
|
350
|
+
end
|
|
351
|
+
property :state_id do
|
|
352
|
+
text_value_property :state_name
|
|
353
|
+
end
|
|
354
|
+
property :region_id do
|
|
355
|
+
text_value_property :region_name
|
|
356
|
+
end
|
|
357
|
+
property :name
|
|
358
|
+
property :slug
|
|
359
|
+
property :area
|
|
360
|
+
property :population
|
|
361
|
+
property :phone_code
|
|
362
|
+
property :coordinates
|
|
363
|
+
property :meta_keywords
|
|
364
|
+
property :meta_description
|
|
365
|
+
property :image_id
|
|
366
|
+
property :description
|
|
367
|
+
property :is_active do
|
|
368
|
+
text_value_property :is_active_label
|
|
369
|
+
end
|
|
370
|
+
end
|
|
371
|
+
end
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
end
|