Add the following lines into the app/config/config.yml
file of your project:
wbw_bootstrap:
version: 4
locales:
bootstrap_datepicker: "fr"
bootstrap_markdown: "fr"
bootstrap_select: "fr_FR"
bootstrap_wysiwyg: "fr-FR"
summernote: "fr-FR"
plugins:
- "bootstrap_colorpicker"
- "bootstrap_datepicker"
- "bootstrap_daterangepicker"
- "bootstrap_markdown"
- "bootstrap_notify"
- "bootstrap_select"
- "bootstrap_slider"
- "bootstrap_social"
- "bootstrap_tagsinput"
- "bootstrap_timepicker"
- "bootstrap_wysiwyg"
- "summernote"
The example below is complete and you can adapt this with your needs.
The different parameters (optionals) are explained below:
Parameter | Type | Description |
---|---|---|
version | int | The Bootstrap version (by default: 4) |
bootstrap_datepicker | string | The Bootstrap DatePicker plug-in locale (by default: "en") |
bootstrap_markdown | string | The Bootstrap Markdown plug-in locale (by default: "en") |
bootstrap_select | string | The Bootstrap Select plug-in locale (by default: "en-US") |
bootstrap_wysiwyg | string | The Bootstrap WYSISYG plug-in locale (by default: "en-US") |
summernote | string | The Summernote plug-in locale (by default: "en-US") |
plugins | string[] | The plugins list |
Available parameters (locales and plug-ins lists) can be found into assets.yml
{# AppBundle/Resources/views/layout.html.twig #}
{% extends "@WBWBootstrap/layout.html.twig" %}
{% block bootstrapFormTheme %}
{# form theme #}
{% endblock %}
{% block bootstrapFavicons %}
{# favicons #}
{% endblock %}
{% block bootstrapStylesheets %}
{{ parent() }}
{# stylesheets #}
{% endblock %}
{% block bootstrapTitle %}{# title #}{% endblock %}
{% block bootstrapAttributes %}{# body attributes #}{% endblock %}
{% block bootstrapContent %}
{{ parent() }}
{# content #}
{% endblock %}
{% block bootstrapJavascripts %}
{{ parent() }}
{# javascripts #}
{% endblock %}
- bootstrapButton
Redaction in progress...