mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 18:39:43 +00:00
various improvements
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
{% extends '@ChillDocGenerator/Admin/layout.html.twig' %}
|
||||
|
||||
{% block title %}
|
||||
{% include('@ChillMain/CRUD/_edit_title.html.twig') %}
|
||||
{% endblock %}
|
||||
{% block title 'docgen.Edit template'|trans %}
|
||||
|
||||
{% block layout_wvm_content %}
|
||||
{% embed '@ChillMain/CRUD/_edit_content.html.twig' %}
|
||||
|
||||
{% block crud_content_header %}
|
||||
<h1>{{ 'docgen.Edit template'|trans }}</h1>
|
||||
<h2>{{ 'docgen.With context %name%'|trans({'%name%': context.name|trans }) }}</h2>
|
||||
{% endblock crud_content_header %}
|
||||
|
||||
{% block content_form_actions_view %}{% endblock %}
|
||||
{% block content_form_actions_save_and_show %}{% endblock %}
|
||||
{% endembed %}
|
||||
|
@@ -1,12 +1,17 @@
|
||||
{% extends '@ChillDocGenerator/Admin/layout.html.twig' %}
|
||||
|
||||
{% block title %}
|
||||
{% include('@ChillMain/CRUD/_new_title.html.twig') %}
|
||||
{% endblock %}
|
||||
{% block title 'docgen.New template'|trans %}
|
||||
|
||||
{% block layout_wvm_content %}
|
||||
{% embed '@ChillMain/CRUD/_new_content.html.twig' %}
|
||||
|
||||
{% block crud_content_header %}
|
||||
<h1>{{ 'docgen.New template'|trans }}</h1>
|
||||
<h2>{{ 'docgen.With context %name%'|trans({'%name%': context.name|trans }) }}</h2>
|
||||
{% endblock crud_content_header %}
|
||||
|
||||
{% block content_form_actions_save_and_show %}{% endblock %}
|
||||
|
||||
{% endembed %}
|
||||
{% endblock %}
|
||||
|
||||
|
@@ -1,10 +1,11 @@
|
||||
{% extends 'ChillMainBundle::layout.html.twig' %}
|
||||
|
||||
{% block title 'Generate document'|trans %}
|
||||
{% block title 'docgen.Generate a document'|trans %}
|
||||
|
||||
{% block content %}
|
||||
<div class="col-md-10 col-xxl">
|
||||
<h1>{{ block('title') }}</h1>
|
||||
<h2>{{ template.name|localize_translatable_string }}</h2>
|
||||
|
||||
{{ form_start(form, { 'attr': { 'id': 'generate_doc_form' }}) }}
|
||||
{{ form(form) }}
|
||||
@@ -12,8 +13,8 @@
|
||||
|
||||
<ul class="record_actions sticky-form-buttons">
|
||||
<li>
|
||||
<button type="submit" class="btn btn-edit" form="generate_doc_form">
|
||||
<i class="fa fa-cog"></i> {{ 'Generate'|trans }}
|
||||
<button type="submit" class="btn btn-edit change-icon" form="generate_doc_form">
|
||||
<i class="fa fa-cog"></i> {{ 'docgen.Generate'|trans }}
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user