mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Merge pull request #3739 from pjedrzejewski/remove-bundle-default-templates
Remove useless default templates
This commit is contained in:
commit
488899f9a6
71 changed files with 0 additions and 939 deletions
|
|
@ -1,4 +0,0 @@
|
|||
<strong>{{ address.fullName}}</strong> <br />
|
||||
{{ address.street }}, <br />
|
||||
{{ address.city }} {{ address.postcode }}<br />
|
||||
{{ address.country|upper }} {% if address.province is not empty %} {{ address.province }} {% endif %}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Creating address <small>Use this form to add new item to address book</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_address_create') }}" method="post" class="form-horizontal" novalidate>
|
||||
{% include 'SyliusAddressingBundle:Address:_form.html.twig' %}
|
||||
{{ actions.create() }}
|
||||
</form>
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
{{ form_row(form.firstName, {'attr': {'class': 'input-lg'}}) }}
|
||||
{{ form_row(form.lastName, {'attr': {'class': 'input-lg'}}) }}
|
||||
{{ form_row(form.country, {'attr': {'class': 'select2 input-lg country-select'}}) }}
|
||||
{% if form.province is defined %}
|
||||
{{ form_row(form.province, {'attr': {'class': 'select2'}}) }}
|
||||
{% endif %}
|
||||
{{ form_row(form.street, {'attr': {'class': 'input-lg'}}) }}
|
||||
{{ form_row(form.city) }}
|
||||
{{ form_row(form.postcode, {'attr': {'class': 'input-sm'}}) }}
|
||||
{{ form_rest(form) }}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
{% import 'SyliusAddressingBundle:Address:macros.html.twig' as macros %}
|
||||
|
||||
<h1>Addresses list <small>All addresses saved in the system</small></h1>
|
||||
<hr />
|
||||
|
||||
<div class="well">
|
||||
{{ buttons.create(path('sylius_address_create'), 'new address') }}
|
||||
</div>
|
||||
|
||||
{% if addresses.haveToPaginate()|default(false) %}
|
||||
{{ pagerfanta(addresses, 'twitter_bootstrap_translated') }}
|
||||
{% endif %}
|
||||
|
||||
{{ macros.list(addresses) }}
|
||||
|
||||
{% if addresses.haveToPaginate()|default(false) %}
|
||||
{{ pagerfanta(addresses, 'twitter_bootstrap_translated') }}
|
||||
{% endif %}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
|
||||
<h1>Address details <small>{{ address.fullName }}</small></h1>
|
||||
<hr />
|
||||
|
||||
<div class="well well-sm">
|
||||
{{ buttons.create(path('sylius_address_create'), 'new address') }}
|
||||
{{ buttons.edit(path('sylius_address_update', {'id': address.id})) }}
|
||||
{{ buttons.delete(path('sylius_address_delete', {'id': address.id})) }}
|
||||
</div>
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#{{ address.id }} for "{{ address.fullName }}"</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<address class="code">
|
||||
<hr />
|
||||
{% include 'SyliusAddressingBundle:Address:_address.html.twig' %}
|
||||
</address>
|
||||
</td>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Address updating <small>Use this form to edit existing address</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_address_update', {'id': address.id}) }}" method="post" class="form-horizontal" novalidate>
|
||||
{% include 'SyliusAddressingBundle:Address:_form.html.twig' %}
|
||||
{{ actions.update(path('sylius_address_show', {'id': address.id})) }}
|
||||
</form>
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_javascripts %}
|
||||
{{ parent() }}
|
||||
|
||||
{% javascripts output='assets/compiled/sylius-addressing.js'
|
||||
'bundles/syliusaddressing/js/sylius-addressing.js'
|
||||
%}
|
||||
<script type="text/javascript" src="{{ asset_url }}"></script>
|
||||
{% endjavascripts %}
|
||||
{% endblock %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusAddressingBundle:Address:_create.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusAddressingBundle:Address:_index.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
{% macro list(addresses) %}
|
||||
|
||||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
|
||||
{% if addresses|length > 0 %}
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ sylius_resource_sort('id', '#id') }}</th>
|
||||
<th>{{ sylius_resource_sort('firstName', 'first name') }}</th>
|
||||
<th>{{ sylius_resource_sort('lastName', 'last name') }}</th>
|
||||
<th>{{ sylius_resource_sort('country') }}</th>
|
||||
<th>{{ sylius_resource_sort('province') }}</th>
|
||||
<th>{{ sylius_resource_sort('city') }}</th>
|
||||
<th>{{ sylius_resource_sort('street') }}</th>
|
||||
<th>{{ sylius_resource_sort('postcode') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for address in addresses %}
|
||||
<tr id="{{ address.id }}">
|
||||
<td>{{ address.id }}</td>
|
||||
<td>{{ address.firstname }}</td>
|
||||
<td>{{ address.lastname }}</td>
|
||||
<td>{{ address.country }}</td>
|
||||
<td>{{ address.province|default('---') }}</td>
|
||||
<td>{{ address.city }}</td>
|
||||
<td>{{ address.street }}</td>
|
||||
<td>{{ address.postcode }}</td>
|
||||
<td>
|
||||
<div class="btn-group pull-right">
|
||||
{{ buttons.show(path('sylius_address_show', {'id': address.id})) }}
|
||||
{{ buttons.edit(path('sylius_address_update', {'id': address.id})) }}
|
||||
{{ buttons.delete(path('sylius_address_delete', {'id': address.id})) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="alert alert-info">
|
||||
<h4 class="alert-heading">Information</h4>
|
||||
Your address book is empty
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endmacro %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusAddressingBundle:Address:_show.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_javascripts %}
|
||||
{{ parent() }}
|
||||
|
||||
{% javascripts output='assets/compiled/sylius-addressing.js'
|
||||
'bundles/syliusaddressing/js/sylius-addressing.js'
|
||||
%}
|
||||
<script type="text/javascript" src="{{ asset_url }}"></script>
|
||||
{% endjavascripts %}
|
||||
{% endblock %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusAddressingBundle:Address:_update.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Creating country <small>Use this form to add new item to country book</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_country_create') }}" method="post" class="form-horizontal" novalidate>
|
||||
{% include 'SyliusAddressingBundle:Country:_form.html.twig' %}
|
||||
{{ actions.create() }}
|
||||
</form>
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
{{ form_errors(form) }}
|
||||
|
||||
<fieldset>
|
||||
{{ form_row(form.name, {'attr': {'class': 'input-lg'}}) }}
|
||||
{{ form_row(form.isoName, {'attr': {'class': 'input-sm'}}) }}
|
||||
</fieldset>
|
||||
|
||||
{{ form_rest(form) }}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
{% import 'SyliusAddressingBundle:Country:macros.html.twig' as macros %}
|
||||
|
||||
<h1>Countries list <small>Here you can configure countries and provinces</small></h1>
|
||||
<hr />
|
||||
|
||||
<div class="well">
|
||||
{{ buttons.create(path('sylius_country_create'), 'add country') }}
|
||||
</div>
|
||||
|
||||
{% if countries.haveToPaginate()|default(false) %}
|
||||
{{ pagerfanta(countries, 'twitter_bootstrap_translated') }}
|
||||
{% endif %}
|
||||
|
||||
{{ macros.list(countries) }}
|
||||
|
||||
{% if countries.haveToPaginate() %}
|
||||
{{ pagerfanta(countries, 'twitter_bootstrap_translated') }}
|
||||
{% endif %}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Country updating <small>Use this form to edit existing country</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_country_update', {'id': country.id}) }}" method="post" class="form-horizontal" novalidate>
|
||||
{% include 'SyliusAddressingBundle:Country:_form.html.twig' %}
|
||||
{{ actions.update(path('sylius_country_list') ) }}
|
||||
</form>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusAddressingBundle:Country:_create.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusAddressingBundle:Country:_index.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
{% macro list(countries) %}
|
||||
|
||||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
|
||||
{% if countries|length > 0 %}
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ sylius_resource_sort('id', '#id') }}</th>
|
||||
<th>{{ sylius_resource_sort('name') }}</th>
|
||||
<th>{{ sylius_resource_sort('isoName', 'iso name') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for country in countries %}
|
||||
<tr>
|
||||
<td>{{ country.id }}</td>
|
||||
<td>{{ country.name }}</td>
|
||||
<td>{{ country.isoName }}</td>
|
||||
<td>
|
||||
<div class="btn-group pull-right">
|
||||
{{ buttons.create(path('sylius_province_create', {'countryId': country.id}), 'add province') }}
|
||||
{{ buttons.edit(path('sylius_country_update', {'id': country.id})) }}
|
||||
{{ buttons.delete(path('sylius_country_delete', {'id': country.id})) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% if country.hasProvinces %}
|
||||
<tr style="background-color: #f1f1f1;">
|
||||
<td colspan="4"><strong>Provinces</strong></td>
|
||||
</tr>
|
||||
{% for province in country.provinces %}
|
||||
<tr id="{{ province.id }}" style="background-color: #f1f1f1;">
|
||||
<td>{{ province.id }}</td>
|
||||
<td>{{ province.name }}</td>
|
||||
<td colspan="2">
|
||||
<div class="btn-group pull-right">
|
||||
{{ buttons.edit(path('sylius_province_update', {'countryId': country.id, 'id': province.id})) }}
|
||||
{{ buttons.delete(path('sylius_province_delete', {'countryId': country.id, 'id': province.id})) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="alert alert-info">
|
||||
<h4 class="alert-heading">Information</h4>
|
||||
There are no countries configured
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endmacro %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusAddressingBundle:Country:_update.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Creating province <small>Use this form to add new item to province book</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_province_create', {'countryId': province.country.id}) }}" method="post" class="form-horizontal" novalidate>
|
||||
{% include 'SyliusAddressingBundle:Province:_form.html.twig' %}
|
||||
{{ actions.create() }}
|
||||
</form>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<fieldset>
|
||||
{{ form_row(form.name, {'attr': {'class': 'input-lg'}}) }}
|
||||
</fieldset>
|
||||
|
||||
{{ form_rest(form) }}
|
||||
|
|
@ -1 +0,0 @@
|
|||
{{ form_row(form, {'attr': {'class': 'select2'}}) }}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Province updating <small>Use this form to edit existing province</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_province_update', {'countryId': province.country.id, 'id': province.id}) }}" method="post" class="form-horizontal" novalidate>
|
||||
{% include 'SyliusAddressingBundle:Province:_form.html.twig' %}
|
||||
{{ actions.update(path('sylius_country_list')) }}
|
||||
</form>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusAddressingBundle:Province:_create.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusAddressingBundle:Province:_update.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Creating zone <small>Use this form to add new zone</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_zone_create', {'id': zone.id}) }}" method="post" class="form-horizontal">
|
||||
{% include 'SyliusAddressingBundle:Zone:_form.html.twig' %}
|
||||
{{ actions.create(path('sylius_zone_list')) }}
|
||||
</form>
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
{{ form_errors(form) }}
|
||||
<fieldset>
|
||||
{{ form_row(form.name, {'attr': {'class': 'input-lg'}}) }}
|
||||
{{ form_row(form.type) }}
|
||||
{{ form_row(form.scope) }}
|
||||
<div class="control-group">
|
||||
{% for type in ['country', 'province', 'zone'] %}
|
||||
<div id="sylius-addressing-zone-members-{{ type }}" data-prototype="{{ form_widget(form.members.vars.prototypes['sylius_zone_member_' ~ type], {'attr': {'class': 'select2 input-lg'}})|e }}">
|
||||
{% if form.type.get('value') == type %}
|
||||
{% for member in form.members %}
|
||||
{% if member.offsetExists(form.type.get('value')) %}
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
{{ form_widget(member[form.type.get('value')], {'attr': {'class': 'select2 input-lg'}}) }}
|
||||
<a href="#" class="btn btn-danger collection-remove-btn"><i class="icon-trash icon-white"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
{% set prototypeId = 'sylius-addressing-zone-members-' ~ form.type.get('value')|default(constant('Sylius\\Component\\Addressing\\Model\\ZoneInterface::TYPE_COUNTRY')) %}
|
||||
<a href="#" class="btn btn-success" data-collection-button="add" data-prototype="{{ prototypeId }}" data-collection="{{ prototypeId }}">add member</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
{{ form_widget(form._token) }}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
{% import 'SyliusAddressingBundle:Zone:macros.html.twig' as macros %}
|
||||
|
||||
<h1>Zones list <small>Here you can configure zones</small></h1>
|
||||
<hr />
|
||||
|
||||
<div class="well">
|
||||
{{ buttons.create(path('sylius_zone_create'), 'add zone') }}
|
||||
</div>
|
||||
|
||||
{% if zones.haveToPaginate()|default(false) %}
|
||||
{{ pagerfanta(zones, 'twitter_bootstrap_translated') }}
|
||||
{% endif %}
|
||||
|
||||
{{ macros.list(zones) }}
|
||||
|
||||
{% if zones.haveToPaginate()|default(false) %}
|
||||
{{ pagerfanta(zones, 'twitter_bootstrap_translated') }}
|
||||
{% endif %}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Zone updating <small>Use this form to edit existing zone</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_zone_update', {'id': zone.id}) }}" method="post" class="form-horizontal">
|
||||
{% include 'SyliusAddressingBundle:Zone:_form.html.twig' %}
|
||||
{{ actions.update(path('sylius_zone_list')) }}
|
||||
</form>
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_javascripts %}
|
||||
{{ parent() }}
|
||||
|
||||
{% javascripts output='assets/compiled/sylius-addressing-zone.js'
|
||||
'bundles/syliusaddressing/js/sylius-addressing-zone.js'
|
||||
%}
|
||||
<script type="text/javascript" src="{{ asset_url }}"></script>
|
||||
{% endjavascripts %}
|
||||
{% endblock %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusAddressingBundle:Zone:_create.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusAddressingBundle:Zone:_index.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
{% macro list(zones) %}
|
||||
|
||||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
|
||||
{% if zones|length > 0 %}
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ sylius_resource_sort('id', '#id') }}</th>
|
||||
<th>{{ sylius_resource_sort('name') }}</th>
|
||||
<th>{{ sylius_resource_sort('type') }}</th>
|
||||
<th>{{ sylius_resource_sort('scope') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for zone in zones %}
|
||||
<tr id="{{ zone.id }}">
|
||||
<td>{{ zone.id }}</td>
|
||||
<td>{{ zone.name }}</td>
|
||||
<td>{{ zone.type }}</td>
|
||||
<td>{{ zone.scope }}</td>
|
||||
<td>
|
||||
<div class="btn-group pull-right">
|
||||
{{ buttons.edit(path('sylius_zone_update', {'id': zone.id})) }}
|
||||
{{ buttons.delete(path('sylius_zone_delete', {'id': zone.id})) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% if zone.hasMembers %}
|
||||
<tr style="background-color: #f1f1f1;">
|
||||
<td colspan="4"><strong>Members</strong></td>
|
||||
</tr>
|
||||
{% for member in zone.members %}
|
||||
<tr id="{{ member.id }}" style="background-color: #f1f1f1;">
|
||||
<td>{{ member.id }}</td>
|
||||
<td>{{ member.name }}</td>
|
||||
<td colspan="2">
|
||||
<div class="btn-group pull-right">
|
||||
{{ buttons.delete(path('sylius_zone_member_delete', {'zoneId': zone.id, 'id': member.id})) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="alert alert-info">
|
||||
<h4 class="alert-heading">Information</h4>
|
||||
There are no zones configured
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endmacro %}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_javascripts %}
|
||||
{{ parent() }}
|
||||
|
||||
{% javascripts output='assets/compiled/sylius-addressing-zone.js'
|
||||
'bundles/syliusaddressing/js/sylius-addressing-zone.js'
|
||||
%}
|
||||
<script type="text/javascript" src="{{ asset_url }}"></script>
|
||||
{% endjavascripts %}
|
||||
{% endblock %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusAddressingBundle:Zone:_update.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Settings <small>Use this form to update settings</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_settings') }}" method="post" class="form-horizontal">
|
||||
{{ form_widget(form) }}
|
||||
{{ actions.update() }}
|
||||
</form>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusSettingsBundle:Settings:_update.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Creating tax category <small>Use the form below to create new taxation category</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_tax_category_create') }}" method="post" class="form-horizontal" novalidate>
|
||||
{% include 'SyliusTaxationBundle:TaxCategory:_form.html.twig' %}
|
||||
{{ actions.create(path('sylius_tax_category_index')) }}
|
||||
</form>
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
{{ form_row(form.name, {'attr': {'class': 'input-lg'}}) }}
|
||||
{{ form_row(form.description, {'attr': {'class': 'input-lg'}, 'rows': 5}) }}
|
||||
|
||||
{{ form_rest(form) }}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
{% import 'SyliusTaxationBundle:TaxCategory:macros.html.twig' as macros %}
|
||||
|
||||
<h1>Taxation categories <small>Here you can configure the tax categories for your taxables</small></h1>
|
||||
|
||||
<div class="well">
|
||||
{{ buttons.create(path('sylius_tax_category_create'), 'new tax category') }}
|
||||
{{ buttons.manage(path('sylius_tax_rate_index'), 'manage tax rates') }}
|
||||
</div>
|
||||
|
||||
{% if tax_categories.haveToPaginate()|default(false) %}
|
||||
{{ pagerfanta(tax_categories, 'twitter_bootstrap_translated') }}
|
||||
{% endif %}
|
||||
|
||||
{{ macros.list(tax_categories) }}
|
||||
|
||||
{% if tax_categories.haveToPaginate()|default(false) %}
|
||||
{{ pagerfanta(tax_categories, 'twitter_bootstrap_translated') }}
|
||||
{% endif %}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
|
||||
<h1>Taxation category details <small>{{ tax_category.name }}</small></h1>
|
||||
<hr>
|
||||
<div class="well">
|
||||
{{ buttons.manage(path('sylius_tax_category_index'), 'manage taxation categories') }}
|
||||
{{ buttons.edit(path('sylius_tax_category_update', {'id': tax_category.id})) }}
|
||||
{{ buttons.delete(path('sylius_tax_category_delete', {'id': tax_category.id})) }}
|
||||
</div>
|
||||
|
||||
<div class="well">
|
||||
{{ tax_category.description|default('No description') }}
|
||||
</div>
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Editing tax category <small>{{ tax_category.name }}</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_tax_category_update', {'id': tax_category.id}) }}" method="post" class="form-horizontal" novalidate>
|
||||
{% include 'SyliusTaxationBundle:TaxCategory:_form.html.twig' %}
|
||||
{{ actions.update(path('sylius_tax_category_show', {'id': tax_category.id})) }}
|
||||
</form>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxationBundle:TaxCategory:_create.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxationBundle:TaxCategory:_index.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
{% macro list(tax_categories) %}
|
||||
|
||||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
|
||||
{% if tax_categories|length > 0 %}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ sylius_resource_sort('id', '#id') }}</th>
|
||||
<th>{{ sylius_resource_sort('name') }}</th>
|
||||
<th>{{ sylius_resource_sort('updatedAt', 'last updated') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for tax_category in tax_categories %}
|
||||
<tr>
|
||||
<td>{{ tax_category.id }}</td>
|
||||
<td>{{ tax_category.name }}</td>
|
||||
<td>{{ tax_category.updatedAt|date }}</td>
|
||||
<td>
|
||||
<div class="btn-group pull-right">
|
||||
{{ buttons.show(path('sylius_tax_category_show', {'id': tax_category.id})) }}
|
||||
{{ buttons.edit(path('sylius_tax_category_update', {'id': tax_category.id})) }}
|
||||
{{ buttons.delete(path('sylius_tax_category_delete', {'id': tax_category.id})) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="alert alert-info">
|
||||
<h4 class="alert-heading">Information</h4>
|
||||
You have no tax categories configured
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endmacro %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxationBundle:TaxCategory:_show.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxationBundle:TaxCategory:_update.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Creating tax rate <small>Use the form below to create new taxation rate</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_tax_rate_create') }}" method="post" class="form-horizontal" novalidate>
|
||||
{% include 'SyliusTaxationBundle:TaxRate:_form.html.twig' %}
|
||||
{{ actions.create(path('sylius_tax_rate_index')) }}
|
||||
</form>
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
{{ form_row(form.category, {'attr': {'class': 'input-lg'}}) }}
|
||||
{{ form_row(form.name, {'attr': {'class': 'input-lg'}, 'rows': 5}) }}
|
||||
{{ form_row(form.amount, {'attr': {'class': 'input-sm'}}) }}
|
||||
{{ form_row(form.includedInPrice) }}
|
||||
{{ form_row(form.calculator, {'attr': {'class': 'input-lg'}}) }}
|
||||
|
||||
{{ form_rest(form) }}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
{% import 'SyliusTaxationBundle:TaxRate:macros.html.twig' as macros %}
|
||||
|
||||
<h1>Tax rates <small>Configure your tax tax_rates</small></h1>
|
||||
|
||||
<div class="well">
|
||||
{{ buttons.manage(path('sylius_tax_category_index'), 'manage taxation categories') }}
|
||||
{{ buttons.create(path('sylius_tax_rate_create'), 'new tax rate') }}
|
||||
</div>
|
||||
|
||||
{% if tax_rates.haveToPaginate()|default(false) %}
|
||||
{{ pagerfanta(tax_rates, 'twitter_bootstrap_translated') }}
|
||||
{% endif %}
|
||||
|
||||
{{ macros.list(tax_rates) }}
|
||||
|
||||
{% if tax_rates.haveToPaginate()|default(false) %}
|
||||
{{ pagerfanta(tax_rates, 'twitter_bootstrap_translated') }}
|
||||
{% endif %}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
|
||||
<h1>Tax rate details <small>{{ tax_rate.name }}</small></h1>
|
||||
<hr>
|
||||
|
||||
<div class="well">
|
||||
{{ buttons.manage(path('sylius_tax_rate_index'), 'manage tax rates') }}
|
||||
{{ buttons.edit(path('sylius_tax_rate_update', {'id': tax_rate.id})) }}
|
||||
{{ buttons.delete(path('sylius_tax_rate_delete', {'id': tax_rate.id})) }}
|
||||
</div>
|
||||
|
||||
<table class="table table-bordered table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'sylius.tax_rate.category'|trans }}</th>
|
||||
<th>{{ 'sylius.tax_rate.name'|trans }}</th>
|
||||
<th>{{ 'sylius.tax_rate.amount'|trans }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ tax_rate.category }}</td>
|
||||
<td>{{ tax_rate.name }}</td>
|
||||
<td>{{ tax_rate.amountAsPercentage }}%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Editing tax rate <small>{{ tax_rate.name }}</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_tax_rate_update', {'id': tax_rate.id}) }}" method="post" class="form-horizontal" novalidate>
|
||||
{% include 'SyliusTaxationBundle:TaxRate:_form.html.twig' %}
|
||||
{{ actions.update(path('sylius_tax_rate_show', {'id': tax_rate.id})) }}
|
||||
</form>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxationBundle:TaxRate:_create.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxationBundle:TaxRate:_index.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
{% macro list(tax_rates) %}
|
||||
|
||||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
|
||||
{% if tax_rates|length > 0 %}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ sylius_resource_sort('id', '#id') }}</th>
|
||||
<th>{{ sylius_resource_sort('category') }}</th>
|
||||
<th>{{ sylius_resource_sort('name') }}</th>
|
||||
<th>{{ sylius_resource_sort('amount') }}</th>
|
||||
<th>{{ sylius_resource_sort('includedInPrice', 'included in price?') }}</th>
|
||||
<th>{{ sylius_resource_sort('calculator') }}</th>
|
||||
<th>{{ sylius_resource_sort('updatedAt', 'last updated') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for tax_rate in tax_rates %}
|
||||
<tr>
|
||||
<td>{{ tax_rate.id }}</td>
|
||||
<td>{{ tax_rate.category }}</td>
|
||||
<td>{{ tax_rate.name }}</td>
|
||||
<td>{{ tax_rate.amount }}</td>
|
||||
<td>
|
||||
<span class="label label-{{ tax_rate.includedInPrice ? 'success' : 'important'}}">
|
||||
{{ tax_rate.includedInPrice ? 'yes' : 'no'}}
|
||||
</span>
|
||||
</td>
|
||||
<td><span class="label label info">{{ tax_rate.calculator }}</span></td>
|
||||
<td>{{ tax_rate.updatedAt|date }}</td>
|
||||
<td>
|
||||
<div class="btn-group pull-right">
|
||||
{{ buttons.show(path('sylius_tax_rate_show', {'id': tax_rate.id})) }}
|
||||
{{ buttons.edit(path('sylius_tax_rate_update', {'id': tax_rate.id})) }}
|
||||
{{ buttons.delete(path('sylius_tax_rate_delete', {'id': tax_rate.id})) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="alert alert-info">
|
||||
<h4 class="alert-heading">Information</h4>
|
||||
You have no tax rates configured
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endmacro %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxationBundle:TaxRate:_show.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxationBundle:TaxRate:_update.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
{% set taxonomy = taxon.taxonomy %}
|
||||
|
||||
<h1>New taxon <small>Use this form to create new taxon</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_taxon_create', {'taxonomyId': taxonomy.id}) }}" method="post" class="form-horizontal">
|
||||
{% include 'SyliusTaxonomyBundle:Taxon:_form.html.twig' %}
|
||||
{{ actions.create(path('sylius_taxonomy_show', {'id': taxonomy.id})) }}
|
||||
</form>
|
||||
|
|
@ -1 +0,0 @@
|
|||
{{ form_widget(form) }}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
{% set taxonomy = taxon.taxonomy %}
|
||||
|
||||
<h1>New taxon <small>Use this form to create new taxon</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_taxon_update', {'taxonomyId': taxonomy.id, 'id': taxon.id}) }}" method="post" class="form-horizontal">
|
||||
{% include 'SyliusTaxonomyBundle:Taxon:_form.html.twig' %}
|
||||
{{ actions.update(path('sylius_taxonomy_show', {'id': taxonomy.id})) }}
|
||||
</form>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxonomyBundle:Taxon:_create.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
{% macro list(taxonomy, taxons) %}
|
||||
|
||||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
|
||||
{% if taxons|length > 0 %}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ _self.tree(taxonomy, taxons) }}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="alert alert-info">
|
||||
<h4 class="alert-heading">Information</h4>
|
||||
{{ 'sylius.taxon.no_taxons'|trans }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endmacro %}
|
||||
|
||||
{% macro tree(taxonomy, taxons) %}
|
||||
|
||||
{% for taxon in taxons %}
|
||||
<tr>
|
||||
<td>
|
||||
{% for i in 1..taxon.level %}<i class="icon-caret-right"></i>{% if not loop.last %} {% endif %}{% endfor %}
|
||||
{{ taxon.name }}
|
||||
</td>
|
||||
<td>
|
||||
<div class="pull-right">
|
||||
{{ buttons.edit(path('sylius_taxon_update', {'taxonomyId': taxonomy.id, 'id': taxon.id})) }}
|
||||
{{ buttons.delete(path('sylius_taxon_delete', {'taxonomyId': taxonomy.id, 'id': taxon.id})) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% if taxon.children|length > 0 %}
|
||||
{{ _self.tree(taxonomy, taxon.children) }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxonomyBundle:Taxon:_update.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>New taxonomy <small>Use this form to create new taxonomy</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_taxonomy_create') }}" method="post" class="form-horizontal">
|
||||
{% include 'SyliusTaxonomyBundle:Taxonomy:_form.html.twig' %}
|
||||
{{ actions.create(path('sylius_taxonomy_index')) }}
|
||||
</form>
|
||||
|
|
@ -1 +0,0 @@
|
|||
{{ form_widget(form) }}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
{% import 'SyliusTaxonomyBundle:Taxonomy:macros.html.twig' as macros %}
|
||||
|
||||
<h1>Categorization <small>Here you see the defined taxonomies</small></h1>
|
||||
<hr />
|
||||
|
||||
<div class="well">
|
||||
{{ buttons.create(path('sylius_taxonomy_create')) }}
|
||||
</div>
|
||||
|
||||
{% if taxonomies.haveToPaginate()|default(false) %}
|
||||
{{ pagerfanta(taxonomies, 'twitter_bootstrap_translated') }}
|
||||
{% endif %}
|
||||
|
||||
{{ macros.list(taxonomies) }}
|
||||
|
||||
{% if taxonomies.haveToPaginate()|default(false) %}
|
||||
{{ pagerfanta(taxonomies, 'twitter_bootstrap_translated') }}
|
||||
{% endif %}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
{% from 'SyliusTaxonomyBundle:Taxon:macros.html.twig' import list %}
|
||||
|
||||
<h1>{{ taxonomy.name }} <small>Taxonomy details</small></h1>
|
||||
<hr />
|
||||
<div class="well well-sm">
|
||||
{{ buttons.create(path('sylius_taxon_create', {'taxonomyId': taxonomy.id}), 'sylius.taxon.create_taxon'|trans) }}
|
||||
{{ buttons.manage(path('sylius_taxonomy_index'), 'sylius.taxon.manage_taxonomies'|trans) }}
|
||||
{{ buttons.edit(path('sylius_taxonomy_update', {'id': taxonomy.id}), 'sylius.taxon.update_taxonomy'|trans) }}
|
||||
{{ buttons.delete(path('sylius_taxonomy_delete', {'id': taxonomy.id}), 'sylius.taxon.delete_taxonomy'|trans) }}
|
||||
</div>
|
||||
<hr>
|
||||
{{ list(taxonomy, taxonomy.taxons) }}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% import 'SyliusResourceBundle:Macros:actions.html.twig' as actions %}
|
||||
|
||||
<h1>Updating taxonomy <small>Use this form to update existing taxonomy</small></h1>
|
||||
<hr />
|
||||
|
||||
<form action="{{ path('sylius_taxonomy_update', {'id': taxonomy.id}) }}" method="post" class="form-horizontal">
|
||||
{% include 'SyliusTaxonomyBundle:Taxonomy:_form.html.twig' %}
|
||||
{{ actions.update(path('sylius_taxonomy_index')) }}
|
||||
</form>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxonomyBundle:Taxonomy:_create.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxonomyBundle:Taxonomy:_index.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
{% macro list(taxonomies) %}
|
||||
|
||||
{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
|
||||
|
||||
{% if taxonomies|length > 0 %}
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ sylius_resource_sort('id') }}</th>
|
||||
<th>{{ sylius_resource_sort('name') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for taxonomy in taxonomies %}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ path('sylius_taxonomy_show', {'id': taxonomy.id}) }}" class="btn btn-link">
|
||||
{{ taxonomy.id }}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ path('sylius_taxonomy_show', {'id': taxonomy.id}) }}">
|
||||
<strong>{{ taxonomy.name }}</strong>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div class="pull-right">
|
||||
{{ buttons.create(path('sylius_taxon_create', {'taxonomyId': taxonomy.id}), 'sylius.taxon.create_taxon'|trans) }}
|
||||
{{ buttons.show(path('sylius_taxonomy_show', {'id': taxonomy.id}), 'sylius.taxon.manage_taxonomies'|trans) }}
|
||||
{{ buttons.edit(path('sylius_taxonomy_update', {'id': taxonomy.id}), 'sylius.taxon.update_taxonomy'|trans) }}
|
||||
{{ buttons.delete(path('sylius_taxonomy_delete', {'id': taxonomy.id}), 'sylius.taxon.delete_taxonomy'|trans) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="alert alert-info">
|
||||
<h4 class="alert-heading">Information</h4>
|
||||
{{ 'sylius.taxon.no_taxonomies'|trans }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endmacro %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxonomyBundle:Taxonomy:_show.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'SyliusResourceBundle::layout.html.twig' %}
|
||||
|
||||
{% block sylius_content %}
|
||||
{% include 'SyliusTaxonomyBundle:Taxonomy:_update.html.twig' %}
|
||||
{% endblock %}
|
||||
Loading…
Add table
Reference in a new issue