Finished product features management

This commit is contained in:
franck
2013-09-21 14:14:56 +02:00
parent e3644cd6cc
commit bb9e1d6999
4 changed files with 47 additions and 18 deletions

View File

@@ -10,7 +10,11 @@
<div class="row">
<div class="col-md-12">
<div class="well">
<p>{intl l="To use features or attributes on this product, please select a product template. You can define product templates in the Configuration section of the administration."}</p>
<p>{intl
l="To use features or attributes on this product, please select a product template. You can define product templates in the <a href=\"%tpl_mgmt_url\" target=\"tpl_window\">configuration section</a> of the administration."
tpl_mgmt_url={url path='/admin/configuration/templates'}
}
</p>
<label for="template_id" class="control-label">
{intl l='Current product template'} :
@@ -63,6 +67,12 @@
<div class="form-group">
<p class="title title-without-tabs">{intl l='Product Attributes'}</p>
<p>{intl
l="You can change attributes and their positions in <a href=\"%tpl_mgmt_url\" target=\"tpl_window\">the template configuration page</a>."
tpl_mgmt_url={url path='/admin/configuration/templates/update' template_id=$TEMPLATE}
}
</p>
<div class="alert alert-danger">Please code me baby, oh yeah ! Code me NOW !</div>
</div>
</div>
@@ -75,6 +85,12 @@
<div class="form-group">
<p class="title title-without-tabs">{intl l='Product Features'}</p>
<p>{intl
l="You can change feature products and their positions in <a href=\"%tpl_mgmt_url\" target=\"tpl_window\">the template configuration page</a>."
tpl_mgmt_url={url path='/admin/configuration/templates/update' template_id=$TEMPLATE}
}
</p>
<div class="table-responsive">
<table class="table table-striped table-condensed table-left-aligned">
<thead>
@@ -88,7 +104,7 @@
</thead>
<tbody>
{loop name="product-features" type="feature" order="manual" product="$product_id" backend_context="1" lang="$edit_language_id"}
{loop name="product-features" type="feature" order="manual" product=$product_id backend_context="1" lang="$edit_language_id"}
<tr>
<td>{$TITLE}</td>
@@ -144,9 +160,9 @@
{elseloop rel="product-features"}
<tr>
<td>
<td colspan="2">
<div class="alert alert-info">
{intl l="This product contains no features"}
{intl l="This product template does not contains any features"}
</div>
</td>
</tr>