Comments (4)
Hey guys, also some buttons are not visible on admin ui. For example, Show order button on orders page is not visible because it's taking bootstrap classes:
from bootstraptheme.
Hey guys, just wanted to share that I fixed this by ra-naming the form theme file to
sylius-store/themes/bootstrap/SyliusShopBundle/views/Form/bootstrapTheme.html.twig
so I don't override the default form theme file.
Then extended all of the theme forms from it
{% form_theme form '@SyliusShop/Form/bootstrapTheme.html.twig' %}
instead of
{% form_theme form '@SyliusShop/Form/theme.html.twig' %}
For more specific cases like Show button on orders grid page in the shop, I had to create a new grid action "bootstrapShow":
sylius_grid: grids: sylius_shop_account_order: actions: item: show: type: bootstrapShow templates: action: bootstrapShow: "@SyliusUi/Grid/Action/bootstrapShow.html.twig"
Then in bootstrapShow.html.twig:
{% set path = options.link.url|default(path(options.link.route|default(grid.requestConfiguration.getRouteName('show')), options.link.parameters|default({'id': data.id}))) %} <a href="{{ path }}" class="btn btn-primary">{{ action.label|trans }}</a>
And last case I could notice until now, is the search bar in products list page. I created a custom botstrapString template to override the one from SyliusUIBundle:
sylius_grid: grids: sylius_shop_product: filters: search: template: "@SyliusUi/Grid/Filter/bootstrapString.html.twig"
The content of bootstrapString.html.twig:
{% form_theme form '@SyliusShop/Form/bootstrapTheme.html.twig' %} {% if form.type is defined %} {{ form_row(form.type, {'label': filter.label}) }} {% endif %} {{ form_row(form.value, {'label': form.type is defined ? form.value.vars.label : filter.label}) }}
from bootstraptheme.
thanks, I'll check it
from bootstraptheme.
Do I hear PR? 😃
from bootstraptheme.
Related Issues (20)
- Variant selection doesn't change original price
- Sylius 1.11 compatibility ? HOT 2
- Sylius 1.11.7 compatibility - as a composer dependency (with child theme) HOT 2
- Sylius 1.11.7 compatibility - in themes folder HOT 2
- Sylius 1.12 compatibility HOT 3
- Render is not same screenshot HOT 4
- Update docs
- Issue in AddressBook/index.html.twig template HOT 1
- [bootstrap-native] bootstrap-native is not exported HOT 2
- Add builds/CI HOT 10
- error in ./themes/BootstrapTheme/assets/scss/index.scss HOT 2
- js error on checkout address step page when user is logged in HOT 1
- Address book selector dropdown is broken in checkout address
- Error: "Invalid csrf token" on sylius_shop_ajax_cart_item_remove HOT 3
- Is 'data-loading' attribute used ? HOT 1
- Label for subtotals wrong
- Not compatible with 1.9 HOT 4
- Menu - Bad taxon used
- Field `differentShippingAddress` is mistakenly reset HOT 1
- Revert: Fix missing original price macro HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstraptheme.