✏️ 正在编辑: fields.html.twig
路径:
/home/bpioifn/www/pigmentse/modules/ps_linklist/views/templates/admin/fields.html.twig
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
{#** * 2007-2018 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-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. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2018 PrestaShop SA * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA *#} {%- block choice_widget_expanded -%} <div {{ block('widget_container_attributes') }}> {% for name, choices in form.vars.choices %} {% if choices is iterable %} <label class="choice_category"> <strong> {{ choice_translation_domain is same as(false) ? name : name|trans({}, choice_translation_domain) }} </strong> </label> <div> {% for key,choice in choices %} {{ form_widget(form[key]) }} {{ form_label(form[key]) }} {% endfor %} </div> {% else %} {{- form_widget(form[name]) -}} {{- form_label(form[name], null, {translation_domain: choice_translation_domain}) -}} {% endif %} {% endfor %} </div> {%- endblock choice_widget_expanded -%} {% block checkbox_widget -%} {% set parent_label_class = parent_label_class|default('') -%} {% set switch = switch|default('') -%} {% set checkbox_input %} <input type="checkbox" class="js-bulk-action-checkbox" {% if switch %}data-toggle="switch"{% endif %} {% if switch %}class="{{ switch }}"{% endif %} {{ block('widget_attributes') }}{% if value is defined %} value="{{ value }}"{% endif %}{% if checked %} checked="checked"{% endif %} /> <i class="md-checkbox-control"></i> {% endset %} {% if 'checkbox-inline' in parent_label_class %} <div class="md-checkbox md-checkbox-inline"> {{- form_label(form, null, { widget: checkbox_input }) -}} </div> {% else -%} <div class="md-checkbox my-1"> {{- form_label(form, null, { widget: checkbox_input }) -}} </div> {%- endif %} {%- endblock checkbox_widget %} {% block form_row -%} {% spaceless %} <div class="{{ block('form_row_class') }} {% if (not compound or force_error|default(false)) and not valid %} has-error{% endif %}"> {% if form.vars.label is not same as(false) %} {{ form_label(form) }} {% set formGroupClasses = block('form_group_class') %} {% else %} {% set formGroupClasses = block('unlabeled_form_group_class') %} {% endif %} <div class="{{ formGroupClasses }}"> {{ form_widget(form) }} {{ form_errors(form) }} </div> </div> {% endspaceless %} {%- endblock form_row %} {% block form_row_class -%} form-group row {%- endblock form_row_class %} {% block unlabeled_form_group_class -%} col-sm-12 {%- endblock unlabeled_form_group_class %} {%- block custom_url_widget -%} <div class="form-control {{ attr.class }}"> {{ form_row(form.title) }} {{ form_row(form.url) }} </div> {%- endblock custom_url_widget -%}
💾 保存文件
← 返回文件管理器