Crudit bundle for 2le.
Webpack Encore is required and you need to have a security on your application.
require 2lenet/crudit-bundle
npm install bootstrap@5 sass sass-loader @fortawesome/fontawesome-free easymde --save
Just add the following lines in your template/base.html.twig
{% extends '@LleCrudit/layout/sb_admin/layout.html.twig' %}
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('app') }}
{% endblock %}
Then, in your assets/js/app.js, you have to add this line :
import '../styles/app.scss';
And in your assets/styles/app.scss, add this :
@import '../../vendor/2lenet/crudit-bundle/assets/sb-admin/css/app.scss';
All new SCSS files must be imported before the import of Crudit SCSS.
A crud is composed by
The layout and menu are independent from the crud. You can integrate easily your own controller in a Crudit Layout
The list view has the following features :
The list view need a Datasource but is not bounded to Doctrine or any ORM.
The show view has the following feature :
The edit view is a classical Symfony Form. You write your own FormType
Crudit provides some help to be nicely integrated :
Some help to check the input validity ( upper, email, ip, etc... )
Crudit wants to minimise dependencies on not really popular bundles or components in order to be able to maintain this bundle for many years and to follow the Symfony Stack development without dependency problems.
The layout is inspired by SB Admin 2 but partially rewritten. Many of the features of SB Admin wasn't useful for this project.
The CSS framework used is Bootstrap 5.
Excel export uses phpoffice/phpspreadsheet.
Doctrine is needed for the pre-version but the project is designed to work without it. Feel free to contact us if you want to use other dataprovider.
TO COMPLETE
To update the JS or the CSS please run in the bundle
npm install
npm run build
How can I help you explore Laravel packages today?