- Added a new ArrayCollection

- Changed Action attribute and transformed it into an abstract class
This commit is contained in:
mcndave committed 2026-07-14 14:44:30 +00:00
1 parent 0443f5a811
commit 9b360c4010
18 files changed
+311 -86

No files matched your search

+41 -38
View File
@@ -13,47 +13,50 @@
<div class='description'>{{ $form['description'] }}</div>
<hr style="margin-top:15px">
{% if $form['fields'] %}
<div class="fields-wrapper">
<div class="header-fields">Champs</div>
<div class="fields-wrapper">
<div class="header-fields">Champs</div>
<ol class='fields'>
{% foreach $form['fields'] as $field %}
<li class="odd-even">
<div class="title">
<div>
<strong style="font-family:monospace">{{ $field['name'] }} {% if $field['mandatory'] %}<span style="color:red">*</span>{% endif %}</strong>
<span style='margin-left:15px'>{{ $field['description'] }}</span>
<ol class='fields'>
{% foreach $form['fields'] as $field %}
<li class="odd-even">
<div class="title">
<div>
<strong style="font-family:monospace">{{ $field['name'] }} {% if $field['mandatory'] %}<span style="color:red">*</span>{% endif %}</strong>
<span style='margin-left:15px'>{{ $field['description'] }}</span>
</div>
</div>
</div>
<div class="field-desc" style="margin-top:10px;;background:#fff;padding:5px;font-size:0.9em">
<div><u>Variable POST / champ JSON</u> : {{ $field['name'] }}</div>
<div><u>Type(s)</u> : {{ implode(' | ', array_map(fn($e) => $e->type, $field['type'])) }}</div>
<div><u>Nullable</u> : {{ yesOrNo($field['allowNulls']) }}</div>
{% if $field['regexPattern'] !== null %}
<div><u>Pattern regex</u> : {{ $field['regexPattern'] }}</div>
{% endif %}
{% if $field['minLength'] !== null %}
<div><u>Taille min.</u> : {{ $field['minLength'] }}</div>
{% endif %}
{% if $field['maxLength'] !== null %}
<div><u>Taille max.</u> : {{ $field['maxLength'] }}</div>
{% endif %}
{% if $field['example'] !== null || $field['values'] %}
<div><u>Exemple</u> : {{ $field['example'] }}</div>
{% endif %}
{% if $field['default'] !== null %}
<div><u>Valeur par défaut</u> : {{ $field['default'] }}</div>
{% endif %}
{% if $field['values'] %}
<div><u>Valeurs possibles</u> : [ <u class="enum-value">{{= implode('</u><u class="enum-value">', $field['values']) }}</u> ]</div>
{% endif %}
</div>
</li>
{% endforeach %}
</ol>
</div>
<div class="field-desc" style="margin-top:10px;;background:#fff;padding:5px;font-size:0.9em">
<div><u>Variable POST / champ JSON</u> : {{ $field['name'] }}</div>
<div><u>Type(s)</u> : {{ implode(' | ', array_map(fn($e) => $e->type, $field['type'])) }}</div>
<div><u>Nullable</u> : {{ yesOrNo($field['allowNulls']) }}</div>
{% if $field['regexPattern'] !== null %}
<div><u>Pattern regex</u> : {{ $field['regexPattern'] }}</div>
{% endif %}
{% if $field['minLength'] !== null %}
<div><u>Taille min.</u> : {{ $field['minLength'] }}</div>
{% endif %}
{% if $field['maxLength'] !== null %}
<div><u>Taille max.</u> : {{ $field['maxLength'] }}</div>
{% endif %}
{% if $field['example'] !== null || $field['values'] %}
<div><u>Exemple</u> : {{ $field['example'] }}</div>
{% endif %}
{% if $field['default'] !== null %}
<div><u>Valeur par défaut</u> : {{ $field['default'] }}</div>
{% endif %}
{% if $field['values'] %}
<div><u>Valeurs possibles</u> : [ <u class="enum-value">{{= implode('</u><u class="enum-value">', $field['values']) }}</u> ]</div>
{% endif %}
</div>
</li>
{% endforeach %}
</ol>
</div>
{% else %}
<div class="empty">Aucun champ adressable pour ce context</div>
{% endif %}
</div>
{% or %}
<i style="color:#585858; padding:0 12px">{% _ "none" %}</i>
+1
View File
@@ -28,6 +28,7 @@
h2 + p {font-family: monospace, serif;font-size: 0.9rem;}
.hide {display:none!important}
.empty {font-size:0.9rem; color:gray; text-align:center; line-height:2.5rem; background: rgba(0, 0, 0, 0.07); margin:0 0 10px 0}
ul {background:#f4f4f4; list-style: none; padding-left:20px}
ul ul {margin: 0;border: 0;padding: 5px 30px;}