{#** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License version 3.0 * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 *#} {% extends '@PrestaShop/Admin/layout.html.twig' %} {% trans_default_domain "Admin.Design.Feature" %} {% form_theme linkBlockForm '@Modules/ps_linklist/views/templates/admin/fields.html.twig' %} {% block content %} {% if linkBlockForm.vars.data.link_block.id_link_block is defined and linkBlockForm.vars.data.link_block.id_link_block is not null %} {% set formAction = url('admin_link_block_edit_process', {'linkBlockId': linkBlockForm.vars.data.link_block.id_link_block}) %} {% else %} {% set formAction = url('admin_link_block_create_process') %} {% endif %} {{ form_start(linkBlockForm, {'action': formAction, 'attr': {'class': 'form', 'id': 'link_block_form'}}) }}
{% block link_block_form %}

mode_edit {% if linkBlockForm.vars.data.link_block.id_link_block is defined %} {{ 'Edit the link block.'|trans({}, 'Modules.Linklist.Admin') }} {% else %} {{ 'New link block'|trans({}, 'Modules.Linklist.Admin') }} {% endif %}

{{ form_row(linkBlockForm.link_block.block_name) }} {{ form_row(linkBlockForm.link_block.id_hook) }} {{ form_row(linkBlockForm.link_block.cms) }} {{ form_row(linkBlockForm.link_block.product) }} {{ form_row(linkBlockForm.link_block.category) }} {{ form_row(linkBlockForm.link_block.static) }} {% if linkBlockForm.link_block.shop_association is defined %} {{ form_row(linkBlockForm.link_block.shop_association) }} {% endif %}
{{ form_row(linkBlockForm.link_block.custom) }}
{{ form_rest(linkBlockForm.link_block) }} {% do linkBlockForm.link_block.setRendered %} {{ form_rest(linkBlockForm) }}
{% endblock %}
{{ form_end(linkBlockForm) }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}