bprs/style-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Simple Bootstrap style for applications

Installs: 187

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Language:HTML

Type:symfony-bundle

This package has no released version yet, and little information is available.


README

Simple Bootstrap Styling for your symfony applications.

It contains form theming, js, css and flashbags with translation activated

install

get bundle

on the commandline in your projectfolder, use composer
composer require: bprs/style-bundle

activate bundle

AppKernel
new Bprs\StyleBundle\BprsStyleBundle()

usage

The basic idea is a simple reusable layout.
in your template, use

{% extends "BprsStyleBundle::layout.html.twig" %}

{% block nav_head%}
    {% include 'BprsStyleBundle::menu.html.twig' with {'selected': '#selected_menu_item#', 'dropdown': '#selected_dropdown_item#'} %}
{% endblock %}
{% block body_main %}
    {#your page content#}
{% endblock %}

in your config.yml, add:

twig
    globals:
        version: "YourVersion"
        name: "YourProjectName"

use form theming

in your config.yml, add:

form:
    resources:
        - 'BprsStyleBundle:Form:fields.html.twig'

use character counter

include the js file in your view

<script src="{{ asset('bundles/bprsstyle/js/charactercounter.js')}}"></script>

active the counter on your jquery object like

$("#my_textarea").characterCounter({
            counterCssClass: 'help-block',
            limit: 1000
            });

overwrite bundle

add app/Resources/BprsStylBundle/views/menu.html.twig
add app/Resources/BprsStylBundle/views/layout.html.twig
and edit it accordingly. 'selected' allows highlighting of a main menu point, dropdown allows highlighting of a menu entry.