{% extends "AppBundle::layout.html.twig" %} {% block javascripts %} {{parent()}} {% javascripts "@AppBundle/Resources/public/components/datatables/media/js/jquery.dataTables.min.js" "@AppBundle/Resources/public/components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js" %} {% endjavascripts %} {% endblock %} {% block content_title %}产品库存添加产品{% endblock %} {% block sub_body %}
{% for flashMessage in app.session.flashbag.get('success') %}
{{ flashMessage }}
{% endfor %}
产品库存列表
{% if app.request.attributes.get('_route') == 'inventory_index' %} {% endif %} {% for product in products %} {% if app.request.attributes.get('_route') == 'inventory_index' %} {% endif %} {% endfor %}
id 图片 名称 ASIN精选操作
{{product.id}} {% if product.path %} {% endif %} {{product.title|raw}} {{product.ASIN}}
{% if product.isActive %} Yes {% else %} No {% endif %}
修改 {{ form_start(form, {'action': path('inventory_delete'), 'method': 'DELETE'}) }} {# 删除#} {{ form_end(form) }}
{% endblock sub_body %}