mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 20:18:52 +02:00
FAF: Documentation UI Twig Blocks - HTML result
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
.. Copyright (C) 2010-2021 Combodo SARL
|
||||
.. http://opensource.org/licenses/AGPL-3.0
|
||||
|
||||
.. _FileSelect:
|
||||
|
||||
FileSelect
|
||||
==========
|
||||
|
||||
Class FileSelect
|
||||
|
||||
----
|
||||
|
||||
.. include:: /manual/Component/Input/FileSelect/FileSelectAdditionalDescription.rst
|
||||
|
||||
----
|
||||
|
||||
Twig Tag
|
||||
--------
|
||||
|
||||
:Tag: **UIFileSelect**
|
||||
|
||||
:Syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UIFileSelect Type {Parameters} %}
|
||||
|
||||
:Type:
|
||||
|
||||
+--------------------------------------+------------+
|
||||
| :ref:`Standard <FileSelectStandard>` | No comment |
|
||||
+--------------------------------------+------------+
|
||||
|
||||
.. _FileSelectStandard:
|
||||
|
||||
FileSelect Standard
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
:syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UIFileSelect Standard {sName:'value', sId:'value'} %}
|
||||
|
||||
:parameters:
|
||||
|
||||
+-------+--------+-----------+------+--+
|
||||
| sName | string | mandatory | | |
|
||||
+-------+--------+-----------+------+--+
|
||||
| sId | string | optional | NULL | |
|
||||
+-------+--------+-----------+------+--+
|
||||
|
||||
FileSelect common parameters
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddCSSClass | string | CSS class to add to the generated html block |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddCSSClasses | array | like <code>['ibo-is-hidden', 'ibo-alert--body']</code> |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddCssFileRelPath | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddHtml | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddJsFileRelPath | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddMultipleCssFilesRelPaths | array | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddMultipleJsFilesRelPaths | array | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| ButtonText | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| CSSClasses | array | like <code>['ibo-is-hidden', 'ibo-alert--body']</code> |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| DataAttributes | array | Array of data attributes in the format ['name' => 'value'] |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| FileName | | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| IsHidden | bool | Indicates if the block is hidden by default |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| ShowFilename | bool | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
|
||||
----
|
||||
|
||||
.. include:: /manual/Component/Input/FileSelect/FileSelectFooter.rst
|
||||
@@ -0,0 +1,148 @@
|
||||
.. Copyright (C) 2010-2021 Combodo SARL
|
||||
.. http://opensource.org/licenses/AGPL-3.0
|
||||
|
||||
.. _Input:
|
||||
|
||||
Input
|
||||
=====
|
||||
|
||||
Class Input
|
||||
|
||||
----
|
||||
|
||||
.. include:: /manual/Component/Input/InputAdditionalDescription.rst
|
||||
|
||||
----
|
||||
|
||||
Twig Tag
|
||||
--------
|
||||
|
||||
:Tag: **UIInput**
|
||||
|
||||
:Syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UIInput Type {Parameters} %}
|
||||
|
||||
:Type:
|
||||
|
||||
+---------------------------------------------------+------------------------------------------------------------------------------------+
|
||||
| :ref:`ForHidden <InputForHidden>` | No comment |
|
||||
+---------------------------------------------------+------------------------------------------------------------------------------------+
|
||||
| :ref:`Standard <InputStandard>` | No comment |
|
||||
+---------------------------------------------------+------------------------------------------------------------------------------------+
|
||||
| :ref:`ForInputWithLabel <InputForInputWithLabel>` | @see Field component that is better adapter when dealing with a standard iTop form |
|
||||
+---------------------------------------------------+------------------------------------------------------------------------------------+
|
||||
|
||||
.. _InputForHidden:
|
||||
|
||||
Input ForHidden
|
||||
^^^^^^^^^^^^^^^
|
||||
|
||||
:syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UIInput ForHidden {sName:'value', sValue:'value', sId:'value'} %}
|
||||
|
||||
:parameters:
|
||||
|
||||
+--------+--------+-----------+------+--+
|
||||
| sName | string | mandatory | | |
|
||||
+--------+--------+-----------+------+--+
|
||||
| sValue | string | mandatory | | |
|
||||
+--------+--------+-----------+------+--+
|
||||
| sId | string | optional | NULL | |
|
||||
+--------+--------+-----------+------+--+
|
||||
|
||||
.. _InputStandard:
|
||||
|
||||
Input Standard
|
||||
^^^^^^^^^^^^^^
|
||||
|
||||
:syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UIInput Standard {sType:'value', sName:'value', sValue:'value', sId:'value'} %}
|
||||
|
||||
:parameters:
|
||||
|
||||
+--------+--------+-----------+------+--+
|
||||
| sType | string | mandatory | | |
|
||||
+--------+--------+-----------+------+--+
|
||||
| sName | string | mandatory | | |
|
||||
+--------+--------+-----------+------+--+
|
||||
| sValue | string | mandatory | | |
|
||||
+--------+--------+-----------+------+--+
|
||||
| sId | string | optional | NULL | |
|
||||
+--------+--------+-----------+------+--+
|
||||
|
||||
.. _InputForInputWithLabel:
|
||||
|
||||
Input ForInputWithLabel
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
:syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UIInput ForInputWithLabel {sLabel:'value', sInputName:'value', sInputValue:'value', sInputId:'value', sInputType:'value'} %}
|
||||
|
||||
:parameters:
|
||||
|
||||
+-------------+--------+-----------+--------+--+
|
||||
| sLabel | string | mandatory | | |
|
||||
+-------------+--------+-----------+--------+--+
|
||||
| sInputName | string | mandatory | | |
|
||||
+-------------+--------+-----------+--------+--+
|
||||
| sInputValue | string | optional | NULL | |
|
||||
+-------------+--------+-----------+--------+--+
|
||||
| sInputId | string | optional | NULL | |
|
||||
+-------------+--------+-----------+--------+--+
|
||||
| sInputType | string | optional | 'type' | |
|
||||
+-------------+--------+-----------+--------+--+
|
||||
|
||||
Input common parameters
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddCSSClass | string | CSS class to add to the generated html block |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddCSSClasses | array | like <code>['ibo-is-hidden', 'ibo-alert--body']</code> |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddCssFileRelPath | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddHtml | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddJsFileRelPath | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddMultipleCssFilesRelPaths | array | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddMultipleJsFilesRelPaths | array | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| CSSClasses | array | like <code>['ibo-is-hidden', 'ibo-alert--body']</code> |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| DataAttributes | array | Array of data attributes in the format ['name' => 'value'] |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| IsChecked | | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| IsDisabled | bool | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| IsHidden | bool | Indicates if the block is hidden by default |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| IsReadonly | bool | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| Name | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| Placeholder | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| Type | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| Value | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
|
||||
----
|
||||
|
||||
.. include:: /manual/Component/Input/InputFooter.rst
|
||||
@@ -0,0 +1,129 @@
|
||||
.. Copyright (C) 2010-2021 Combodo SARL
|
||||
.. http://opensource.org/licenses/AGPL-3.0
|
||||
|
||||
.. _Select:
|
||||
|
||||
Select
|
||||
======
|
||||
|
||||
Class Select
|
||||
|
||||
----
|
||||
|
||||
.. include:: /manual/Component/Input/Select/SelectAdditionalDescription.rst
|
||||
|
||||
----
|
||||
|
||||
Twig Tag
|
||||
--------
|
||||
|
||||
:Tag: **UISelect**
|
||||
|
||||
:Syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UISelect Type {Parameters} %}
|
||||
Content Goes Here
|
||||
{% EndUISelect %}
|
||||
|
||||
:Type:
|
||||
|
||||
+------------------------------------------------------+------------------------------------+
|
||||
| :ref:`ForSelect <SelectForSelect>` | Create a default Select input |
|
||||
+------------------------------------------------------+------------------------------------+
|
||||
| :ref:`ForSelectWithLabel <SelectForSelectWithLabel>` | Create a Select input with a label |
|
||||
+------------------------------------------------------+------------------------------------+
|
||||
|
||||
.. _SelectForSelect:
|
||||
|
||||
Select ForSelect
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
:syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UISelect ForSelect {sName:'value', sId:'value'} %}
|
||||
Content Goes Here
|
||||
{% EndUISelect %}
|
||||
|
||||
:parameters:
|
||||
|
||||
+-------+--------+-----------+------+-------------------------+
|
||||
| sName | string | mandatory | | Input name for the form |
|
||||
+-------+--------+-----------+------+-------------------------+
|
||||
| sId | string | optional | NULL | $sId |
|
||||
+-------+--------+-----------+------+-------------------------+
|
||||
|
||||
.. _SelectForSelectWithLabel:
|
||||
|
||||
Select ForSelectWithLabel
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
:syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UISelect ForSelectWithLabel {sName:'value', sLabel:'value', sId:'value'} %}
|
||||
Content Goes Here
|
||||
{% EndUISelect %}
|
||||
|
||||
:parameters:
|
||||
|
||||
+--------+--------+-----------+------+-----------------------------------------------------+
|
||||
| sName | string | mandatory | | Input name for the form |
|
||||
+--------+--------+-----------+------+-----------------------------------------------------+
|
||||
| sLabel | string | mandatory | | Label to display with the input (null for no label) |
|
||||
+--------+--------+-----------+------+-----------------------------------------------------+
|
||||
| sId | string | optional | NULL | $sId |
|
||||
+--------+--------+-----------+------+-----------------------------------------------------+
|
||||
|
||||
Select common parameters
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddCSSClass | string | CSS class to add to the generated html block |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddCSSClasses | array | like <code>['ibo-is-hidden', 'ibo-alert--body']</code> |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddCssFileRelPath | string | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddDeferredBlock | iUIBlock | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddHtml | string | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddJsFileRelPath | string | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddMultipleCssFilesRelPaths | array | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddMultipleJsFilesRelPaths | array | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddOption | SelectOption | Select option UIBlock |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddSubBlock | iUIBlock | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| CSSClasses | array | like <code>['ibo-is-hidden', 'ibo-alert--body']</code> |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| DataAttributes | array | Array of data attributes in the format ['name' => 'value'] |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| DeferredBlocks | array | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| IsHidden | bool | Indicates if the block is hidden by default |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| IsLabelBefore | bool | If true the label will be positioned before the input |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| IsMultiple | bool | Allow multiple selection |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| Label | string | Label to display with the input (null for no label) |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| Name | string | Input name for the form |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| SubBlocks | array | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| SubmitOnChange | bool | if true submit the form as soon as a change is detected |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
|
||||
----
|
||||
|
||||
.. include:: /manual/Component/Input/Select/SelectFooter.rst
|
||||
@@ -0,0 +1,92 @@
|
||||
.. Copyright (C) 2010-2021 Combodo SARL
|
||||
.. http://opensource.org/licenses/AGPL-3.0
|
||||
|
||||
.. _SelectOption:
|
||||
|
||||
SelectOption
|
||||
============
|
||||
|
||||
Class SelectOption
|
||||
|
||||
----
|
||||
|
||||
.. include:: /manual/Component/Input/Select/SelectOptionAdditionalDescription.rst
|
||||
|
||||
----
|
||||
|
||||
Twig Tag
|
||||
--------
|
||||
|
||||
:Tag: **UISelectOption**
|
||||
|
||||
:Syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UISelectOption Type {Parameters} %}
|
||||
|
||||
:Type:
|
||||
|
||||
+------------------------------------------------------+------------+
|
||||
| :ref:`ForSelectOption <SelectOptionForSelectOption>` | No comment |
|
||||
+------------------------------------------------------+------------+
|
||||
|
||||
.. _SelectOptionForSelectOption:
|
||||
|
||||
SelectOption ForSelectOption
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
:syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UISelectOption ForSelectOption {sValue:'value', sLabel:'value', bSelected:true, sId:'value'} %}
|
||||
|
||||
:parameters:
|
||||
|
||||
+-----------+--------+-----------+------+--+
|
||||
| sValue | string | mandatory | | |
|
||||
+-----------+--------+-----------+------+--+
|
||||
| sLabel | string | mandatory | | |
|
||||
+-----------+--------+-----------+------+--+
|
||||
| bSelected | bool | mandatory | | |
|
||||
+-----------+--------+-----------+------+--+
|
||||
| sId | string | optional | NULL | |
|
||||
+-----------+--------+-----------+------+--+
|
||||
|
||||
SelectOption common parameters
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddCSSClass | string | CSS class to add to the generated html block |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddCSSClasses | array | like <code>['ibo-is-hidden', 'ibo-alert--body']</code> |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddCssFileRelPath | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddHtml | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddJsFileRelPath | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddMultipleCssFilesRelPaths | array | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddMultipleJsFilesRelPaths | array | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| CSSClasses | array | like <code>['ibo-is-hidden', 'ibo-alert--body']</code> |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| DataAttributes | array | Array of data attributes in the format ['name' => 'value'] |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| Disabled | bool | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| IsHidden | bool | Indicates if the block is hidden by default |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| Label | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| Selected | bool | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| Value | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
|
||||
----
|
||||
|
||||
.. include:: /manual/Component/Input/Select/SelectOptionFooter.rst
|
||||
Reference in New Issue
Block a user