hide category if no export/import and add module category

modifié:         core/lib/Thelia/Config/Resources/export.xml
	modifié:         core/lib/Thelia/Config/Resources/import.xml
	modifié:         templates/backOffice/default/export.html
	modifié:         templates/backOffice/default/import.html
This commit is contained in:
Benjamin Perche
2014-08-05 10:30:57 +02:00
parent c453981d5a
commit 718ed2ae2d
4 changed files with 176 additions and 165 deletions

View File

@@ -17,11 +17,14 @@
<title locale="en_US">Content</title> <title locale="en_US">Content</title>
<title locale="fr_FR">Contenu</title> <title locale="fr_FR">Contenu</title>
</export_category> </export_category>
<export_category id="thelia.export.orders"> <export_category id="thelia.export.orders">
<title locale="en_US">Orders</title> <title locale="en_US">Orders</title>
<title locale="fr_FR">Commandes</title> <title locale="fr_FR">Commandes</title>
</export_category> </export_category>
<export_category id="thelia.export.modules">
<title locale="en_US">Modules</title>
<title locale="fr_FR">Modules</title>
</export_category>
</export_categories> </export_categories>
<exports> <exports>

View File

@@ -8,6 +8,10 @@
<title locale="fr_FR">Produits</title> <title locale="fr_FR">Produits</title>
<title locale="en_US">Products</title> <title locale="en_US">Products</title>
</import_category> </import_category>
<import_category id="thelia.import.modules">
<title locale="en_US">Modules</title>
<title locale="fr_FR">Modules</title>
</import_category>
</import_categories> </import_categories>
<imports> <imports>

View File

@@ -34,6 +34,7 @@
{module_include location='tools_top'} {module_include location='tools_top'}
{loop name="export-category" type="export-category" order=$category_order} {loop name="export-category" type="export-category" order=$category_order}
{ifloop rel="export-categ-list"}
{assign category_title $TITLE} {assign category_title $TITLE}
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
@@ -131,6 +132,7 @@
</div> </div>
</div> </div>
{/ifloop}
{/loop} {/loop}
{elseloop rel="export-category"} {elseloop rel="export-category"}

View File

@@ -34,6 +34,7 @@
{module_include location='tools_top'} {module_include location='tools_top'}
{loop name="import-category" type="import-category" order=$category_order} {loop name="import-category" type="import-category" order=$category_order}
{ifloop rel="import-categ-list"}
{assign category_title $TITLE} {assign category_title $TITLE}
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
@@ -110,6 +111,7 @@
</div> </div>
</div> </div>
{/ifloop}
{/loop} {/loop}
{elseloop rel="import-category"} {elseloop rel="import-category"}