mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-29 21:48:45 +02:00
FAF: Documentation UI Twig Blocks
This commit is contained in:
@@ -30,11 +30,13 @@ Twig Tag
|
||||
|
||||
:Type:
|
||||
|
||||
+------------------------------------------+-------------------------------------------------------------------+
|
||||
| :ref:`Standard <UIContentBlockStandard>` | No comment |
|
||||
+------------------------------------------+-------------------------------------------------------------------+
|
||||
| :ref:`ForCode <UIContentBlockForCode>` | Used to display a block of code like <pre> but allows line break. |
|
||||
+------------------------------------------+-------------------------------------------------------------------+
|
||||
+--------------------------------------------------------+-------------------------------------------------------------------+
|
||||
| :ref:`Standard <UIContentBlockStandard>` | No comment |
|
||||
+--------------------------------------------------------+-------------------------------------------------------------------+
|
||||
| :ref:`ForCode <UIContentBlockForCode>` | Used to display a block of code like <pre> but allows line break. |
|
||||
+--------------------------------------------------------+-------------------------------------------------------------------+
|
||||
| :ref:`ForPreformatted <UIContentBlockForPreformatted>` | No comment |
|
||||
+--------------------------------------------------------+-------------------------------------------------------------------+
|
||||
|
||||
.. _UIContentBlockStandard:
|
||||
|
||||
@@ -78,6 +80,27 @@ UIContentBlock ForCode
|
||||
| sId | string | optional | NULL | |
|
||||
+-------+--------+-----------+------+--+
|
||||
|
||||
.. _UIContentBlockForPreformatted:
|
||||
|
||||
UIContentBlock ForPreformatted
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
:syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UIContentBlock ForPreformatted {sCode:'value', sId:'value'} %}
|
||||
Content Goes Here
|
||||
{% EndUIContentBlock %}
|
||||
|
||||
:parameters:
|
||||
|
||||
+-------+--------+-----------+------+--+
|
||||
| sCode | string | mandatory | | |
|
||||
+-------+--------+-----------+------+--+
|
||||
| sId | string | optional | NULL | |
|
||||
+-------+--------+-----------+------+--+
|
||||
|
||||
UIContentBlock common parameters
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user