diff --git a/source/development/index.rst b/source/development/index.rst index 0a9f0b069..165395fdf 100644 --- a/source/development/index.rst +++ b/source/development/index.rst @@ -19,7 +19,7 @@ As Chill rely on the `symfony `_ framework, reading the fram Routing Menus Access control model - Message to users + Messages to users Localisation Database migrations Searching diff --git a/source/development/flashbags.rst b/source/development/messages-to-users.rst similarity index 51% rename from source/development/flashbags.rst rename to source/development/messages-to-users.rst index d6334a7a3..2eec9d6d8 100644 --- a/source/development/flashbags.rst +++ b/source/development/messages-to-users.rst @@ -6,10 +6,14 @@ A copy of the license is included in the section entitled "GNU Free Documentation License". +Messages to users +****************** + + .. _flashbags : -Flashbags: message to users -**************************** +Flashbags +========== The four following levels are defined : @@ -33,3 +37,35 @@ The four following levels are defined : `Flash Messages on Symfony documentation `_ 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 + + Create an entity + + + ++-----------+--------------+------------------------------------------------------------------------------+ +| 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 | ++-----------+--------------+------------------------------------------------------------------------------+