mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°8771 - Add Symfony form component to iTop core
- IO debug
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
{% if type == 'text' %}{% set ibo_class='ibo-input-string' %}{% else %}{% set ibo_class='ibo-input-' ~ type %}{% endif %}
|
||||
{% set attr = attr|merge({class: (attr.class|default('') ~ ' ibo-input ' ~ ibo_class)|trim}) %}
|
||||
{{- parent() -}}
|
||||
onChange="this.form.requestSubmit();console.log('Auto submitting form due to change in field {{ full_name }}');"
|
||||
{% if trigger_form_submit_on_modify %}
|
||||
onChange="this.form.requestSubmit();console.log('Auto submitting form due to change in field {{ full_name }}');"
|
||||
{% endif %}
|
||||
{%- endblock widget_attributes -%}
|
||||
|
||||
{%- block form_label -%}
|
||||
@@ -18,28 +20,23 @@
|
||||
{{- parent() -}}
|
||||
{%- endblock form_label -%}
|
||||
|
||||
{%- block form_label_content -%}
|
||||
{{- parent() -}}
|
||||
{% if with_ai_button is defined and with_ai_button %}
|
||||
<div style="float: right;display: flex;flex-direction: column;">
|
||||
<button class="ibo-button ibo-button ibo-block ibo-is-alternative ibo-is-neutral " data-role="ibo-button" type="button" name="AI" value="" data-tooltip-content="AI" aria-label="AI">
|
||||
<span class="ibo-button--icon fas fa-magic"></span>
|
||||
</button>
|
||||
<button class="ibo-button ibo-button ibo-block ibo-is-alternative ibo-is-neutral " data-role="ibo-button" type="button" name="Book" value="" data-tooltip-content="Query Book" aria-label="AI">
|
||||
<span class="ibo-button--icon fas fa-book"></span>
|
||||
</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
{%-endblock form_label_content -%}
|
||||
|
||||
{%- block form_row -%}
|
||||
{% set row_attr = row_attr|merge({class: (row_attr.class|default('') ~ ' ibo-field ibo-content-block ibo-block ibo-field-small')|trim}) %}
|
||||
{{- parent() -}}
|
||||
|
||||
{% if form_block is defined %}
|
||||
{% for output in form_block.GetOutputs() %}
|
||||
<ul>
|
||||
{% if output.HasValues %}
|
||||
<li style="background-color:#dac2e3;border-radius: 8px;padding: 1px 4px;font-size: 1rem;margin: 5px 0;">
|
||||
<div>
|
||||
<div><b>{{ output.name }}</b></div>
|
||||
{% for t,v in output.GetValues %}
|
||||
<div>- {{ t }}: {{ v }}</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% else %}
|
||||
Aucun output
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{%- endblock form_row -%}
|
||||
|
||||
{%- block form_errors -%}
|
||||
|
||||
Reference in New Issue
Block a user