bhf 0.4.10 → 0.4.11
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/bhf/entries_controller.rb +0 -1
- data/app/views/bhf/entries/form/column/_mappin.haml +3 -4
- data/app/views/bhf/entries/form/column/_multiple_fields.haml +1 -1
- data/vendor/assets/javascripts/bhf/application.js +1 -1
- data/vendor/assets/stylesheets/bhf/application.css.sass +40 -37
- metadata +13 -13
@@ -35,7 +35,6 @@ class Bhf::EntriesController < Bhf::ApplicationController
|
|
35
35
|
if @quick_edit
|
36
36
|
render json: object_to_bhf_display_hash, status: :ok
|
37
37
|
else
|
38
|
-
redirect_to params[:link_back] and return if params[:link_back]
|
39
38
|
redirect_back_or_default(bhf_entry_path(@platform.name, @object), notice: set_message('update.success', @model))
|
40
39
|
end
|
41
40
|
else
|
@@ -1,5 +1,4 @@
|
|
1
1
|
= node f, field do
|
2
|
-
.
|
3
|
-
|
4
|
-
|
5
|
-
= javascript_include_tag 'http://maps.googleapis.com/maps/api/js?sensor=false'
|
2
|
+
= f.hidden_field :lat, :'data-default-lat' => 42.6259285, class: 'map_data_lat'
|
3
|
+
= f.hidden_field :lng, :'data-default-lng' => -70.6519888, class: 'map_data_lng'
|
4
|
+
= javascript_include_tag 'http://maps.googleapis.com/maps/api/js?sensor=false'
|
@@ -1,2 +1,2 @@
|
|
1
1
|
= node f, field do
|
2
|
-
= f.text_field field.name, class: '
|
2
|
+
= f.text_field field.name, class: 'multiple_field', :'data-spliter' => (f.object.send("#{field.name}_spliter") if f.object.respond_to?(:"#{field.name}_spliter"))
|
@@ -19,7 +19,7 @@ window.addEvent('domready', function(){
|
|
19
19
|
wysiwyg.push(elem.mooEditable());
|
20
20
|
});
|
21
21
|
|
22
|
-
scope.getElements('.
|
22
|
+
scope.getElements('.multiple_field').each(function(elem){
|
23
23
|
new MultipleFields(elem);
|
24
24
|
});
|
25
25
|
scope.getElements('.array_holder').each(function(elem){
|
@@ -167,13 +167,6 @@ header
|
|
167
167
|
|
168
168
|
|
169
169
|
> button
|
170
|
-
//
|
171
|
-
&.save,
|
172
|
-
&.save_and_next
|
173
|
-
margin-left: -6px
|
174
|
-
padding: 6px 25px
|
175
|
-
font-size: 13px
|
176
|
-
|
177
170
|
&.cancel,
|
178
171
|
&.open
|
179
172
|
float: right
|
@@ -368,8 +361,12 @@ table.data_table
|
|
368
361
|
background: #FFF
|
369
362
|
+border-radius(2)
|
370
363
|
+box-shadow(0, 1, 0, #FFFFFF)
|
371
|
-
padding:
|
364
|
+
padding: 2px 5px 2px 5px
|
372
365
|
width: 300px
|
366
|
+
+box-model
|
367
|
+
min-height: 32px
|
368
|
+
margin: 0
|
369
|
+
margin-bottom: 4px
|
373
370
|
&:focus
|
374
371
|
outline: 0
|
375
372
|
+transition-duration(1)
|
@@ -385,33 +382,37 @@ table.data_table
|
|
385
382
|
form
|
386
383
|
.node
|
387
384
|
display: table-row
|
388
|
-
&.
|
389
|
-
&.number,
|
390
|
-
&.text,
|
391
|
-
&.password
|
392
|
-
.input,
|
393
|
-
.label
|
394
|
-
padding-top: 0
|
385
|
+
&.primary_key
|
395
386
|
.label
|
396
|
-
|
397
|
-
|
387
|
+
text-transform: uppercase
|
388
|
+
&.static
|
389
|
+
.input
|
390
|
+
padding-top: 5px
|
391
|
+
//
|
392
|
+
&.string,
|
393
|
+
&.number,
|
394
|
+
&.text,
|
395
|
+
&.password
|
396
|
+
.input,
|
397
|
+
.label
|
398
|
+
padding-top: 0
|
399
|
+
.label
|
400
|
+
label
|
401
|
+
padding-top: 5px
|
402
|
+
.input,
|
403
|
+
.label
|
404
|
+
display: table-cell
|
405
|
+
vertical-align: top
|
398
406
|
.label
|
407
|
+
width: 200px
|
408
|
+
padding-top: 5px
|
399
409
|
p,
|
400
410
|
label
|
401
411
|
display: block
|
402
412
|
color: $g3
|
403
413
|
+text-shadow(#fff)
|
404
|
-
width: 200px
|
405
414
|
.field_with_errors
|
406
415
|
color: red
|
407
|
-
&.primary_key
|
408
|
-
.label
|
409
|
-
text-transform: uppercase
|
410
|
-
.input,
|
411
|
-
.label
|
412
|
-
padding-top: 5px
|
413
|
-
vertical-align: top
|
414
|
-
display: table-cell
|
415
416
|
.input
|
416
417
|
input[type="password"],
|
417
418
|
input[type="text"],
|
@@ -439,13 +440,18 @@ form
|
|
439
440
|
textarea,
|
440
441
|
.uploaded_image,
|
441
442
|
.uploaded_file,
|
442
|
-
.mooeditable-container
|
443
|
+
.mooeditable-container,
|
444
|
+
.wmd-button-row,
|
445
|
+
.map_canvas
|
443
446
|
margin-left: -6px
|
444
447
|
input[type="file"]
|
445
448
|
margin-left: -5px
|
446
449
|
select
|
447
450
|
font-size: 16px
|
448
|
-
|
451
|
+
margin-top: 5px
|
452
|
+
input[type="checkbox"]
|
453
|
+
margin-top: 9px
|
454
|
+
.multiple_field,
|
449
455
|
.array_fields
|
450
456
|
display: block
|
451
457
|
.add_field
|
@@ -468,12 +474,6 @@ form
|
|
468
474
|
max-height: 200px
|
469
475
|
margin-bottom: 5px
|
470
476
|
display: block
|
471
|
-
.warning
|
472
|
-
font-weight: bold
|
473
|
-
.quick_edit
|
474
|
-
text-decoration: underline
|
475
|
-
color: $b2
|
476
|
-
|
477
477
|
.uploaded_file
|
478
478
|
padding: 7px 5px 8px 7px
|
479
479
|
background: #999
|
@@ -481,6 +481,11 @@ form
|
|
481
481
|
&:hover
|
482
482
|
background: #fff
|
483
483
|
color: $b1
|
484
|
+
.warning
|
485
|
+
font-weight: bold
|
486
|
+
.quick_edit
|
487
|
+
text-decoration: underline
|
488
|
+
color: $b2
|
484
489
|
.relation
|
485
490
|
li
|
486
491
|
&:hover
|
@@ -664,10 +669,9 @@ input[type="submit"].alt_button,
|
|
664
669
|
display: none
|
665
670
|
|
666
671
|
|
667
|
-
.
|
672
|
+
.mappin
|
668
673
|
.map_canvas
|
669
674
|
@extend .default_input
|
670
|
-
margin-left: -6px
|
671
675
|
height: 350px
|
672
676
|
width: 500px
|
673
677
|
|
@@ -942,7 +946,6 @@ input[type="submit"].alt_button,
|
|
942
946
|
background: $w1
|
943
947
|
padding: 6px 5px 1px 5px
|
944
948
|
@extend .default_input
|
945
|
-
margin-left: -6px
|
946
949
|
margin-bottom: 5px
|
947
950
|
#main .wmd_editor
|
948
951
|
height: 400px
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bhf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,18 +13,18 @@ date: 2012-02-27 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70357109306300 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.
|
21
|
+
version: 3.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70357109306300
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: kaminari
|
27
|
-
requirement: &
|
27
|
+
requirement: &70357109228880 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.12.4
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70357109228880
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: haml-rails
|
38
|
-
requirement: &
|
38
|
+
requirement: &70357109227660 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.3.4
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70357109227660
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sass-rails
|
49
|
-
requirement: &
|
49
|
+
requirement: &70357109226440 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,18 +54,18 @@ dependencies:
|
|
54
54
|
version: 3.1.4
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70357109226440
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: mootools-rails
|
60
|
-
requirement: &
|
60
|
+
requirement: &70357109225240 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
65
|
+
version: 1.0.1
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70357109225240
|
69
69
|
description: Gets you there on time
|
70
70
|
email: anton.pawlik@gmail.com
|
71
71
|
executables: []
|