mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-20 07:42:17 +02:00
N°8641 - Dashboard editor front-end first commit for Form SDK integration.
* No dashlet edition * Dashboard are not persisted * Unable to load a dashboard from an endpoint (refresh) * Grid library need proper npm integration
This commit is contained in:
5
templates/base/layouts/dashboard/grid/layout.html.twig
Normal file
5
templates/base/layouts/dashboard/grid/layout.html.twig
Normal file
@@ -0,0 +1,5 @@
|
||||
<ibo-dashboard-grid class="ibo-dashboard--grid grid-stack">
|
||||
{% for oSubBlock in oUIBlock.GetSlots() %}
|
||||
{{ render_block(oSubBlock, {aPage: aPage}) }}
|
||||
{% endfor %}
|
||||
</ibo-dashboard-grid>
|
||||
9
templates/base/layouts/dashboard/grid/slot.html.twig
Normal file
9
templates/base/layouts/dashboard/grid/slot.html.twig
Normal file
@@ -0,0 +1,9 @@
|
||||
<ibo-dashboard-grid-slot
|
||||
gs-x="{{ random(10) }}"
|
||||
gs-y="{{ random(6) }}"
|
||||
gs-w="{{ random(5) }}"
|
||||
gs-h="{{ random(5) }}"
|
||||
id=""
|
||||
class="grid-stack-item">
|
||||
{{ render_block(oUIBlock.GetDashlet(), {aPage: aPage}) }}
|
||||
</ibo-dashboard-grid-slot>
|
||||
Reference in New Issue
Block a user