mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix layout in admin document generation
A layout issue in the admin document generation has been fixed, particularly in the ChillDocGeneratorBundle. Unnecessary elements such as table headers and multiple entity data rows in DocGeneratorTemplate have been removed, simplifying the view page and improving its performance.
This commit is contained in:
parent
f3002631ea
commit
807f1b4aa1
5
.changes/unreleased/Fixed-20240326-220740.yaml
Normal file
5
.changes/unreleased/Fixed-20240326-220740.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
kind: Fixed
|
||||||
|
body: Fix layout issue in document generation for admin (minor)
|
||||||
|
time: 2024-03-26T22:07:40.044924041+01:00
|
||||||
|
custom:
|
||||||
|
Issue: ""
|
@ -14,11 +14,6 @@
|
|||||||
{% block admin_content %}
|
{% block admin_content %}
|
||||||
{% embed '@ChillMain/CRUD/_index.html.twig' %}
|
{% embed '@ChillMain/CRUD/_index.html.twig' %}
|
||||||
{% block table_entities_thead_tr %}
|
{% block table_entities_thead_tr %}
|
||||||
<th></th>
|
|
||||||
<th>{{ 'Title'|trans }}</th>
|
|
||||||
<th>{{ 'docgen.Context'|trans }}</th>
|
|
||||||
<th>{{ 'docgen.test generate'|trans }}</th>
|
|
||||||
<th>{{ 'Edit'|trans }}</th>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block table_entities_tbody %}
|
{% block table_entities_tbody %}
|
||||||
@ -62,34 +57,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% for entity in entities %}
|
|
||||||
<tr>
|
|
||||||
<td>{{ entity.id }}</td>
|
|
||||||
<td>{{ entity.name|localize_translatable_string}}</td>
|
|
||||||
<td>{{ contextManager.getContextByKey(entity.context).name|trans }}</td>
|
|
||||||
<td>
|
|
||||||
<form method="get" action="{{ path('chill_docgenerator_test_generate_redirect') }}">
|
|
||||||
<input type="hidden" name="returnPath" value="{{ app.request.query.get('returnPath', app.request.uri)|e('html_attr') }}" />
|
|
||||||
<input type="hidden" name="template" value="{{ entity.id|e('html_attr') }}" />
|
|
||||||
<input type="hidden" name="entityClassName" value="{{ contextManager.getContextByKey(entity.context).entityClass|e('html_attr') }}" />
|
|
||||||
<input type="text" name="entityId" />
|
|
||||||
|
|
||||||
<button type="submit" class="btn btn-mini btn-misc"><i class="fa fa-cog"></i>{{ 'docgen.test generate'|trans }}</button>
|
|
||||||
</form>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<ul class="record_actions">
|
|
||||||
<li>
|
|
||||||
{{ entity.file|chill_document_button_group('Template file', true, {small: true}) }}
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="{{ chill_path_add_return_path('chill_crud_docgen_template_edit', { 'id': entity.id }) }}" class="btn btn-edit" title="{{ 'Edit'|trans }}"></a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block actions_before %}
|
{% block actions_before %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user