feat(main): Made group and blocks translatable.
Still need to do slide and FAQ entities
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
$(document).ready(function () {
|
||||
window.prestashop.component.initComponents([
|
||||
'TinyMCEEditor',
|
||||
'TranslatableField',
|
||||
'TranslatableInput',
|
||||
]);
|
||||
|
||||
function toggleBlockTypeFields() {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
$(document).ready(function () {
|
||||
window.prestashop.component.initComponents([
|
||||
'TranslatableField',
|
||||
'TranslatableInput',
|
||||
]);
|
||||
});
|
||||
@@ -109,10 +109,8 @@
|
||||
{{ form_row(customHtmlBlockForm.timeout) }}
|
||||
{{ form_row(customHtmlBlockForm.description) }}
|
||||
{{ form_row(customHtmlBlockForm.extra_description) }}
|
||||
<div class="row">
|
||||
{{ form_row(customHtmlBlockForm.link) }}
|
||||
{{ form_row(customHtmlBlockForm.link_text) }}
|
||||
</div>
|
||||
{{ form_row(customHtmlBlockForm.link) }}
|
||||
{{ form_row(customHtmlBlockForm.link_text) }}
|
||||
|
||||
<p
|
||||
id="customhtmlblock-group-default-class-hint"
|
||||
|
||||
@@ -5,3 +5,8 @@
|
||||
{% include '@Modules/ws_customhtml/views/templates/admin/form/blocks/group_form.html.twig' %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
<script src="{{ asset('../modules/ws_customhtml/views/js/admin/customhtmlgroup_form.js') }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -5,3 +5,8 @@
|
||||
{% include '@Modules/ws_customhtml/views/templates/admin/form/blocks/group_form.html.twig' %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
<script src="{{ asset('../modules/ws_customhtml/views/js/admin/customhtmlgroup_form.js') }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user