mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°8772 - Form dependencies manager implementation
- Form SDK implementation - Basic Forms - Dynamics Forms - Basic Blocks + Data Model Block - Form Compilation - Turbo integration
This commit is contained in:
26
templates/base/components/turbo-form/layout.html.twig
Normal file
26
templates/base/components/turbo-form/layout.html.twig
Normal file
@@ -0,0 +1,26 @@
|
||||
{# @copyright Copyright (C) 2010-2025 Combodo SAS #}
|
||||
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
||||
|
||||
<script type="module">
|
||||
import {session} from "{{ aPage.sAbsoluteUrlAppRoot }}/node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js";
|
||||
|
||||
session.drive = false;
|
||||
</script>
|
||||
|
||||
<turbo-frame id="{{ oUIBlock.GetId() }}">
|
||||
{% if oUIBlock.GetAction() %}
|
||||
{{ form_start(oUIBlock.GetFormView(), {action: oUIBlock.GetAction()}) }}
|
||||
{% else %}
|
||||
{{ form_start(oUIBlock.GetFormView()) }}
|
||||
{% endif %}
|
||||
{{ form_widget(oUIBlock.GetFormView()) }}
|
||||
|
||||
{%- block iboContentBlockContainer -%}
|
||||
{% for oSubBlock in oUIBlock.GetSubBlocks() %}
|
||||
{{ render_block(oSubBlock, {aPage: aPage}) }}
|
||||
{% endfor %}
|
||||
{%- endblock -%}
|
||||
|
||||
|
||||
{{ form_end(oUIBlock.GetFormView()) }}
|
||||
</turbo-frame>
|
||||
12
templates/base/components/turbo-stream/layout.html.twig
Normal file
12
templates/base/components/turbo-stream/layout.html.twig
Normal file
@@ -0,0 +1,12 @@
|
||||
{# @copyright Copyright (C) 2010-2025 Combodo SAS #}
|
||||
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
||||
|
||||
<turbo-stream action="{{ oUIBlock.GetAction() }}" target="{{ oUIBlock.GetTarget() }}">
|
||||
<template>
|
||||
{%- block iboContentBlockContainer -%}
|
||||
{% for oSubBlock in oUIBlock.GetSubBlocks() %}
|
||||
{{ render_block(oSubBlock, {aPage: aPage}) }}
|
||||
{% endfor %}
|
||||
{%- endblock -%}
|
||||
</template>
|
||||
</turbo-stream>
|
||||
Reference in New Issue
Block a user