mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Merge branch 'master' of github.com:Chill-project/Documentation
This commit is contained in:
commit
c6bfbd84ae
@ -20,7 +20,7 @@ As Chill rely on the `symfony <http://symfony.com>`_ framework, reading the fram
|
|||||||
Menus <menus.rst>
|
Menus <menus.rst>
|
||||||
Layout / Template usage <layout-template-usage.rst>
|
Layout / Template usage <layout-template-usage.rst>
|
||||||
Access control model <access_control_model.rst>
|
Access control model <access_control_model.rst>
|
||||||
Message to users <flashbags.rst>
|
Messages to users <messages-to-users.rst>
|
||||||
Localisation <localisation.rst>
|
Localisation <localisation.rst>
|
||||||
Database migrations <migrations.rst>
|
Database migrations <migrations.rst>
|
||||||
Searching <searching.rst>
|
Searching <searching.rst>
|
||||||
|
@ -6,10 +6,14 @@
|
|||||||
A copy of the license is included in the section entitled "GNU
|
A copy of the license is included in the section entitled "GNU
|
||||||
Free Documentation License".
|
Free Documentation License".
|
||||||
|
|
||||||
|
Messages to users
|
||||||
|
******************
|
||||||
|
|
||||||
|
|
||||||
.. _flashbags :
|
.. _flashbags :
|
||||||
|
|
||||||
Flashbags: message to users
|
Flashbags
|
||||||
****************************
|
==========
|
||||||
|
|
||||||
The four following levels are defined :
|
The four following levels are defined :
|
||||||
|
|
||||||
@ -33,3 +37,35 @@ The four following levels are defined :
|
|||||||
|
|
||||||
`Flash Messages on Symfony documentation <http://symfony.com/doc/current/book/controller.html#flash-messages>`_
|
`Flash Messages on Symfony documentation <http://symfony.com/doc/current/book/controller.html#flash-messages>`_
|
||||||
Learn how to use flash messages in controller.
|
Learn how to use flash messages in controller.
|
||||||
|
|
||||||
|
|
||||||
|
Buttons
|
||||||
|
========
|
||||||
|
|
||||||
|
Four actions are available to decorate `a` links and `buttons`.
|
||||||
|
|
||||||
|
To add the action on button, use them as class along with `sc-button` :
|
||||||
|
|
||||||
|
.. code-block:: html
|
||||||
|
|
||||||
|
<a class="sc-button bt-create">Create an entity</a>
|
||||||
|
|
||||||
|
<button class="sc-button bt-submit" type="submit">Submit</button>
|
||||||
|
|
||||||
|
+-----------+--------------+------------------------------------------------------------------------------+
|
||||||
|
| Action | Class | Description |
|
||||||
|
+===========+==============+==============================================================================+
|
||||||
|
| Submit | `bt-submit` | Submit a form. |
|
||||||
|
+-----------+--------------+------------------------------------------------------------------------------+
|
||||||
|
| Create | `bt-create` | Link to a form to create an entity |
|
||||||
|
+-----------+--------------+------------------------------------------------------------------------------+
|
||||||
|
| Reset | `bt-reset` | Reset a form |
|
||||||
|
+-----------+--------------+------------------------------------------------------------------------------+
|
||||||
|
| Delete | `bt-delete` | Link to a form to delete an entity |
|
||||||
|
+-----------+--------------+------------------------------------------------------------------------------+
|
||||||
|
| Edit | `bt-edit` | Link to a form to edit an entity |
|
||||||
|
+-----------+--------------+------------------------------------------------------------------------------+
|
||||||
|
| Update | `bt-update` | Submitting this form will update the entity |
|
||||||
|
+-----------+--------------+------------------------------------------------------------------------------+
|
||||||
|
| Action | `bt-action` | Generic link to an action |
|
||||||
|
+-----------+--------------+------------------------------------------------------------------------------+
|
Loading…
x
Reference in New Issue
Block a user