sunrise-cms 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/README.md +14 -2
- data/app/assets/stylesheets/sunrise/main.css +4 -4
- data/app/controllers/sunrise/manager_controller.rb +1 -0
- data/app/views/sunrise/manager/_field.html.erb +1 -1
- data/app/views/sunrise/manager/_nested_field.html.erb +1 -1
- data/lib/sunrise/config/field.rb +1 -3
- data/lib/sunrise/version.rb +1 -1
- data/spec/dummy/log/test.log +4210 -0
- data/spec/requests/manager/default/new_spec.rb +11 -0
- metadata +2 -70
- data/spec/tmp/app/models/defaults/ability.rb +0 -18
- data/spec/tmp/app/models/defaults/asset.rb +0 -7
- data/spec/tmp/app/models/defaults/attachment_file.rb +0 -5
- data/spec/tmp/app/models/defaults/avatar.rb +0 -7
- data/spec/tmp/app/models/defaults/picture.rb +0 -7
- data/spec/tmp/app/models/defaults/position_type.rb +0 -7
- data/spec/tmp/app/models/defaults/role_type.rb +0 -8
- data/spec/tmp/app/models/defaults/settings.rb +0 -6
- data/spec/tmp/app/models/defaults/structure.rb +0 -10
- data/spec/tmp/app/models/defaults/structure_type.rb +0 -9
- data/spec/tmp/app/models/defaults/user.rb +0 -14
- data/spec/tmp/app/models/sunrise/sunrise_navigation.rb +0 -14
- data/spec/tmp/app/models/sunrise/sunrise_page.rb +0 -10
- data/spec/tmp/app/models/sunrise/sunrise_structure.rb +0 -35
- data/spec/tmp/app/models/sunrise/sunrise_user.rb +0 -50
- data/spec/tmp/app/uploaders/attachment_file_uploader.rb +0 -5
- data/spec/tmp/app/uploaders/avatar_uploader.rb +0 -15
- data/spec/tmp/app/uploaders/picture_uploader.rb +0 -15
- data/spec/tmp/app/views/layouts/application.html.erb +0 -22
- data/spec/tmp/app/views/pages/show.html.erb +0 -2
- data/spec/tmp/app/views/shared/_notice.html.erb +0 -17
- data/spec/tmp/config/application.rb +0 -63
- data/spec/tmp/config/database.yml.sample +0 -34
- data/spec/tmp/config/initializers/sunrise.rb +0 -51
- data/spec/tmp/config/logrotate-config.sample +0 -9
- data/spec/tmp/config/nginx-config.sample +0 -67
- data/spec/tmp/config/routes.rb +0 -10
- data/spec/tmp/db/seeds.rb +0 -30
- data/spec/tmp/spec/controllers/pages_controller_spec.rb +0 -22
- data/spec/tmp/spec/controllers/welcome_controller_spec.rb +0 -18
- data/spec/tmp/spec/factories/structure_factory.rb +0 -22
- data/spec/tmp/spec/factories/user_factory.rb +0 -61
- data/spec/tmp/spec/spec_helper.rb +0 -37
- data/spec/tmp/spec/support/helpers/controller_macros.rb +0 -52
data/CHANGELOG.rdoc
CHANGED
data/README.md
CHANGED
@@ -50,6 +50,18 @@ class SunriseProduct < Sunrise::AbstractModel
|
|
50
50
|
field :price
|
51
51
|
field :total_stock
|
52
52
|
end
|
53
|
+
|
54
|
+
list :export do
|
55
|
+
scope { Product.includes(:picture).recently.with_state(:finished) }
|
56
|
+
|
57
|
+
field :id
|
58
|
+
field :product_title
|
59
|
+
field :size
|
60
|
+
field :started_at
|
61
|
+
field :finished_at
|
62
|
+
field :unique_accounts_count
|
63
|
+
field :total_points
|
64
|
+
end
|
53
65
|
|
54
66
|
show do
|
55
67
|
field :title
|
@@ -72,9 +84,9 @@ class SunriseProduct < Sunrise::AbstractModel
|
|
72
84
|
end
|
73
85
|
|
74
86
|
group :bottom, :holder => :bottom do
|
75
|
-
nested_attributes :variants do
|
87
|
+
nested_attributes :variants, :multiply => true do
|
76
88
|
field :size
|
77
|
-
field :total_stock, :
|
89
|
+
field :total_stock, :html => { :style => 'width:100%;clear:both;' }
|
78
90
|
field :item_model_id, :collection => lambda { ItemModel.all }, :include_blank => false
|
79
91
|
end
|
80
92
|
|
@@ -731,9 +731,9 @@ input[disabled].button.gray {
|
|
731
731
|
}
|
732
732
|
|
733
733
|
a.close-but {
|
734
|
-
width:
|
735
|
-
height:
|
736
|
-
|
734
|
+
width: 9px;
|
735
|
+
height: 9px;
|
736
|
+
background: url(/assets/sunrise/chosen-sprite.png) no-repeat -43px 0px;
|
737
737
|
display: block;
|
738
738
|
position: absolute;
|
739
739
|
top: 12px;
|
@@ -741,7 +741,7 @@ a.close-but {
|
|
741
741
|
}
|
742
742
|
|
743
743
|
a.close-but:hover {
|
744
|
-
background-position: -
|
744
|
+
background-position: -43px -11px;
|
745
745
|
}
|
746
746
|
|
747
747
|
.dnd-area {
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<div class="nested_item">
|
2
|
-
<%= manage_remove_child_link
|
2
|
+
<%= manage_remove_child_link('', form, :class => "close-but") if field.multiply? %>
|
3
3
|
<%= render :partial => 'field', :collection => field.fields, :locals => {:form => form} %>
|
4
4
|
</div>
|
data/lib/sunrise/config/field.rb
CHANGED
@@ -36,9 +36,7 @@ module Sunrise
|
|
36
36
|
css << "grey-but" if input_options[:boolean]
|
37
37
|
css << "tags-edit" if association?
|
38
38
|
|
39
|
-
|
40
|
-
opts.merge!({ :style => input_options[:div_style] }) if input_options[:div_style]
|
41
|
-
opts
|
39
|
+
{:class => css}.merge(input_options[:html] || {})
|
42
40
|
end
|
43
41
|
|
44
42
|
def association?
|
data/lib/sunrise/version.rb
CHANGED