Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,16 @@ import '@fortawesome/fontawesome-free/css/fontawesome.css';
import '@fortawesome/fontawesome-free/css/solid.css';
```

If you are using Webpack, you can add the following lines to your admin configuration:
If you are using Webpack, you can add the following lines to your admin configuration:
```js
// ./webpack.config.js
//...
Encore.addLoader({
resolve: {
alias: {
'./acb-notification.js$': path.resolve(__dirname, 'vendor/sherlockode/sylius-advanced-content-plugin/src/Resources/js/AdvancedContentBundle/acb-notification.js')
'./acb-notification.js$': path.resolve(__dirname, 'vendor/sherlockode/sylius-advanced-content-plugin/src/Resources/js/AdvancedContentBundle/acb-notification.js'),
'./acb-slide.js$': path.resolve(__dirname, 'vendor/sherlockode/advanced-content-bundle/Resources/js/slide.js'),
'./acb-slide-collection.js$': path.resolve(__dirname, 'vendor/sherlockode/sylius-advanced-content-plugin/src/Resources/js/AdvancedContentBundle/acb-slide-collection.js')
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "MIT",
"require": {
"php": "^7.4 || ^8.1",
"sherlockode/advanced-content-bundle": "^0.9.2",
"sherlockode/advanced-content-bundle": "^0.9.7",
"sylius/sylius": "^1.10"
},
"config": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import slide from './acb-slide.js';
import 'sylius/bundle/UiBundle/Resources/private/js/sylius-form-collection';

slide.element.on('slideContentUpdated', function() {
slide.content.find('[data-form-type="collection"]').CollectionForm();
});
21 changes: 21 additions & 0 deletions src/Resources/public/css/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,24 @@ $zindex: 999;
.acb-lateral-slide-content .field details select {
box-sizing: border-box;
}
.picture-sources {
> label::after {
content: '' !important;
}
[data-form-collection="list"] {
[data-form-collection="item"] {
+ [data-form-collection="item"] {
border-top: 1px solid #e5e5e5;
margin-top: 10px;
padding-top: 15px;
}
&:last-child {
border-bottom: 1px solid #e5e5e5;
margin-bottom: 15px;
}
.picture-source {
margin-bottom: 10px;
}
}
}
}