All tables are now responsive

This commit is contained in:
mespeche
2013-09-19 17:01:17 +02:00
parent 1627b80df7
commit 8a5f15c952
27 changed files with 2438 additions and 2370 deletions

View File

@@ -25,7 +25,8 @@
{/elseloop} {/elseloop}
</div> </div>
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<table class="table table-striped table-condensed table-left-aligned">
<thead> <thead>
<tr> <tr>
<th>{intl l='ID'}</th> <th>{intl l='ID'}</th>
@@ -72,7 +73,7 @@
{/elseloop} {/elseloop}
</tbody> </tbody>
</table> </table>
</div>
{* Delete value confirmation dialog *} {* Delete value confirmation dialog *}
{capture "delete_attribute_dialog"} {capture "delete_attribute_dialog"}

View File

@@ -25,7 +25,8 @@
{/elseloop} {/elseloop}
</div> </div>
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<table class="table table-striped table-condensed table-left-aligned">
<thead> <thead>
<tr> <tr>
<th>{intl l='ID'}</th> <th>{intl l='ID'}</th>
@@ -72,6 +73,7 @@
{/elseloop} {/elseloop}
</tbody> </tbody>
</table> </table>
</div>
{* Delete value confirmation dialog *} {* Delete value confirmation dialog *}

View File

@@ -77,95 +77,97 @@
<div class="alert alert-info"> <div class="alert alert-info">
{intl l="Enter here all possible attribute values."} {intl l="Enter here all possible attribute values."}
</div> </div>
<div class="table-responsive">
<table class="table table-striped table-condensed table-left-aligned">
<thead>
<tr>
<th>
{admin_sortable_header
current_order=$attributeav_order
order='id'
reverse_order='id_reverse'
request_parameter_name='attributeav_order'
path={url path='/admin/configuration/attributes/update' attribute_id=$attribute_id}
label="{intl l='ID'}"
}
</th>
<table class="table table-striped table-condensed table-left-aligned"> <th>
<thead> {admin_sortable_header
<tr> current_order=$attributeav_order
<th> order='alpha'
{admin_sortable_header reverse_order='alpha_reverse'
current_order=$attributeav_order request_parameter_name='attributeav_order'
order='id' path={url path='/admin/configuration/attributes/update' attribute_id=$attribute_id}
reverse_order='id_reverse' label="{intl l='Value'}"
request_parameter_name='attributeav_order' }
path={url path='/admin/configuration/attributes/update' attribute_id=$attribute_id} </th>
label="{intl l='ID'}"
}
</th>
<th> <th class="text-center">
{admin_sortable_header {admin_sortable_header
current_order=$attributeav_order current_order=$attributeav_order
order='alpha' order='manual'
reverse_order='alpha_reverse' reverse_order='manual_reverse'
request_parameter_name='attributeav_order' request_parameter_name='attributeav_order'
path={url path='/admin/configuration/attributes/update' attribute_id=$attribute_id} path={url path='/admin/configuration/attributes/update' attribute_id=$attribute_id}
label="{intl l='Value'}" label="{intl l="Position"}"
} }
</th> </th>
<th class="text-center"> {module_include location='attributes_value_table_header'}
{admin_sortable_header
current_order=$attributeav_order
order='manual'
reverse_order='manual_reverse'
request_parameter_name='attributeav_order'
path={url path='/admin/configuration/attributes/update' attribute_id=$attribute_id}
label="{intl l="Position"}"
}
</th>
{module_include location='attributes_value_table_header'} <th class="actions">{intl l="Actions"}</th>
</tr>
</thead>
<th class="actions">{intl l="Actions"}</th> <tbody>
</tr> {loop name="list" type="attribute_availability" attribute=$attribute_id backend_context="1" lang=$edit_language_id order=$attributeav_order}
</thead> <tr>
<td>{$ID}</td>
<tbody> <td>
{loop name="list" type="attribute_availability" attribute=$attribute_id backend_context="1" lang=$edit_language_id order=$attributeav_order} {* FIXME : integrate this in the encolsing form to provide standard form processing *}
<tr> <input class="js-edit form-control" type="text" name="attribute_values[{$ID}]" value="{$TITLE}" />
<td>{$ID}</td> </td>
<td> <td class="text-center">
{* FIXME : integrate this in the encolsing form to provide standard form processing *} {admin_position_block
<input class="js-edit form-control" type="text" name="attribute_values[{$ID}]" value="{$TITLE}" /> permission="admin.attributes.edit"
</td> path={url path='/admin/configuration/attributes-av/update-position' attribute_id=$attribute_id}
url_parameter="attributeav_id"
in_place_edit_class="positionChange"
position="$POSITION"
id="$ID"
}
</td>
<td class="text-center"> {module_include location='attributes_value_table_row'}
{admin_position_block
permission="admin.attributes.edit"
path={url path='/admin/configuration/attributes-av/update-position' attribute_id=$attribute_id}
url_parameter="attributeav_id"
in_place_edit_class="positionChange"
position="$POSITION"
id="$ID"
}
</td>
{module_include location='attributes_value_table_row'} <td class="actions">
<div class="btn-group">
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.attribute-av.delete"}
<a class="btn btn-default btn-xs value-delete" title="{intl l='Delete this value'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal">
<span class="glyphicon glyphicon-trash"></span>
</a>
{/loop}
</div>
</td>
</tr>
{/loop}
<td class="actions"> {elseloop rel="list"}
<div class="btn-group"> <tr>
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.attribute-av.delete"} <td colspan="4">
<a class="btn btn-default btn-xs value-delete" title="{intl l='Delete this value'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"> <div class="alert alert-info">
<span class="glyphicon glyphicon-trash"></span> {intl l="No value has been created yet. Click the + button to create one."}
</a> </div>
{/loop} </td>
</div> </tr>
</td> {/elseloop}
</tr> </tbody>
{/loop} </table>
</div>
{elseloop rel="list"}
<tr>
<td colspan="4">
<div class="alert alert-info">
{intl l="No value has been created yet. Click the + button to create one."}
</div>
</td>
</tr>
{/elseloop}
</tbody>
</table>
</div> </div>
</form> </form>
{/form} {/form}

View File

@@ -21,117 +21,119 @@
<div class="col-md-12"> <div class="col-md-12">
<form action="#" method="post"> <form action="#" method="post">
<div class="general-block-decorator"> <div class="general-block-decorator">
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<caption> <table class="table table-striped table-condensed table-left-aligned">
{intl l='Thelia product attributes'} <caption>
{intl l='Thelia product attributes'}
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.attributes.create"} {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.attributes.create"}
<a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new product attribute'}" href="#creation_dialog" data-toggle="modal"> <a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new product attribute'}" href="#creation_dialog" data-toggle="modal">
<span class="glyphicon glyphicon-plus-sign"></span> <span class="glyphicon glyphicon-plus-sign"></span>
</a> </a>
{/loop} {/loop}
</caption> </caption>
<thead> <thead>
<tr> <tr>
<th> <th>
{admin_sortable_header {admin_sortable_header
current_order=$order current_order=$order
order='id' order='id'
reverse_order='id_reverse' reverse_order='id_reverse'
path='/admin/configuration/attributes' path='/admin/configuration/attributes'
label="{intl l='ID'}" label="{intl l='ID'}"
} }
</th> </th>
<th> <th>
{admin_sortable_header {admin_sortable_header
current_order=$order current_order=$order
order='alpha' order='alpha'
reverse_order='alpha_reverse' reverse_order='alpha_reverse'
path='/admin/configuration/attributes' path='/admin/configuration/attributes'
label="{intl l='Title'}" label="{intl l='Title'}"
} }
</th> </th>
<th class="text-center"> <th class="text-center">
{admin_sortable_header {admin_sortable_header
current_order=$order current_order=$order
order='manual' order='manual'
reverse_order='manual_reverse' reverse_order='manual_reverse'
path='/admin/configuration/attributes' path='/admin/configuration/attributes'
label="{intl l="Position"}" label="{intl l="Position"}"
} }
</th> </th>
{module_include location='attributes_table_header'} {module_include location='attributes_table_header'}
<th class="actions">{intl l="Actions"}</th> <th class="actions">{intl l="Actions"}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{loop name="list" type="attribute" backend_context="1" lang=$lang_id order=$order} {loop name="list" type="attribute" backend_context="1" lang=$lang_id order=$order}
<tr> <tr>
<td>{$ID}</td> <td>{$ID}</td>
<td> <td>
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.attributes.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.attributes.change"}
<a title="{intl l='Change this attribute'}" href="{url path='/admin/configuration/attributes/update' attribute_id=$ID}">{$TITLE}</a> <a title="{intl l='Change this attribute'}" href="{url path='/admin/configuration/attributes/update' attribute_id=$ID}">{$TITLE}</a>
{/loop} {/loop}
{elseloop rel="can_change"} {elseloop rel="can_change"}
{$TITLE} {$TITLE}
{/elseloop} {/elseloop}
</td> </td>
<td class="text-center"> <td class="text-center">
{admin_position_block {admin_position_block
permission="admin.attributes.edit" permission="admin.attributes.edit"
path="/admin/configuration/attributes/update-position" path="/admin/configuration/attributes/update-position"
url_parameter="attribute_id" url_parameter="attribute_id"
in_place_edit_class="positionChange" in_place_edit_class="positionChange"
position="$POSITION" position="$POSITION"
id="$ID" id="$ID"
} }
</td> </td>
{module_include location='attributes_table_row'} {module_include location='attributes_table_row'}
<td class="actions"> <td class="actions">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.attributes.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.attributes.change"}
<div class="btn-group"> <div class="btn-group">
<a class="btn btn-default btn-xs attribute-remove-from-all" title="{intl l='Remove this attribute from all product templates'}" href="#remove_from_all_dialog" data-id="{$ID}" data-toggle="modal"> <a class="btn btn-default btn-xs attribute-remove-from-all" title="{intl l='Remove this attribute from all product templates'}" href="#remove_from_all_dialog" data-id="{$ID}" data-toggle="modal">
<span class="glyphicon glyphicon-minus"></span> <span class="glyphicon glyphicon-minus"></span>
</a> </a>
<a class="btn btn-default btn-xs attribute-add-to-all" title="{intl l='Add this attribute to all product templates'}" href="#add_to_all_dialog" data-id="{$ID}" data-toggle="modal"> <a class="btn btn-default btn-xs attribute-add-to-all" title="{intl l='Add this attribute to all product templates'}" href="#add_to_all_dialog" data-id="{$ID}" data-toggle="modal">
<span class="glyphicon glyphicon-plus"></span> <span class="glyphicon glyphicon-plus"></span>
</a> </a>
</div> </div>
{/loop} {/loop}
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.attributes.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.attributes.change"}
<a class="btn btn-default btn-xs attribute-change" title="{intl l='Change this product attribute'}" href="{url path='/admin/configuration/attributes/update' attribute_id=$ID}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs attribute-change" title="{intl l='Change this product attribute'}" href="{url path='/admin/configuration/attributes/update' attribute_id=$ID}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.attributes.delete"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.attributes.delete"}
<a class="btn btn-default btn-xs attribute-delete" title="{intl l='Delete this product attribute'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs attribute-delete" title="{intl l='Delete this product attribute'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
{/loop} {/loop}
{elseloop rel="list"} {elseloop rel="list"}
<tr> <tr>
<td colspan="4"> <td colspan="4">
<div class="alert alert-info"> <div class="alert alert-info">
{intl l="No product attribute has been created yet. Click the + button to create one."} {intl l="No product attribute has been created yet. Click the + button to create one."}
</div> </div>
</td> </td>
</tr> </tr>
{/elseloop} {/elseloop}
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</form> </form>
</div> </div>

View File

@@ -15,163 +15,164 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="general-block-decorator"> <div class="general-block-decorator">
<div class="table-responsive">
<table class="table table-striped table-condensed" id="category_list"> <table class="table table-striped table-condensed" id="category_list">
<caption> <caption>
{* display parent category name, and get current cat ID *} {* display parent category name, and get current cat ID *}
{loop name="category_title" type="category" visible="*" id=$category_id} {loop name="category_title" type="category" visible="*" id=$category_id}
{intl l="Categories in %cat" cat=$TITLE} {intl l="Categories in %cat" cat=$TITLE}
{$cat_id = $ID} {$cat_id = $ID}
{/loop}
{elseloop rel="category_title"}
{intl l="Top level categories"}
{/elseloop}
{module_include location='category_list_caption'}
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.categories.create"}
<a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new category'}" href="#category_creation_dialog" data-toggle="modal">
<span class="glyphicon glyphicon-plus-sign"></span>
</a>
{/loop}
</caption>
{ifloop rel="category_list"}
<thead>
<tr>
<th class="object-title">
{admin_sortable_header
current_order=$category_order
order='id'
reverse_order='id_reverse'
path={url path='/admin/categories' id_category=$category_id}
request_parameter_name='category_order'
label="{intl l='ID'}"
}
</th>
<th class="object-image">&nbsp;</th>
<th class="object-title">
{admin_sortable_header
current_order=$category_order
order='alpha'
reverse_order='alpha_reverse'
path={url path='/admin/categories' id_category=$category_id}
request_parameter_name='category_order'
label="{intl l='Category title'}"
}
</th>
{module_include location='category_list_header'}
<th>
{admin_sortable_header
current_order=$category_order
order='visible'
reverse_order='visible_reverse'
path={url path='/admin/categories' id_category=$category_id}
request_parameter_name='category_order'
label="{intl l='Online'}"
}
</th>
<th>
{admin_sortable_header
current_order=$category_order
order='manual'
reverse_order='manual_reverse'
path={url path='/admin/categories' id_category=$category_id}
request_parameter_name='category_order'
label="{intl l='Position'}"
}
</th>
<th class="actions">{intl l='Actions'}</th>
</tr>
</thead>
<tbody>
{loop name="category_list" type="category" visible="*" parent=$category_id order=$category_order backend_context="1" lang=$lang_id}
<tr>
<td>{$ID}</td>
<td>
{loop type="image" name="cat_image" source="category" source_id="$ID" limit="1" width="50" height="50" resize_mode="crop" backend_context="1"}
<a href="{url path='admin/catalog' category_id=$ID}" title="{intl l='Browse this category'}"><img class="img-thumbnail" src="{$IMAGE_URL}" alt="{$TITLE}" /></a>
{/loop}
</td>
<td class="object-title">
<a href="{url path='admin/catalog' category_id=$ID}" title="{intl l='Browse this category'}">
{$TITLE}
</a>
</td>
{module_include location='category_list_row'}
<td>
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.categories.edit"}
<div class="make-switch switch-small categoryVisibleToggle" data-id="{$ID}" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>">
<input type="checkbox" class="categoryVisibleToggle" {if $VISIBLE == 1}checked="checked"{/if}>
</div>
{/loop} {/loop}
{elseloop rel="category_title"}
{elseloop rel="can_change"} {intl l="Top level categories"}
<div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>">
<input type="checkbox" class="disabled" disabled="disabled" {if $VISIBLE == 1}checked="checked"{/if}>
</div>
{/elseloop} {/elseloop}
</td>
<td> {module_include location='category_list_caption'}
{admin_position_block
permission="admin.categories.edit"
path={url path='admin/categories/update-position' category_id=$ID}
url_parameter="category_id"
in_place_edit_class="categoryPositionChange"
position=$POSITION
id=$ID
}
</td>
<td class="actions">
<div class="btn-group">
<a class="btn btn-default btn-xs" title="{intl l='Browse this category'}" href="{url path='admin/categories' category_id=$ID}"><i class="glyphicon glyphicon-folder-open"></i></a>
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.categories.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this category'}" href="{url path='/admin/categories/update' category_id=$ID}"><i class="glyphicon glyphicon-edit"></i></a>
{/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.categories.delete"}
<a class="btn btn-default btn-xs category-delete" title="{intl l='Delete this category and all its contents'}" href="#category_delete_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a>
{/loop}
</div>
</td>
</tr>
{/loop}
</tbody>
{/ifloop}
{elseloop rel="category_list"}
<thead>
<tr>
<td class="message">
<div class="alert alert-info">
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.categories.create"} {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.categories.create"}
{intl l="This category has no sub-categories. To create a new one, click the + button above."} <a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new category'}" href="#category_creation_dialog" data-toggle="modal">
<span class="glyphicon glyphicon-plus-sign"></span>
</a>
{/loop} {/loop}
</caption>
{elseloop rel="can_create"} {ifloop rel="category_list"}
{intl l="This category has no sub-categories."} <thead>
{/elseloop} <tr>
</div> <th class="object-title">
</td> {admin_sortable_header
</tr> current_order=$category_order
</thead> order='id'
{/elseloop} reverse_order='id_reverse'
</table> path={url path='/admin/categories' id_category=$category_id}
request_parameter_name='category_order'
label="{intl l='ID'}"
}
</th>
<th class="object-image">&nbsp;</th>
<th class="object-title">
{admin_sortable_header
current_order=$category_order
order='alpha'
reverse_order='alpha_reverse'
path={url path='/admin/categories' id_category=$category_id}
request_parameter_name='category_order'
label="{intl l='Category title'}"
}
</th>
{module_include location='category_list_header'}
<th>
{admin_sortable_header
current_order=$category_order
order='visible'
reverse_order='visible_reverse'
path={url path='/admin/categories' id_category=$category_id}
request_parameter_name='category_order'
label="{intl l='Online'}"
}
</th>
<th>
{admin_sortable_header
current_order=$category_order
order='manual'
reverse_order='manual_reverse'
path={url path='/admin/categories' id_category=$category_id}
request_parameter_name='category_order'
label="{intl l='Position'}"
}
</th>
<th class="actions">{intl l='Actions'}</th>
</tr>
</thead>
<tbody>
{loop name="category_list" type="category" visible="*" parent=$category_id order=$category_order backend_context="1" lang=$lang_id}
<tr>
<td>{$ID}</td>
<td>
{loop type="image" name="cat_image" source="category" source_id="$ID" limit="1" width="50" height="50" resize_mode="crop" backend_context="1"}
<a href="{url path='admin/catalog' category_id=$ID}" title="{intl l='Browse this category'}"><img class="img-thumbnail" src="{$IMAGE_URL}" alt="{$TITLE}" /></a>
{/loop}
</td>
<td class="object-title">
<a href="{url path='admin/catalog' category_id=$ID}" title="{intl l='Browse this category'}">
{$TITLE}
</a>
</td>
{module_include location='category_list_row'}
<td>
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.categories.edit"}
<div class="make-switch switch-small categoryVisibleToggle" data-id="{$ID}" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>">
<input type="checkbox" class="categoryVisibleToggle" {if $VISIBLE == 1}checked="checked"{/if}>
</div>
{/loop}
{elseloop rel="can_change"}
<div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>">
<input type="checkbox" class="disabled" disabled="disabled" {if $VISIBLE == 1}checked="checked"{/if}>
</div>
{/elseloop}
</td>
<td>
{admin_position_block
permission="admin.categories.edit"
path={url path='admin/categories/update-position' category_id=$ID}
url_parameter="category_id"
in_place_edit_class="categoryPositionChange"
position=$POSITION
id=$ID
}
</td>
<td class="actions">
<div class="btn-group">
<a class="btn btn-default btn-xs" title="{intl l='Browse this category'}" href="{url path='admin/categories' category_id=$ID}"><i class="glyphicon glyphicon-folder-open"></i></a>
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.categories.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this category'}" href="{url path='/admin/categories/update' category_id=$ID}"><i class="glyphicon glyphicon-edit"></i></a>
{/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.categories.delete"}
<a class="btn btn-default btn-xs category-delete" title="{intl l='Delete this category and all its contents'}" href="#category_delete_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a>
{/loop}
</div>
</td>
</tr>
{/loop}
</tbody>
{/ifloop}
{elseloop rel="category_list"}
<thead>
<tr>
<td class="message">
<div class="alert alert-info">
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.categories.create"}
{intl l="This category has no sub-categories. To create a new one, click the + button above."}
{/loop}
{elseloop rel="can_create"}
{intl l="This category has no sub-categories."}
{/elseloop}
</div>
</td>
</tr>
</thead>
{/elseloop}
</table>
</div>
</div> </div>
</div> </div>
</div> </div>
@@ -181,7 +182,7 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="general-block-decorator"> <div class="general-block-decorator">
<div class="table-responsive">
<table class="table table-striped table-condensed"> <table class="table table-striped table-condensed">
<caption> <caption>
{* display parent category name *} {* display parent category name *}
@@ -326,8 +327,7 @@
</thead> </thead>
{/elseloop} {/elseloop}
</table> </table>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -194,54 +194,56 @@
</form> </form>
</div> </div>
<div class="table-responsive">
<table class="table table-striped table-condensed table-left-aligned">
<thead>
<tr>
<th>{intl l='ID'}</th>
<table class="table table-striped table-condensed table-left-aligned"> <th>{intl l='Attribute title'}</th>
<thead>
<tr>
<th>{intl l='ID'}</th>
<th>{intl l='Attribute title'}</th> {module_include location='category_contents_table_header'}
{module_include location='category_contents_table_header'} <th class="actions">{intl l="Actions"}</th>
</tr>
</thead>
<th class="actions">{intl l="Actions"}</th> <tbody>
</tr> {loop name="assigned_contents" type="associated_content" category="$category_id" backend_context="1" lang="$edit_language_id"}
</thead> <tr>
<td>{$ID}</td>
<tbody> <td>
{loop name="assigned_contents" type="associated_content" category="$category_id" backend_context="1" lang="$edit_language_id"} {$TITLE}
<tr> </td>
<td>{$ID}</td>
<td> {module_include location='category_contents_table_row'}
{$TITLE}
</td>
{module_include location='category_contents_table_row'} <td class="actions">
<div class="btn-group">
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.category.content.delete"}
<a class="btn btn-default btn-xs delete-content" title="{intl l='Delete this content'}" href="#delete_content_dialog" data-id="{$ID}" data-toggle="modal">
<span class="glyphicon glyphicon-trash"></span>
</a>
{/loop}
</div>
</td>
</tr>
{/loop}
<td class="actions"> {elseloop rel="assigned_contents"}
<div class="btn-group"> <tr>
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.category.content.delete"} <td colspan="3">
<a class="btn btn-default btn-xs delete-content" title="{intl l='Delete this content'}" href="#delete_content_dialog" data-id="{$ID}" data-toggle="modal"> <div class="alert alert-info">
<span class="glyphicon glyphicon-trash"></span> {intl l="This category contains no contents"}
</a> </div>
{/loop} </td>
</div> </tr>
</td> {/elseloop}
</tr> </tbody>
{/loop} </table>
</div>
{elseloop rel="assigned_contents"}
<tr>
<td colspan="3">
<div class="alert alert-info">
{intl l="This category contains no contents"}
</div>
</td>
</tr>
{/elseloop}
</tbody>
</table>
</div> </div>
</div> </div>

View File

@@ -17,151 +17,156 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="menu-list-table general-block-decorator"> <div class="menu-list-table general-block-decorator">
<table class="table table-striped table-condensed"> <div class="table-responsive">
<caption>{intl l='Product catalog configuration'}</caption> <table class="table table-striped table-condensed">
<caption>{intl l='Product catalog configuration'}</caption>
{module_include location='catalog_configuration_top'} {module_include location='catalog_configuration_top'}
{loop type="auth" name="pcc1" roles="ADMIN" permissions="admin.configuration.templates"} {loop type="auth" name="pcc1" roles="ADMIN" permissions="admin.configuration.templates"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/templates'}">{intl l='Product templates'}</a></td> <td><a href="{url path='/admin/configuration/templates'}">{intl l='Product templates'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/templates'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/templates'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{loop type="auth" name="pcc2" roles="ADMIN" permissions="admin.configuration.attributes"} {loop type="auth" name="pcc2" roles="ADMIN" permissions="admin.configuration.attributes"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/attributes'}">{intl l='Product attributes'}</a></td> <td><a href="{url path='/admin/configuration/attributes'}">{intl l='Product attributes'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/attributes'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/attributes'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{loop type="auth" name="pcc3" roles="ADMIN" permissions="admin.configuration.features"} {loop type="auth" name="pcc3" roles="ADMIN" permissions="admin.configuration.features"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/features'}">{intl l='Product features'}</a></td> <td><a href="{url path='/admin/configuration/features'}">{intl l='Product features'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/features'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/features'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{loop type="auth" name="pcc4" roles="ADMIN" permissions="admin.configuration.messages"} {loop type="auth" name="pcc4" roles="ADMIN" permissions="admin.configuration.messages"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/messages'}">{intl l='Mailing templates'}</a></td> <td><a href="{url path='/admin/configuration/messages'}">{intl l='Mailing templates'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/messages'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/messages'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{loop type="auth" name="pcc5" roles="ADMIN" permissions="admin.configuration.currencies"} {loop type="auth" name="pcc5" roles="ADMIN" permissions="admin.configuration.currencies"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/currencies'}">{intl l='Currencies'}</a></td> <td><a href="{url path='/admin/configuration/currencies'}">{intl l='Currencies'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/currencies'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/currencies'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{module_include location='catalog_configuration_bottom'} {module_include location='catalog_configuration_bottom'}
</table>
</table> </div>
</div> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<div class="menu-list-table general-block-decorator"> <div class="menu-list-table general-block-decorator">
<table class="table table-striped table-condensed"> <div class="table-responsive">
<caption>{intl l='Shipping configuration'}</caption> <table class="table table-striped table-condensed">
<caption>{intl l='Shipping configuration'}</caption>
{module_include location='shipping_configuration_top'} {module_include location='shipping_configuration_top'}
{loop type="auth" name="pcc1" roles="ADMIN" permissions="admin.configuration.contries"} {loop type="auth" name="pcc1" roles="ADMIN" permissions="admin.configuration.contries"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/countries'}">{intl l='Countries'}</a></td> <td><a href="{url path='/admin/configuration/countries'}">{intl l='Countries'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/countries'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/countries'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{loop type="auth" name="pcc2" roles="ADMIN" permissions="admin.configuration.shipping_zones"} {loop type="auth" name="pcc2" roles="ADMIN" permissions="admin.configuration.shipping_zones"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/shipping_zones'}">{intl l='Shipping zones'}</a></td> <td><a href="{url path='/admin/configuration/shipping_zones'}">{intl l='Shipping zones'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/shipping_zones'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/shipping_zones'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{loop type="auth" name="pcc3" roles="ADMIN" permissions="admin.configuration.shipping_configuration"} {loop type="auth" name="pcc3" roles="ADMIN" permissions="admin.configuration.shipping_configuration"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/shipping_configuration'}">{intl l='Shipping configuration'}</a></td> <td><a href="{url path='/admin/configuration/shipping_configuration'}">{intl l='Shipping configuration'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/shipping_configuration'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/shipping_configuration'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{module_include location='shipping_configuration_bottom'} {module_include location='shipping_configuration_bottom'}
</table> </table>
</div>
</div> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<div class="menu-list-table general-block-decorator"> <div class="menu-list-table general-block-decorator">
<table class="table table-striped table-condensed"> <div class="table-responsive">
<caption>{intl l='System parameters'}</caption> <table class="table table-striped table-condensed">
<caption>{intl l='System parameters'}</caption>
{module_include location='system_configuration_top'} {module_include location='system_configuration_top'}
{loop type="auth" name="pcc1" roles="ADMIN" permissions="admin.configuration.modules"} {loop type="auth" name="pcc1" roles="ADMIN" permissions="admin.configuration.modules"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/modules'}">{intl l='Modules activation'}</a></td> <td><a href="{url path='/admin/configuration/modules'}">{intl l='Modules activation'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/modules'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/modules'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{loop type="auth" name="pcc2" roles="ADMIN" permissions="admin.configuration.variables"} {loop type="auth" name="pcc2" roles="ADMIN" permissions="admin.configuration.variables"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/variables'}">{intl l='System variables'}</a></td> <td><a href="{url path='/admin/configuration/variables'}">{intl l='System variables'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/variables'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/variables'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{loop type="auth" name="pcc3" roles="ADMIN" permissions="admin.configuration.admin_profiles"} {loop type="auth" name="pcc3" roles="ADMIN" permissions="admin.configuration.admin_profiles"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/admin_profiles'}">{intl l='Back-office profiles'}</a></td> <td><a href="{url path='/admin/configuration/admin_profiles'}">{intl l='Back-office profiles'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/admin_profiles'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/admin_profiles'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{loop type="auth" name="pcc4" roles="ADMIN" permissions="admin.configuration.admin_users"} {loop type="auth" name="pcc4" roles="ADMIN" permissions="admin.configuration.admin_users"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/admin_users'}">{intl l='Back-office users'}</a></td> <td><a href="{url path='/admin/configuration/admin_users'}">{intl l='Back-office users'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/admin_users'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/admin_users'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{loop type="auth" name="pcc5" roles="ADMIN" permissions="admin.configuration.languages"} {loop type="auth" name="pcc5" roles="ADMIN" permissions="admin.configuration.languages"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/languages'}">{intl l='Languages &amp; URLs'}</a></td> <td><a href="{url path='/admin/configuration/languages'}">{intl l='Languages &amp; URLs'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/languages'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/languages'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{loop type="auth" name="pcc6" roles="ADMIN" permissions="admin.configuration.mailing_system"} {loop type="auth" name="pcc6" roles="ADMIN" permissions="admin.configuration.mailing_system"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/mailing_system'}">{intl l='Mailing system'}</a></td> <td><a href="{url path='/admin/configuration/mailing_system'}">{intl l='Mailing system'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/mailing_system'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/mailing_system'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{loop type="auth" name="pcc7" roles="ADMIN" permissions="admin.configuration.admin_logs"} {loop type="auth" name="pcc7" roles="ADMIN" permissions="admin.configuration.admin_logs"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/admin_logs'}">{intl l='Administration logs'}</a></td> <td><a href="{url path='/admin/configuration/admin_logs'}">{intl l='Administration logs'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/admin_logs'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/admin_logs'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{loop type="auth" name="pcc8" roles="ADMIN" permissions="admin.configuration.system_logs"} {loop type="auth" name="pcc8" roles="ADMIN" permissions="admin.configuration.system_logs"}
<tr> <tr>
<td><a href="{url path='/admin/configuration/system_logs'}">{intl l='System logs'}</a></td> <td><a href="{url path='/admin/configuration/system_logs'}">{intl l='System logs'}</a></td>
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/system_logs'}"><i class="glyphicon glyphicon-edit"></i></a></td> <td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/system_logs'}"><i class="glyphicon glyphicon-edit"></i></a></td>
</tr> </tr>
{/loop} {/loop}
{module_include location='system_configuration_bottom'} {module_include location='system_configuration_bottom'}
</table> </table>
</div>
</div> </div>
</div> </div>

View File

@@ -23,80 +23,80 @@
<form action="" method="post"> <form action="" method="post">
<div class="general-block-decorator"> <div class="general-block-decorator">
<div class="table-responsive">
<table class="table table-striped table-condensed"> <table class="table table-striped table-condensed">
<caption class="clearfix"> <caption class="clearfix">
{intl l='Countries'} {intl l='Countries'}
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.countries.create"} {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.countries.create"}
<a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new country'}" href="#add_country_dialog" data-toggle="modal"> <a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new country'}" href="#add_country_dialog" data-toggle="modal">
<span class="glyphicon glyphicon-plus-sign"></span> <span class="glyphicon glyphicon-plus-sign"></span>
</a> </a>
{/loop} {/loop}
</caption> </caption>
<thead> <thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Default</th>
<th>Shop</th>
<th>N° ISO</th>
<th>ISO Code</th>
{module_include location='countries_table_header'}
<th class="actions">{intl l='Actions'}</th>
</tr>
</thead>
<tbody>
{loop name="countries" type="country" backend_context="1" lang=$lang_id order=$order}
<tr> <tr>
<td>{$ID}</td> <th>ID</th>
<td>{$TITLE}</td> <th>Name</th>
<td> <th>Default</th>
<div class="make-switch switch-small switch-radio" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>"> <th>Shop</th>
<input class="change-default" type="radio" name="" value="{$ID}" {if $IS_DEFAULT}selected="selected"{/if}/> <th>N° ISO</th>
</div> <th>ISO Code</th>
</td>
<td>
<div class="make-switch switch-small switch-radio" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>">
<input class="change-default" type="radio" name="" value="{$ID}" {if $IS_DEFAULT}selected="selected"{/if}/>
</div>
</td>
<td>{$ISOCODE}</td>
<td>{$ISOALPHA3}</td>
{module_include location='countries_table_row'} {module_include location='countries_table_header'}
<td class="actions"> <th class="actions">{intl l='Actions'}</th>
<div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.countries.change"}
<a class="btn btn-default btn-xs country-change" title="{intl l='Change this country'}" href="{url path="/admin/configuration/countries/update/{$ID}"}">
<span class="glyphicon glyphicon-edit"></span>
</a>
{/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.configuration.countries.delete"}
<a class="btn btn-default btn-xs country-delete" title="{intl l='Delete this country'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal">
<span class="glyphicon glyphicon-trash"></span>
</a>
{/loop}
</div>
</td>
</tr> </tr>
{/loop} </thead>
{elseloop rel="countries"}
<tr>
<td colspan="8">
<div class="alert alert-info">
{intl l="No country has been created yet. Click the + button to create one."}
</div>
</td>
</tr>
{/elseloop}
</tbody>
</table>
<tbody>
{loop name="countries" type="country" backend_context="1" lang=$lang_id order=$order}
<tr>
<td>{$ID}</td>
<td>{$TITLE}</td>
<td>
<div class="make-switch switch-small switch-radio" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>">
<input class="change-default" type="radio" name="" value="{$ID}" {if $IS_DEFAULT}selected="selected"{/if}/>
</div>
</td>
<td>
<div class="make-switch switch-small switch-radio" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>">
<input class="change-default" type="radio" name="" value="{$ID}" {if $IS_DEFAULT}selected="selected"{/if}/>
</div>
</td>
<td>{$ISOCODE}</td>
<td>{$ISOALPHA3}</td>
{module_include location='countries_table_row'}
<td class="actions">
<div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.countries.change"}
<a class="btn btn-default btn-xs country-change" title="{intl l='Change this country'}" href="{url path="/admin/configuration/countries/update/{$ID}"}">
<span class="glyphicon glyphicon-edit"></span>
</a>
{/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.configuration.countries.delete"}
<a class="btn btn-default btn-xs country-delete" title="{intl l='Delete this country'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal">
<span class="glyphicon glyphicon-trash"></span>
</a>
{/loop}
</div>
</td>
</tr>
{/loop}
{elseloop rel="countries"}
<tr>
<td colspan="8">
<div class="alert alert-info">
{intl l="No country has been created yet. Click the + button to create one."}
</div>
</td>
</tr>
{/elseloop}
</tbody>
</table>
</div>
</div> </div>
</form> </form>

View File

@@ -22,73 +22,77 @@
<section class="row"> <section class="row">
<div class="col-md-12 general-block-decorator"> <div class="col-md-12 general-block-decorator">
<table class="table table-striped tablesorter"> <div class="table-responsive">
<caption> <table class="table table-striped tablesorter">
{intl l='Enabled coupons'} <caption>
</caption> {intl l='Enabled coupons'}
<thead> </caption>
<tr> <thead>
<th>{block name="coupon-label-code"}{intl l='Code'}{/block}</th> <tr>
<th>{block name="coupon-label-title"}{intl l='Title'}{/block}</th> <th>{block name="coupon-label-code"}{intl l='Code'}{/block}</th>
<th>{block name="coupon-label-expiration-date"}{intl l='Expiration date'}{/block}</th> <th>{block name="coupon-label-title"}{intl l='Title'}{/block}</th>
<th>{block name="coupon-label-usage-left"}{intl l='Usage left'}{/block}</th> <th>{block name="coupon-label-expiration-date"}{intl l='Expiration date'}{/block}</th>
<th class="sorter-false filter-false">{block name="coupon-label-action"}{/block}</th> <th>{block name="coupon-label-usage-left"}{intl l='Usage left'}{/block}</th>
</tr> <th class="sorter-false filter-false">{block name="coupon-label-action"}{/block}</th>
</thead> </tr>
<tbody> </thead>
{loop type="coupon" name="list_coupon" is_enabled="1" backend_context="true"} <tbody>
<tr> {loop type="coupon" name="list_coupon" is_enabled="1" backend_context="true"}
<td>{block name="coupon-code"}<a href="{$urlReadCoupon|replace:'couponId':$ID}">{$CODE}</a>{/block}</td> <tr>
<td>{block name="coupon-title"}{$TITLE}{/block}</td> <td>{block name="coupon-code"}<a href="{$urlReadCoupon|replace:'couponId':$ID}">{$CODE}</a>{/block}</td>
<td>{block name="coupon-expiration-date"}{$EXPIRATION_DATE}{/block}</td> <td>{block name="coupon-title"}{$TITLE}{/block}</td>
<td>{block name="coupon-usage-left"}{$USAGE_LEFT}{/block}</td> <td>{block name="coupon-expiration-date"}{$EXPIRATION_DATE}{/block}</td>
<td> <td>{block name="coupon-usage-left"}{$USAGE_LEFT}{/block}</td>
{block name="coupon-action"} <td>
<a href="{$urlEditCoupon|replace:'couponId':$ID}" class="btn btn-default btn-primary btn-medium"> {block name="coupon-action"}
<span class="glyphicon glyphicon-edit"></span> {intl l='Edit'} <a href="{$urlEditCoupon|replace:'couponId':$ID}" class="btn btn-default btn-primary btn-medium">
</a> <span class="glyphicon glyphicon-edit"></span> {intl l='Edit'}
{/block} </a>
</td> {/block}
</tr> </td>
{/loop} </tr>
</tbody> {/loop}
</table> </tbody>
</table>
</div>
</div> </div>
</section> </section>
<section class="row"> <section class="row">
<div class="col-md-12 general-block-decorator"> <div class="col-md-12 general-block-decorator">
<table class="table table-striped tablesorter"> <div class="table-responsive">
<caption> <table class="table table-striped tablesorter">
{intl l='Disabled coupons'} <caption>
</caption> {intl l='Disabled coupons'}
<thead> </caption>
<tr> <thead>
<th>{block name="coupon-label-code"}{intl l='Code'}{/block}</th> <tr>
<th>{block name="coupon-label-title"}{intl l='Title'}{/block}</th> <th>{block name="coupon-label-code"}{intl l='Code'}{/block}</th>
<th>{block name="coupon-label-expiration-date"}{intl l='Expiration date'}{/block}</th> <th>{block name="coupon-label-title"}{intl l='Title'}{/block}</th>
<th>{block name="coupon-label-usage-left"}{intl l='Usage left'}{/block}</th> <th>{block name="coupon-label-expiration-date"}{intl l='Expiration date'}{/block}</th>
<th class="sorter-false filter-false">{block name="coupon-label-action"}{/block}</th> <th>{block name="coupon-label-usage-left"}{intl l='Usage left'}{/block}</th>
</tr> <th class="sorter-false filter-false">{block name="coupon-label-action"}{/block}</th>
</thead> </tr>
<tbody> </thead>
{loop type="coupon" name="list_coupon" is_enabled="0" backend_context="true"} <tbody>
<tr> {loop type="coupon" name="list_coupon" is_enabled="0" backend_context="true"}
<td>{block name="coupon-code"}<a href="{$urlReadCoupon|replace:'couponId':$ID}">{$CODE}</a>{/block}</td> <tr>
<td>{block name="coupon-title"}{$TITLE}{/block}</td> <td>{block name="coupon-code"}<a href="{$urlReadCoupon|replace:'couponId':$ID}">{$CODE}</a>{/block}</td>
<td>{block name="coupon-expiration-date"}{$EXPIRATION_DATE}{/block}</td> <td>{block name="coupon-title"}{$TITLE}{/block}</td>
<td>{block name="coupon-usage-left"}{$USAGE_LEFT}{/block}</td> <td>{block name="coupon-expiration-date"}{$EXPIRATION_DATE}{/block}</td>
<td> <td>{block name="coupon-usage-left"}{$USAGE_LEFT}{/block}</td>
{block name="coupon-action"} <td>
<a href="{$urlEditCoupon|replace:'couponId':$ID}" class="btn btn-default btn-primary btn-medium"> {block name="coupon-action"}
<span class="glyphicon glyphicon-edit"></span> {intl l='Edit'} <a href="{$urlEditCoupon|replace:'couponId':$ID}" class="btn btn-default btn-primary btn-medium">
</a> <span class="glyphicon glyphicon-edit"></span> {intl l='Edit'}
{/block} </a>
</td> {/block}
</tr> </td>
{/loop} </tr>
</tbody> {/loop}
</table> </tbody>
</table>
</div>
</div> </div>
</section> </section>

View File

@@ -27,120 +27,122 @@
{intl l='This coupon is disabled, you can enable to the bottom of this form.'} {intl l='This coupon is disabled, you can enable to the bottom of this form.'}
</div> </div>
{/if} {/if}
<table class="table table-striped"> <div class="table-responsive">
<tbody> <table class="table table-striped">
<tr> <tbody>
<td>{intl l='Title'}</td> <tr>
<td>{$TITLE}</td> <td>{intl l='Title'}</td>
</tr> <td>{$TITLE}</td>
<tr> </tr>
<td colspan="2"> <tr>
{if $IS_ENABLED} <td colspan="2">
<span class="label label-success"> {if $IS_ENABLED}
{intl l="Is enabled"} <span class="label label-success">
</span> {intl l="Is enabled"}
{else} </span>
<span class="label label-warning"> {else}
{intl l="Is disabled"} <span class="label label-warning">
</span> {intl l="Is disabled"}
{/if} </span>
</td> {/if}
</tr> </td>
<tr> </tr>
<td colspan="2"> <tr>
{$TOOLTIP} <td colspan="2">
</td> {$TOOLTIP}
</tr> </td>
<tr> </tr>
<td>{intl l='Amount'}</td> <tr>
<td>{$AMOUNT}</td> <td>{intl l='Amount'}</td>
</tr> <td>{$AMOUNT}</td>
<tr> </tr>
<td>{intl l='Expiration date'}</td> <tr>
<td>{$EXPIRATION_DATE} ({$DAY_LEFT_BEFORE_EXPIRATION} {intl l="days left"})</td> <td>{intl l='Expiration date'}</td>
</tr> <td>{$EXPIRATION_DATE} ({$DAY_LEFT_BEFORE_EXPIRATION} {intl l="days left"})</td>
<tr> </tr>
<td>{intl l='Usage left'}</td> <tr>
<td> <td>{intl l='Usage left'}</td>
{if $USAGE_LEFT} <td>
<span class="label label-success"> {if $USAGE_LEFT}
{$USAGE_LEFT} <span class="label label-success">
</span> {$USAGE_LEFT}
{else} </span>
<span class="label label-warning"> {else}
0 <span class="label label-warning">
</span> 0
{/if} </span>
</td> {/if}
</tr> </td>
<tr> </tr>
<td colspan="2"> <tr>
{if $IS_CUMULATIVE} <td colspan="2">
<span class="label label-success"> {if $IS_CUMULATIVE}
{intl l="May be cumulative"} <span class="label label-success">
</span> {intl l="May be cumulative"}
{else} </span>
<span class="label label-warning"> {else}
{intl l="Can't be cumulative"} <span class="label label-warning">
</span> {intl l="Can't be cumulative"}
{/if} </span>
</td> {/if}
</tr> </td>
<tr> </tr>
<td colspan="2"> <tr>
{if $IS_REMOVING_POSTAGE} <td colspan="2">
<span class="label label-warning"> {if $IS_REMOVING_POSTAGE}
{intl l="Will remove postage"} <span class="label label-warning">
</span> {intl l="Will remove postage"}
{else} </span>
<span class="label label-success"> {else}
{intl l="Won't remove postage"} <span class="label label-success">
</span> {intl l="Won't remove postage"}
{/if} </span>
</td> {/if}
</tr> </td>
<tr> </tr>
<td colspan="2"> <tr>
{if $IS_AVAILABLE_ON_SPECIAL_OFFERS} <td colspan="2">
<span class="label label-warning"> {if $IS_AVAILABLE_ON_SPECIAL_OFFERS}
{intl l="Will be available on special offers"} <span class="label label-warning">
</span> {intl l="Will be available on special offers"}
{else} </span>
<span class="label label-success"> {else}
{intl l="Won't be available on special offers"} <span class="label label-success">
</span> {intl l="Won't be available on special offers"}
{/if} </span>
</td> {/if}
</tr> </td>
<tr> </tr>
<td>{intl l='Application field'}</td> <tr>
<td> <td>{intl l='Application field'}</td>
<ul class="list-unstyled"> <td>
{foreach from=$APPLICATION_CONDITIONS item=rule name=rulesForeach} <ul class="list-unstyled">
{if !$smarty.foreach.rulesForeach.first} {foreach from=$APPLICATION_CONDITIONS item=rule name=rulesForeach}
<li><span class="label label-info">{intl l='And'}</span></li> {if !$smarty.foreach.rulesForeach.first}
{/if} <li><span class="label label-info">{intl l='And'}</span></li>
<li>{$rule nofilter}</li> {/if}
{/foreach} <li>{$rule nofilter}</li>
</ul> {/foreach}
</td> </ul>
</tr> </td>
<tr> </tr>
<td colspan="2">{$SHORT_DESCRIPTION}</td> <tr>
</tr> <td colspan="2">{$SHORT_DESCRIPTION}</td>
<tr> </tr>
<td colspan="2">{$DESCRIPTION}</td> <tr>
</tr> <td colspan="2">{$DESCRIPTION}</td>
<tr> </tr>
<td colspan="2"> <tr>
<a href="{$urlEditCoupon}" class="btn btn-default btn-primary btn-medium"> <td colspan="2">
<span class="icon-edit icon-white"></span> {intl l='Edit'} <a href="{$urlEditCoupon}" class="btn btn-default btn-primary btn-medium">
</a> <span class="icon-edit icon-white"></span> {intl l='Edit'}
</td> </a>
</tr> </td>
</tbody> </tr>
</table> </tbody>
</table>
</div>
</div> </div>
</section> </section>
{/loop} {/loop}

View File

@@ -23,166 +23,166 @@
<form action="{url path='/admin/configuration/currencies/update-rates'}" method="post"> <form action="{url path='/admin/configuration/currencies/update-rates'}" method="post">
<div class="general-block-decorator"> <div class="general-block-decorator">
<div class="table-responsive">
<table class="table table-striped table-condensed"> <table class="table table-striped table-condensed">
<caption class="clearfix"> <caption class="clearfix">
{intl l='Currencies'} {intl l='Currencies'}
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.currencies.create"} {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.currencies.create"}
<span class="pull-right"> <span class="pull-right">
<button class="btn btn-default btn-info" title="{intl l='Update rates'}">{intl l='Update rates'} <span class="glyphicon glyphicon-globe"></span></button> <button class="btn btn-default btn-info" title="{intl l='Update rates'}">{intl l='Update rates'} <span class="glyphicon glyphicon-globe"></span></button>
<a class="btn btn-default btn-primary" title="{intl l='Add a new currency'}" href="#creation_dialog" data-toggle="modal"> <a class="btn btn-default btn-primary" title="{intl l='Add a new currency'}" href="#creation_dialog" data-toggle="modal">
<span class="glyphicon glyphicon-plus-sign"></span> <span class="glyphicon glyphicon-plus-sign"></span>
</a> </a>
</span> </span>
{/loop} {/loop}
</caption> </caption>
<thead> <thead>
<tr>
<th>
{admin_sortable_header
current_order=$order
order='id'
reverse_order='id_reverse'
path='/admin/configuration/currencies'
label="{intl l='ID'}"
}
</th>
<th>
{admin_sortable_header
current_order=$order
order='name'
reverse_order='name_reverse'
path='/admin/configuration/currencies'
label="{intl l='Name'}"
}
</th>
<th class="text-center">
{admin_sortable_header
current_order=$order
order='code'
reverse_order='code_reverse'
path='/admin/configuration/currencies'
label="{intl l="ISO 4217 Code"}"
}
<a title="{intl l='More information about ISO 4217'}" href="http://fr.wikipedia.org/wiki/ISO_4217" target="_blank"><i class="glyphicon glyphicon-question-sign"></i></a>
</th>
<th class="text-center">
{admin_sortable_header
current_order=$order
order='symbol'
reverse_order='symbol_reverse'
path='/admin/configuration/currencies'
label="{intl l="Symbol"}"
}
</th>
<th class="text-right">
{admin_sortable_header
current_order=$order
order='rate'
reverse_order='rate_reverse'
path='/admin/configuration/currencies'
label="{intl l="Rate in &euro;"}"
}
</th>
<th class="text-center">
{admin_sortable_header
current_order=$order
order='manual'
reverse_order='manual_reverse'
path='/admin/configuration/currencies'
label="{intl l="Position"}"
}
</th>
<th class="text-center">
{admin_sortable_header
current_order=$order
order='is_default'
reverse_order='is_default_reverse'
path='/admin/configuration/currencies'
label="{intl l="Default"}"
}
</th>
{module_include location='currencies_table_header'}
<th class="actions">{intl l='Actions'}</th>
</tr>
</thead>
<tbody>
{loop name="currencies" type="currency" backend_context="1" lang=$lang_id order=$order}
<tr> <tr>
<td>{$ID}</td> <th>
{admin_sortable_header
<td> current_order=$order
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.currencies.change"} order='id'
<a title="{intl l='Change this currency'}" href="{url path='/admin/configuration/currencies/update' currency_id=$ID}">{$NAME}</a> reverse_order='id_reverse'
{/loop} path='/admin/configuration/currencies'
{elseloop rel="can_change"} label="{intl l='ID'}"
{$NAME}
{/elseloop}
</td>
<td class="text-center">{$ISOCODE}</td>
<td class="text-center">{$SYMBOL}</td>
<td class="text-right">{format_number number="$RATE" decimals="4"}</td>
<td class="text-center">
{admin_position_block
permission="admin.currencies.edit"
path="/admin/configuration/currencies/update-position"
url_parameter="currency_id"
in_place_edit_class="currencyPositionChange"
position="$POSITION"
id="$ID"
} }
</td> </th>
<td class="text-center"> <th>
<div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>"> {admin_sortable_header
<input class="change-default" type="radio" name="is_default" value="{$ID}" {if $IS_DEFAULT}checked="checked"{/if}/> current_order=$order
</div> order='name'
</td> reverse_order='name_reverse'
path='/admin/configuration/currencies'
label="{intl l='Name'}"
}
</th>
{module_include location='currencies_table_row'} <th class="text-center">
{admin_sortable_header
current_order=$order
order='code'
reverse_order='code_reverse'
path='/admin/configuration/currencies'
label="{intl l="ISO 4217 Code"}"
}
<a title="{intl l='More information about ISO 4217'}" href="http://fr.wikipedia.org/wiki/ISO_4217" target="_blank"><i class="glyphicon glyphicon-question-sign"></i></a>
</th>
<td class="actions"> <th class="text-center">
<div class="btn-group"> {admin_sortable_header
current_order=$order
order='symbol'
reverse_order='symbol_reverse'
path='/admin/configuration/currencies'
label="{intl l="Symbol"}"
}
</th>
<th class="text-right">
{admin_sortable_header
current_order=$order
order='rate'
reverse_order='rate_reverse'
path='/admin/configuration/currencies'
label="{intl l="Rate in &euro;"}"
}
</th>
<th class="text-center">
{admin_sortable_header
current_order=$order
order='manual'
reverse_order='manual_reverse'
path='/admin/configuration/currencies'
label="{intl l="Position"}"
}
</th>
<th class="text-center">
{admin_sortable_header
current_order=$order
order='is_default'
reverse_order='is_default_reverse'
path='/admin/configuration/currencies'
label="{intl l="Default"}"
}
</th>
{module_include location='currencies_table_header'}
<th class="actions">{intl l='Actions'}</th>
</tr>
</thead>
<tbody>
{loop name="currencies" type="currency" backend_context="1" lang=$lang_id order=$order}
<tr>
<td>{$ID}</td>
<td>
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.currencies.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.currencies.change"}
<a class="btn btn-default btn-xs currency-change" title="{intl l='Change this currency'}" href="{url path='/admin/configuration/currencies/update' currency_id="$ID"}"> <a title="{intl l='Change this currency'}" href="{url path='/admin/configuration/currencies/update' currency_id=$ID}">{$NAME}</a>
<span class="glyphicon glyphicon-edit"></span>
</a>
{/loop} {/loop}
{elseloop rel="can_change"}
{$NAME}
{/elseloop}
</td>
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.configuration.currencies.delete"} <td class="text-center">{$ISOCODE}</td>
<a class="btn btn-default btn-xs currency-delete" title="{intl l='Delete this currency'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal">
<span class="glyphicon glyphicon-trash"></span>
</a>
{/loop}
</div>
</td>
</tr>
{/loop}
{elseloop rel="currencies"}
<tr>
<td colspan="8">
<div class="alert alert-info">
{intl l="No currency has been created yet. Click the + button to create one."}
</div>
</td>
</tr>
{/elseloop}
</tbody>
</table>
<td class="text-center">{$SYMBOL}</td>
<td class="text-right">{format_number number="$RATE" decimals="4"}</td>
<td class="text-center">
{admin_position_block
permission="admin.currencies.edit"
path="/admin/configuration/currencies/update-position"
url_parameter="currency_id"
in_place_edit_class="currencyPositionChange"
position="$POSITION"
id="$ID"
}
</td>
<td class="text-center">
<div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>">
<input class="change-default" type="radio" name="is_default" value="{$ID}" {if $IS_DEFAULT}checked="checked"{/if}/>
</div>
</td>
{module_include location='currencies_table_row'}
<td class="actions">
<div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.currencies.change"}
<a class="btn btn-default btn-xs currency-change" title="{intl l='Change this currency'}" href="{url path='/admin/configuration/currencies/update' currency_id="$ID"}">
<span class="glyphicon glyphicon-edit"></span>
</a>
{/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.configuration.currencies.delete"}
<a class="btn btn-default btn-xs currency-delete" title="{intl l='Delete this currency'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal">
<span class="glyphicon glyphicon-trash"></span>
</a>
{/loop}
</div>
</td>
</tr>
{/loop}
{elseloop rel="currencies"}
<tr>
<td colspan="8">
<div class="alert alert-info">
{intl l="No currency has been created yet. Click the + button to create one."}
</div>
</td>
</tr>
{/elseloop}
</tbody>
</table>
</div>
</div> </div>
</form> </form>

View File

@@ -142,52 +142,54 @@
</a> </a>
</span> </span>
</p> </p>
<div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>{intl l="Address"}</th>
<th>{intl l="Actions"}</th>
</tr>
</thead>
<tbody>
{loop name="address" type="address" customer="$customer_id" backend_context="1" default="0"}
<tr>
<td>
<address>
<strong>{loop name="address.title" type="title" id=$TITLE}{$SHORT}{/loop} {$FIRSTNAME} {$LASTNAME}</strong><br>
{$ADDRESS1}<br>
{$ADDRESS2}<br>
{$ADDRESS3}<br>
{if $PHONE}
<abbr title="{intl l="Phone"}">P:</abbr> {$PHONE}<br>
{/if}
{if $CELLPHONE}
<abbr title="{intl l="cell phone"}">P:</abbr> {$CELLPHONE}
{/if}
</address>
</td>
<td>
<div class="btn-group">
<table class="table table-bordered table-striped"> <a class="btn btn-default btn-xs" title="{intl l='Edit this address'}" href="#edit_address_dialog" data-toggle="modal">
<thead> <span class="glyphicon glyphicon-edit"></span>
<tr> </a>
<th>{intl l="Address"}</th>
<th>{intl l="Actions"}</th>
</tr>
</thead>
<tbody>
{loop name="address" type="address" customer="$customer_id" backend_context="1" default="0"}
<tr>
<td>
<address>
<strong>{loop name="address.title" type="title" id=$TITLE}{$SHORT}{/loop} {$FIRSTNAME} {$LASTNAME}</strong><br>
{$ADDRESS1}<br>
{$ADDRESS2}<br>
{$ADDRESS3}<br>
{if $PHONE}
<abbr title="{intl l="Phone"}">P:</abbr> {$PHONE}<br>
{/if}
{if $CELLPHONE}
<abbr title="{intl l="cell phone"}">P:</abbr> {$CELLPHONE}
{/if}
</address>
</td>
<td>
<div class="btn-group">
<a class="btn btn-default btn-xs" title="{intl l='Edit this address'}" href="#edit_address_dialog" data-toggle="modal"> <a class="btn btn-default btn-xs" title="{intl l='Use this address by default'}" href="#use_address_dialog" data-toggle="modal" rel="tooltip">
<span class="glyphicon glyphicon-edit"></span> <span class="glyphicon glyphicon-pushpin"></span>
</a> </a>
<a class="btn btn-default btn-xs" title="{intl l='Use this address by default'}" href="#use_address_dialog" data-toggle="modal" rel="tooltip"> <a class="btn btn-default btn-xs customer-delete" title="{intl l='Delete this customer and all his orders'}" href="#delete_address_dialog" data-id="{$ID}" data-toggle="modal">
<span class="glyphicon glyphicon-pushpin"></span> <span class="glyphicon glyphicon-trash"></span>
</a> </a>
<a class="btn btn-default btn-xs customer-delete" title="{intl l='Delete this customer and all his orders'}" href="#delete_address_dialog" data-id="{$ID}" data-toggle="modal"> </div>
<span class="glyphicon glyphicon-trash"></span> </td>
</a> </tr>
{/loop}
</div> </tbody>
</td> </table>
</tr> </div>
{/loop}
</tbody>
</table>
</div> </div>
</form> </form>

View File

@@ -22,121 +22,123 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="general-block-decorator"> <div class="general-block-decorator">
<table class="table table-striped table-condensed" id="customer_list"> <div class="table-responsive">
<caption> <table class="table table-striped table-condensed" id="customer_list">
{intl l="Customers list"} <caption>
{intl l="Customers list"}
{module_include location='customer_list_caption'} {module_include location='customer_list_caption'}
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.customers.create"} {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.customers.create"}
<a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new Customer'}" href="#add_customer_dialog" data-toggle="modal"> <a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new Customer'}" href="#add_customer_dialog" data-toggle="modal">
<span class="glyphicon glyphicon-plus-sign"></span> <span class="glyphicon glyphicon-plus-sign"></span>
</a> </a>
{/loop} {/loop}
</caption> </caption>
{ifloop rel="customer_list"} {ifloop rel="customer_list"}
<thead> <thead>
<tr>
<th class="object-title">
{intl l="customer ref"}
</th>
<th class="object-title">
{intl l="company"}
</th>
{module_include location='category_list_header'}
<th>
{intl l="firstname & lastname"}
</th>
<th>
{intl l="last order"}
</th>
<th>{intl l='order amount'}</th>
<th class="actions">{intl l='Actions'}</th>
</tr>
</thead>
<tbody>
{loop name="customer_list" type="customer" current="false" visible="*" last_order="1" backend_context="1" page={$customer_page} limit={$display_customer}}
<tr> <tr>
<td><a href="{url path="/admin/customer/update/{$ID}" }">{$REF}</a></td> <th class="object-title">
{intl l="customer ref"}
</th>
<td> <th class="object-title">
{$COMPANY} {intl l="company"}
</td> </th>
<td class="object-title"> {module_include location='category_list_header'}
{$FIRSTNAME} {$LASTNAME}
</td>
{module_include location='customer_list_row'} <th>
{intl l="firstname & lastname"}
</th>
<td> <th>
{format_date date=$LASTORDER_DATE} {intl l="last order"}
</td> </th>
<td> <th>{intl l='order amount'}</th>
{format_number number=$LASTORDER_AMOUNT}
</td>
<td>
<div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.customer.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this customer'}" href="{url path="/admin/customer/update/{$ID}" }"><i class="glyphicon glyphicon-edit"></i></a>
{/loop}
{loop type="auth" name="can_send_mail" roles="ADMIN" permissions="admin.customer.sendMail"}
<a class="btn btn-default btn-xs" title="{intl l="Send a mail to this customer"}" href="mailto:{$EMAIL}"><span class="glyphicon glyphicon-envelope"></span></a>
{/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.customer.delete"}
<a class="btn btn-default btn-xs customer-delete" title="{intl l='Delete this customer and all his orders'}" href="#delete_customer_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop}
</div>
</td>
<th class="actions">{intl l='Actions'}</th>
</tr> </tr>
{/loop} </thead>
</tbody>
<tfoot>
<tr>
<td colspan="6">
<div class="text-center">
<ul class="pagination pagination-centered">
{if $customer_page != 1}
<li><a href="{url path="/admin/customers" page="1"}">&laquo;</a></li>
{else}
<li class="disabled"><a href="#">&laquo;</a></li>
{/if}
{pageloop rel="customer_list"} <tbody>
{if $PAGE != $CURRENT} {loop name="customer_list" type="customer" current="false" visible="*" last_order="1" backend_context="1" page={$customer_page} limit={$display_customer}}
<li><a href="{url path="/admin/customers" page="{$PAGE}"}">{$PAGE}</a></li> <tr>
<td><a href="{url path="/admin/customer/update/{$ID}" }">{$REF}</a></td>
{else} <td>
<li class="active"><a href="#">{$PAGE}</a></li> {$COMPANY}
{/if} </td>
<td class="object-title">
{$FIRSTNAME} {$LASTNAME}
</td>
{module_include location='customer_list_row'}
<td>
{format_date date=$LASTORDER_DATE}
</td>
<td>
{format_number number=$LASTORDER_AMOUNT}
</td>
<td>
<div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.customer.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this customer'}" href="{url path="/admin/customer/update/{$ID}" }"><i class="glyphicon glyphicon-edit"></i></a>
{/loop}
{loop type="auth" name="can_send_mail" roles="ADMIN" permissions="admin.customer.sendMail"}
<a class="btn btn-default btn-xs" title="{intl l="Send a mail to this customer"}" href="mailto:{$EMAIL}"><span class="glyphicon glyphicon-envelope"></span></a>
{/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.customer.delete"}
<a class="btn btn-default btn-xs customer-delete" title="{intl l='Delete this customer and all his orders'}" href="#delete_customer_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop}
</div>
</td>
</tr>
{/loop}
</tbody>
<tfoot>
<tr>
<td colspan="6">
<div class="text-center">
<ul class="pagination pagination-centered">
{if $customer_page != 1}
<li><a href="{url path="/admin/customers" page="1"}">&laquo;</a></li>
{else}
<li class="disabled"><a href="#">&laquo;</a></li>
{/if}
{pageloop rel="customer_list"}
{if $PAGE != $CURRENT}
<li><a href="{url path="/admin/customers" page="{$PAGE}"}">{$PAGE}</a></li>
{else}
<li class="active"><a href="#">{$PAGE}</a></li>
{/if}
{/pageloop} {/pageloop}
{if $PAGE == $LAST && $LAST != $CURRENT} {if $PAGE == $LAST && $LAST != $CURRENT}
<li><a href="{url path="/admin/customers" page="$PAGE"}">&raquo;</a></li> <li><a href="{url path="/admin/customers" page="$PAGE"}">&raquo;</a></li>
{else} {else}
<li class="disabled"><a href="#">&raquo;</a></li> <li class="disabled"><a href="#">&raquo;</a></li>
{/if} {/if}
</ul> </ul>
</div> </div>
</td> </td>
</tr> </tr>
</tfoot> </tfoot>
{/ifloop} {/ifloop}
</table> </table>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -77,95 +77,97 @@
<div class="alert alert-info"> <div class="alert alert-info">
{intl l="Enter here all possible feature values."} {intl l="Enter here all possible feature values."}
</div> </div>
<div class="table-responsive">
<table class="table table-striped table-condensed table-left-aligned">
<thead>
<tr>
<th>
{admin_sortable_header
current_order=$featureav_order
order='id'
reverse_order='id_reverse'
request_parameter_name='featureav_order'
path={url path='/admin/configuration/features/update' feature_id=$feature_id}
label="{intl l='ID'}"
}
</th>
<table class="table table-striped table-condensed table-left-aligned"> <th>
<thead> {admin_sortable_header
<tr> current_order=$featureav_order
<th> order='alpha'
{admin_sortable_header reverse_order='alpha_reverse'
current_order=$featureav_order request_parameter_name='featureav_order'
order='id' path={url path='/admin/configuration/features/update' feature_id=$feature_id}
reverse_order='id_reverse' label="{intl l='Value'}"
request_parameter_name='featureav_order' }
path={url path='/admin/configuration/features/update' feature_id=$feature_id} </th>
label="{intl l='ID'}"
}
</th>
<th> <th class="text-center">
{admin_sortable_header {admin_sortable_header
current_order=$featureav_order current_order=$featureav_order
order='alpha' order='manual'
reverse_order='alpha_reverse' reverse_order='manual_reverse'
request_parameter_name='featureav_order' request_parameter_name='featureav_order'
path={url path='/admin/configuration/features/update' feature_id=$feature_id} path={url path='/admin/configuration/features/update' feature_id=$feature_id}
label="{intl l='Value'}" label="{intl l="Position"}"
} }
</th> </th>
<th class="text-center"> {module_include location='features_value_table_header'}
{admin_sortable_header
current_order=$featureav_order
order='manual'
reverse_order='manual_reverse'
request_parameter_name='featureav_order'
path={url path='/admin/configuration/features/update' feature_id=$feature_id}
label="{intl l="Position"}"
}
</th>
{module_include location='features_value_table_header'} <th class="actions">{intl l="Actions"}</th>
</tr>
</thead>
<th class="actions">{intl l="Actions"}</th> <tbody>
</tr> {loop name="list" type="feature_availability" feature=$feature_id backend_context="1" lang=$edit_language_id order=$featureav_order}
</thead> <tr>
<td>{$ID}</td>
<tbody> <td>
{loop name="list" type="feature_availability" feature=$feature_id backend_context="1" lang=$edit_language_id order=$featureav_order} {* FIXME : integrate this in the encolsing form to provide standard form processing *}
<tr> <input class="js-edit form-control" type="text" name="feature_values[{$ID}]" value="{$TITLE}" />
<td>{$ID}</td> </td>
<td> <td class="text-center">
{* FIXME : integrate this in the encolsing form to provide standard form processing *} {admin_position_block
<input class="js-edit form-control" type="text" name="feature_values[{$ID}]" value="{$TITLE}" /> permission="admin.features.edit"
</td> path={url path='/admin/configuration/features-av/update-position' feature_id=$feature_id}
url_parameter="featureav_id"
in_place_edit_class="positionChange"
position="$POSITION"
id="$ID"
}
</td>
<td class="text-center"> {module_include location='features_value_table_row'}
{admin_position_block
permission="admin.features.edit"
path={url path='/admin/configuration/features-av/update-position' feature_id=$feature_id}
url_parameter="featureav_id"
in_place_edit_class="positionChange"
position="$POSITION"
id="$ID"
}
</td>
{module_include location='features_value_table_row'} <td class="actions">
<div class="btn-group">
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.feature-av.delete"}
<a class="btn btn-default btn-xs value-delete" title="{intl l='Delete this value'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal">
<span class="glyphicon glyphicon-trash"></span>
</a>
{/loop}
</div>
</td>
</tr>
{/loop}
<td class="actions"> {elseloop rel="list"}
<div class="btn-group"> <tr>
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.feature-av.delete"} <td colspan="4">
<a class="btn btn-default btn-xs value-delete" title="{intl l='Delete this value'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"> <div class="alert alert-info">
<span class="glyphicon glyphicon-trash"></span> {intl l="No value has been created yet. Click the + button to create one."}
</a> </div>
{/loop} </td>
</div> </tr>
</td> {/elseloop}
</tr> </tbody>
{/loop} </table>
</div>
{elseloop rel="list"}
<tr>
<td colspan="4">
<div class="alert alert-info">
{intl l="No value has been created yet. Click the + button to create one."}
</div>
</td>
</tr>
{/elseloop}
</tbody>
</table>
</div> </div>
</form> </form>
{/form} {/form}

View File

@@ -21,117 +21,119 @@
<div class="col-md-12"> <div class="col-md-12">
<form action="#" method="post"> <form action="#" method="post">
<div class="general-block-decorator"> <div class="general-block-decorator">
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<caption> <table class="table table-striped table-condensed table-left-aligned">
{intl l='Thelia product features'} <caption>
{intl l='Thelia product features'}
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.features.create"} {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.features.create"}
<a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new product feature'}" href="#creation_dialog" data-toggle="modal"> <a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new product feature'}" href="#creation_dialog" data-toggle="modal">
<span class="glyphicon glyphicon-plus-sign"></span> <span class="glyphicon glyphicon-plus-sign"></span>
</a> </a>
{/loop} {/loop}
</caption> </caption>
<thead> <thead>
<tr> <tr>
<th> <th>
{admin_sortable_header {admin_sortable_header
current_order=$order current_order=$order
order='id' order='id'
reverse_order='id_reverse' reverse_order='id_reverse'
path='/admin/configuration/features' path='/admin/configuration/features'
label="{intl l='ID'}" label="{intl l='ID'}"
} }
</th> </th>
<th> <th>
{admin_sortable_header {admin_sortable_header
current_order=$order current_order=$order
order='alpha' order='alpha'
reverse_order='alpha_reverse' reverse_order='alpha_reverse'
path='/admin/configuration/features' path='/admin/configuration/features'
label="{intl l='Title'}" label="{intl l='Title'}"
} }
</th> </th>
<th class="text-center"> <th class="text-center">
{admin_sortable_header {admin_sortable_header
current_order=$order current_order=$order
order='manual' order='manual'
reverse_order='manual_reverse' reverse_order='manual_reverse'
path='/admin/configuration/features' path='/admin/configuration/features'
label="{intl l="Position"}" label="{intl l="Position"}"
} }
</th> </th>
{module_include location='features_table_header'} {module_include location='features_table_header'}
<th class="actions">{intl l="Actions"}</th> <th class="actions">{intl l="Actions"}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{loop name="list" type="feature" backend_context="1" lang=$lang_id order=$order} {loop name="list" type="feature" backend_context="1" lang=$lang_id order=$order}
<tr> <tr>
<td>{$ID}</td> <td>{$ID}</td>
<td> <td>
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.features.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.features.change"}
<a title="{intl l='Change this feature'}" href="{url path='/admin/configuration/features/update' feature_id=$ID}">{$TITLE}</a> <a title="{intl l='Change this feature'}" href="{url path='/admin/configuration/features/update' feature_id=$ID}">{$TITLE}</a>
{/loop} {/loop}
{elseloop rel="can_change"} {elseloop rel="can_change"}
{$TITLE} {$TITLE}
{/elseloop} {/elseloop}
</td> </td>
<td class="text-center"> <td class="text-center">
{admin_position_block {admin_position_block
permission="admin.features.edit" permission="admin.features.edit"
path="/admin/configuration/features/update-position" path="/admin/configuration/features/update-position"
url_parameter="feature_id" url_parameter="feature_id"
in_place_edit_class="positionChange" in_place_edit_class="positionChange"
position="$POSITION" position="$POSITION"
id="$ID" id="$ID"
} }
</td> </td>
{module_include location='features_table_row'} {module_include location='features_table_row'}
<td class="actions"> <td class="actions">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.features.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.features.change"}
<div class="btn-group"> <div class="btn-group">
<a class="btn btn-default btn-xs feature-remove-from-all" title="{intl l='Remove this feature from all product templates'}" href="#remove_from_all_dialog" data-id="{$ID}" data-toggle="modal"> <a class="btn btn-default btn-xs feature-remove-from-all" title="{intl l='Remove this feature from all product templates'}" href="#remove_from_all_dialog" data-id="{$ID}" data-toggle="modal">
<span class="glyphicon glyphicon-minus"></span> <span class="glyphicon glyphicon-minus"></span>
</a> </a>
<a class="btn btn-default btn-xs feature-add-to-all" title="{intl l='Add this feature to all product templates'}" href="#add_to_all_dialog" data-id="{$ID}" data-toggle="modal"> <a class="btn btn-default btn-xs feature-add-to-all" title="{intl l='Add this feature to all product templates'}" href="#add_to_all_dialog" data-id="{$ID}" data-toggle="modal">
<span class="glyphicon glyphicon-plus"></span> <span class="glyphicon glyphicon-plus"></span>
</a> </a>
</div> </div>
{/loop} {/loop}
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.features.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.features.change"}
<a class="btn btn-default btn-xs feature-change" title="{intl l='Change this product feature'}" href="{url path='/admin/configuration/features/update' feature_id=$ID}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs feature-change" title="{intl l='Change this product feature'}" href="{url path='/admin/configuration/features/update' feature_id=$ID}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.features.delete"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.features.delete"}
<a class="btn btn-default btn-xs feature-delete" title="{intl l='Delete this product feature'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs feature-delete" title="{intl l='Delete this product feature'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
{/loop} {/loop}
{elseloop rel="list"} {elseloop rel="list"}
<tr> <tr>
<td colspan="4"> <td colspan="4">
<div class="alert alert-info"> <div class="alert alert-info">
{intl l="No product feature has been created yet. Click the + button to create one."} {intl l="No product feature has been created yet. Click the + button to create one."}
</div> </div>
</td> </td>
</tr> </tr>
{/elseloop} {/elseloop}
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</form> </form>
</div> </div>

View File

@@ -15,163 +15,164 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="general-block-decorator"> <div class="general-block-decorator">
<div class="table-responsive">
<table class="table table-striped table-condensed" id="folder_list">
<caption>
{* display parent folder name, and get current folder ID *}
{loop name="folder_title" type="folder" visible="*" id=$folder_id}
{intl l="Folders in %fold" fold=$TITLE}
{$fold_id = $ID}
{/loop}
{elseloop rel="folder_title"}
{intl l="Top level folders"}
{/elseloop}
<table class="table table-striped table-condensed" id="folder_list"> {module_include location='folder_list_caption'}
<caption>
{* display parent folder name, and get current folder ID *}
{loop name="folder_title" type="folder" visible="*" id=$folder_id}
{intl l="Folders in %fold" fold=$TITLE}
{$fold_id = $ID}
{/loop}
{elseloop rel="folder_title"}
{intl l="Top level folders"}
{/elseloop}
{module_include location='folder_list_caption'} {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.folders.create"}
<a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new folder'}" href="#folder_creation_dialog" data-toggle="modal">
<span class="glyphicon glyphicon-plus-sign"></span>
</a>
{/loop}
</caption>
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.folders.create"} {ifloop rel="folder_list"}
<a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new folder'}" href="#folder_creation_dialog" data-toggle="modal"> <thead>
<span class="glyphicon glyphicon-plus-sign"></span> <tr>
</a> <th class="object-title">
{/loop} {admin_sortable_header
</caption> current_order=$folder_order
order='id'
reverse_order='id_reverse'
path={url path='/admin/folders' id_folder=$folder_id}
request_parameter_name='folder_order'
label="{intl l='ID'}"
}
</th>
{ifloop rel="folder_list"} <th class="object-image">&nbsp;</th>
<th class="object-title">
{admin_sortable_header
current_order=$folder_order
order='alpha'
reverse_order='alpha_reverse'
path={url path='/admin/folders' id_folder=$folder_id}
request_parameter_name='folder_order'
label="{intl l='Folder title'}"
}
</th>
{module_include location='folder_list_header'}
<th>
{admin_sortable_header
current_order=$folder_order
order='visible'
reverse_order='visible_reverse'
path={url path='/admin/folders' id_folder=$folder_id}
request_parameter_name='folder_order'
label="{intl l='Online'}"
}
</th>
<th>
{admin_sortable_header
current_order=$folder_order
order='manual'
reverse_order='manual_reverse'
path={url path='/admin/folders' id_folder=$folder_id}
request_parameter_name='folder_order'
label="{intl l='Position'}"
}
</th>
<th class="actions">{intl l='Actions'}</th>
</tr>
</thead>
<tbody>
{loop name="folder_list" type="folder" visible="*" parent=$folder_id order=$folder_order backend_context="1" lang=$lang_id}
<tr>
<td>{$ID}</td>
<td>
{loop type="image" name="folder_image" source="folder" source_id="$ID" limit="1" width="50" height="50" resize_mode="crop" backend_context="1"}
<a href="{url path='admin/folder' folder_id=$ID}" title="{intl l='Browse this folder'}"><img class="img-thumbnail" src="{$IMAGE_URL}" alt="{$TITLE}" /></a>
{/loop}
</td>
<td class="object-title">
<a href="{url path='admin/folder' folder_id=$ID}" title="{intl l='Browse this folder'}">
{$TITLE}
</a>
</td>
{module_include location='folder_list_row'}
<td>
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.folders.edit"}
<div class="make-switch switch-small folderVisibleToggle" data-id="{$ID}" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>">
<input type="checkbox" class="folderVisibleToggle" {if $VISIBLE == 1}checked="checked"{/if}>
</div>
{/loop}
{elseloop rel="can_change"}
<div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>">
<input type="checkbox" class="disabled" disabled="disabled" {if $VISIBLE == 1}checked="checked"{/if}>
</div>
{/elseloop}
</td>
<td>
{admin_position_block
permission="admin.folders.edit"
path={url path='admin/folders/update-position' folder_id=$ID}
url_parameter="folder_id"
in_place_edit_class="folderPositionChange"
position=$POSITION
id=$ID
}
</td>
<td class="actions">
<div class="btn-group">
<a class="btn btn-default btn-xs" title="{intl l='Browse this folder'}" href="{url path='admin/folder' folder_id=$ID}"><i class="glyphicon glyphicon-folder-open"></i></a>
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.folders.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this folder'}" href="{url path='/admin/folders/update' folder_id=$ID}"><i class="glyphicon glyphicon-edit"></i></a>
{/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.folders.delete"}
<a class="btn btn-default btn-xs folder-delete" title="{intl l='Delete this folder and all its contents'}" href="#folder_delete_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a>
{/loop}
</div>
</td>
</tr>
{/loop}
</tbody>
{/ifloop}
{elseloop rel="folder_list"}
<thead> <thead>
<tr> <tr>
<th class="object-title"> <td class="message">
{admin_sortable_header <div class="alert alert-info">
current_order=$folder_order {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.folders.create"}
order='id' {intl l="This folder has no sub-folders. To create a new one, click the + button above."}
reverse_order='id_reverse' {/loop}
path={url path='/admin/folders' id_folder=$folder_id}
request_parameter_name='folder_order'
label="{intl l='ID'}"
}
</th>
<th class="object-image">&nbsp;</th> {elseloop rel="can_create"}
{intl l="This folder has no sub-folders."}
<th class="object-title"> {/elseloop}
{admin_sortable_header </div>
current_order=$folder_order </td>
order='alpha'
reverse_order='alpha_reverse'
path={url path='/admin/folders' id_folder=$folder_id}
request_parameter_name='folder_order'
label="{intl l='Folder title'}"
}
</th>
{module_include location='folder_list_header'}
<th>
{admin_sortable_header
current_order=$folder_order
order='visible'
reverse_order='visible_reverse'
path={url path='/admin/folders' id_folder=$folder_id}
request_parameter_name='folder_order'
label="{intl l='Online'}"
}
</th>
<th>
{admin_sortable_header
current_order=$folder_order
order='manual'
reverse_order='manual_reverse'
path={url path='/admin/folders' id_folder=$folder_id}
request_parameter_name='folder_order'
label="{intl l='Position'}"
}
</th>
<th class="actions">{intl l='Actions'}</th>
</tr> </tr>
</thead> </thead>
{/elseloop}
<tbody> </table>
{loop name="folder_list" type="folder" visible="*" parent=$folder_id order=$folder_order backend_context="1" lang=$lang_id} </div>
<tr>
<td>{$ID}</td>
<td>
{loop type="image" name="folder_image" source="folder" source_id="$ID" limit="1" width="50" height="50" resize_mode="crop" backend_context="1"}
<a href="{url path='admin/folder' folder_id=$ID}" title="{intl l='Browse this folder'}"><img class="img-thumbnail" src="{$IMAGE_URL}" alt="{$TITLE}" /></a>
{/loop}
</td>
<td class="object-title">
<a href="{url path='admin/folder' folder_id=$ID}" title="{intl l='Browse this folder'}">
{$TITLE}
</a>
</td>
{module_include location='folder_list_row'}
<td>
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.folders.edit"}
<div class="make-switch switch-small folderVisibleToggle" data-id="{$ID}" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>">
<input type="checkbox" class="folderVisibleToggle" {if $VISIBLE == 1}checked="checked"{/if}>
</div>
{/loop}
{elseloop rel="can_change"}
<div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>">
<input type="checkbox" class="disabled" disabled="disabled" {if $VISIBLE == 1}checked="checked"{/if}>
</div>
{/elseloop}
</td>
<td>
{admin_position_block
permission="admin.folders.edit"
path={url path='admin/folders/update-position' folder_id=$ID}
url_parameter="folder_id"
in_place_edit_class="folderPositionChange"
position=$POSITION
id=$ID
}
</td>
<td class="actions">
<div class="btn-group">
<a class="btn btn-default btn-xs" title="{intl l='Browse this folder'}" href="{url path='admin/folder' folder_id=$ID}"><i class="glyphicon glyphicon-folder-open"></i></a>
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.folders.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this folder'}" href="{url path='/admin/folders/update' folder_id=$ID}"><i class="glyphicon glyphicon-edit"></i></a>
{/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.folders.delete"}
<a class="btn btn-default btn-xs folder-delete" title="{intl l='Delete this folder and all its contents'}" href="#folder_delete_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a>
{/loop}
</div>
</td>
</tr>
{/loop}
</tbody>
{/ifloop}
{elseloop rel="folder_list"}
<thead>
<tr>
<td class="message">
<div class="alert alert-info">
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.folders.create"}
{intl l="This folder has no sub-folders. To create a new one, click the + button above."}
{/loop}
{elseloop rel="can_create"}
{intl l="This folder has no sub-folders."}
{/elseloop}
</div>
</td>
</tr>
</thead>
{/elseloop}
</table>
</div> </div>
</div> </div>
</div> </div>
@@ -181,7 +182,7 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="general-block-decorator"> <div class="general-block-decorator">
<div class="table-responsive">
<table class="table table-striped table-condensed"> <table class="table table-striped table-condensed">
<caption> <caption>
{* display parent folder name *} {* display parent folder name *}
@@ -314,7 +315,7 @@
</thead> </thead>
{/elseloop} {/elseloop}
</table> </table>
</div>
</div> </div>
</div> </div>

View File

@@ -48,50 +48,52 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="general-block-decorator"> <div class="general-block-decorator">
<div class="title title-without-tabs">{intl l="Informations site"}</div> <div class="title title-without-tabs">{intl l="Informations site"}</div>
<table class="table table-striped"> <div class="table-responsive">
<tbody> <table class="table table-striped">
<tr> <tbody>
<th>{intl l="Customers"}</th> <tr>
<td>1</td> <th>{intl l="Customers"}</th>
</tr> <td>1</td>
<tr> </tr>
<th>{intl l="Sections"}</th> <tr>
<td>8</td> <th>{intl l="Sections"}</th>
</tr> <td>8</td>
<tr> </tr>
<th>{intl l="Products"}</th> <tr>
<td>43</td> <th>{intl l="Products"}</th>
</tr> <td>43</td>
<tr> </tr>
<th>{intl l="Products online"}</th> <tr>
<td>43</td> <th>{intl l="Products online"}</th>
</tr> <td>43</td>
<tr> </tr>
<th>{intl l="Products offline"}</th> <tr>
<td>0</td> <th>{intl l="Products offline"}</th>
</tr> <td>0</td>
<tr> </tr>
<th>{intl l="Orders"}</th> <tr>
<td>1</td> <th>{intl l="Orders"}</th>
</tr> <td>1</td>
<tr> </tr>
<th>{intl l="Orders pending"}</th> <tr>
<td>1</td> <th>{intl l="Orders pending"}</th>
</tr> <td>1</td>
<tr> </tr>
<th>{intl l="Orders treatment"}</th> <tr>
<td>0</td> <th>{intl l="Orders treatment"}</th>
</tr> <td>0</td>
<tr> </tr>
<th>{intl l="Shipped orders"}</th> <tr>
<td>0</td> <th>{intl l="Shipped orders"}</th>
</tr> <td>0</td>
<tr> </tr>
<th>{intl l="Canceled orders"}</th> <tr>
<td>0</td> <th>{intl l="Canceled orders"}</th>
</tr> <td>0</td>
</tbody> </tr>
</table> </tbody>
</table>
</div>
</div> </div>
</div> </div>
@@ -107,106 +109,112 @@
<div class="tab-content"> <div class="tab-content">
<div class="tab-pane fade active in" id="statjour"> <div class="tab-pane fade active in" id="statjour">
<table class="table table-striped"> <div class="table-responsive">
<tbody> <table class="table table-striped">
<tr> <tbody>
<th>{intl l="C. A. TTC"}</th> <tr>
<td>2000.00 €</td> <th>{intl l="C. A. TTC"}</th>
</tr> <td>2000.00 €</td>
<tr> </tr>
<th>{intl l="C. A. TTC hors frais de port"}</th> <tr>
<td>2500.00 €</td> <th>{intl l="C. A. TTC hors frais de port"}</th>
</tr> <td>2500.00 €</td>
<tr> </tr>
<th>{intl l="C. A. TTC précédent"}</th> <tr>
<td>1700.00 €</td> <th>{intl l="C. A. TTC précédent"}</th>
</tr> <td>1700.00 €</td>
<tr> </tr>
<th>{intl l="Commandes en instance"}</th> <tr>
<td>4</td> <th>{intl l="Commandes en instance"}</th>
</tr> <td>4</td>
<tr> </tr>
<th>{intl l="Commandes en traitement"}</th> <tr>
<td>52</td> <th>{intl l="Commandes en traitement"}</th>
</tr> <td>52</td>
<tr> </tr>
<th>{intl l="Commandes annulées"}</th> <tr>
<td>3</td> <th>{intl l="Commandes annulées"}</th>
</tr> <td>3</td>
<tr> </tr>
<th>{intl l="Panier moyen TTC"}</th> <tr>
<td>25.00 €</td> <th>{intl l="Panier moyen TTC"}</th>
</tr> <td>25.00 €</td>
</tbody> </tr>
</table> </tbody>
</table>
</div>
</div> </div>
<div class="tab-pane fade" id="statmois"> <div class="tab-pane fade" id="statmois">
<table class="table table-striped"> <div class="table-responsive">
<tbody> <table class="table table-striped">
<tr> <tbody>
<th>{intl l="C. A. TTC"}</th> <tr>
<td>2000.00 €</td> <th>{intl l="C. A. TTC"}</th>
</tr> <td>2000.00 €</td>
<tr> </tr>
<th>{intl l="C. A. TTC hors frais de port"}</th> <tr>
<td>2500.00 €</td> <th>{intl l="C. A. TTC hors frais de port"}</th>
</tr> <td>2500.00 €</td>
<tr> </tr>
<th>{intl l="C. A. TTC précédent"}</th> <tr>
<td>1700.00 €</td> <th>{intl l="C. A. TTC précédent"}</th>
</tr> <td>1700.00 €</td>
<tr> </tr>
<th>{intl l="Commandes en instance"}</th> <tr>
<td>4</td> <th>{intl l="Commandes en instance"}</th>
</tr> <td>4</td>
<tr> </tr>
<th>{intl l="Commandes en traitement"}</th> <tr>
<td>52</td> <th>{intl l="Commandes en traitement"}</th>
</tr> <td>52</td>
<tr> </tr>
<th>{intl l="Commandes annulées"}</th> <tr>
<td>3</td> <th>{intl l="Commandes annulées"}</th>
</tr> <td>3</td>
<tr> </tr>
<th>{intl l="Panier moyen TTC"}</th> <tr>
<td>25.00 €</td> <th>{intl l="Panier moyen TTC"}</th>
</tr> <td>25.00 €</td>
</tbody> </tr>
</table> </tbody>
</table>
</div>
</div> </div>
<div class="tab-pane fade" id="statannee"> <div class="tab-pane fade" id="statannee">
<table class="table table-striped"> <div class="table-responsive">
<tbody> <table class="table table-striped">
<tr> <tbody>
<th>{intl l="C. A. TTC"}</th> <tr>
<td>2000.00 €</td> <th>{intl l="C. A. TTC"}</th>
</tr> <td>2000.00 €</td>
<tr> </tr>
<th>{intl l="C. A. TTC hors frais de port"}</th> <tr>
<td>2500.00 €</td> <th>{intl l="C. A. TTC hors frais de port"}</th>
</tr> <td>2500.00 €</td>
<tr> </tr>
<th>{intl l="C. A. TTC précédent"}</th> <tr>
<td>1700.00 €</td> <th>{intl l="C. A. TTC précédent"}</th>
</tr> <td>1700.00 €</td>
<tr> </tr>
<th>{intl l="Commandes en instance"}</th> <tr>
<td>4</td> <th>{intl l="Commandes en instance"}</th>
</tr> <td>4</td>
<tr> </tr>
<th>{intl l="Commandes en traitement"}</th> <tr>
<td>52</td> <th>{intl l="Commandes en traitement"}</th>
</tr> <td>52</td>
<tr> </tr>
<th>{intl l="Commandes annulées"}</th> <tr>
<td>3</td> <th>{intl l="Commandes annulées"}</th>
</tr> <td>3</td>
<tr> </tr>
<th>{intl l="Panier moyen TTC"}</th> <tr>
<td>25.00 €</td> <th>{intl l="Panier moyen TTC"}</th>
</tr> <td>25.00 €</td>
</tbody> </tr>
</table> </tbody>
</table>
</div>
</div> </div>
</div> </div>
</div> </div>
@@ -215,22 +223,24 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="general-block-decorator"> <div class="general-block-decorator">
<div class="title title-without-tabs">{intl l="Thelia informations"}</div> <div class="title title-without-tabs">{intl l="Thelia informations"}</div>
<table class="table table-striped"> <div class="table-responsive">
<table class="table table-striped">
<tbody> <tbody>
<tr> <tr>
<th>{intl l="Current version"}</th> <th>{intl l="Current version"}</th>
<td>V2.0.0-beta</td> <td>V2.0.0-beta</td>
</tr> </tr>
<tr> <tr>
<th>{intl l="Latest version available"}</th> <th>{intl l="Latest version available"}</th>
<td><a href="">V1.5.4.2</a></td> <td><a href="">V1.5.4.2</a></td>
</tr> </tr>
<tr> <tr>
<th>{intl l="News"}</th> <th>{intl l="News"}</th>
<td><a href="" target="_blank">{intl l="Click here"}</a></td> <td><a href="" target="_blank">{intl l="Click here"}</a></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</div> </div>

View File

@@ -21,76 +21,78 @@
<div class="col-md-12"> <div class="col-md-12">
<form action="{url path='/admin/configuration/messages/update-values'}" method="post"> <form action="{url path='/admin/configuration/messages/update-values'}" method="post">
<div class="general-block-decorator"> <div class="general-block-decorator">
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<caption> <table class="table table-striped table-condensed table-left-aligned">
{intl l='Thelia mailing templates'} <caption>
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.messages.create"} {intl l='Thelia mailing templates'}
<a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new mailing template'}" href="#creation_dialog" data-toggle="modal"> {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.messages.create"}
<span class="glyphicon glyphicon-plus-sign"></span> <a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new mailing template'}" href="#creation_dialog" data-toggle="modal">
</a> <span class="glyphicon glyphicon-plus-sign"></span>
{/loop} </a>
{/loop}
</caption> </caption>
<thead> <thead>
<tr> <tr>
<th>{intl l="Purpose"}</th> <th>{intl l="Purpose"}</th>
<th>{intl l="Name"}</th> <th>{intl l="Name"}</th>
{module_include location='messages_table_header'} {module_include location='messages_table_header'}
<th>&nbsp;</th> <th>&nbsp;</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{loop name="mailing-templates" type="message" secured="*" backend_context="1" lang="$lang_id"} {loop name="mailing-templates" type="message" secured="*" backend_context="1" lang="$lang_id"}
<tr> <tr>
<td>{$TITLE}</td> <td>{$TITLE}</td>
<td> <td>
{if ! $SECURED} {if ! $SECURED}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.messages.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.messages.change"}
<a title="{intl l='Change this mailing template'}" href="{url path='/admin/configuration/messages/update' message_id="$ID"}">{$NAME}</a> <a title="{intl l='Change this mailing template'}" href="{url path='/admin/configuration/messages/update' message_id="$ID"}">{$NAME}</a>
{/loop} {/loop}
{elseloop rel="can_change"} {elseloop rel="can_change"}
{$NAME}
{/elseloop}
{else}
{$NAME} {$NAME}
{/elseloop} {/if}
{else} </td>
{$NAME}
{/if}
</td>
{module_include location='messages_table_row'} {module_include location='messages_table_row'}
<td class="actions"> <td class="actions">
{if ! $SECURED} {if ! $SECURED}
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.messages.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.messages.change"}
<a class="btn btn-default btn-xs message-change" title="{intl l='Change this mailing template'}" href="{url path='/admin/configuration/messages/update' message_id="$ID"}"><i class="glyphicon glyphicon-edit"></i></a> <a class="btn btn-default btn-xs message-change" title="{intl l='Change this mailing template'}" href="{url path='/admin/configuration/messages/update' message_id="$ID"}"><i class="glyphicon glyphicon-edit"></i></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.configuration.messages.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.configuration.messages.delete"}
<a class="btn btn-default btn-xs message-delete" title="{intl l='Delete this mailing template'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a> <a class="btn btn-default btn-xs message-delete" title="{intl l='Delete this mailing template'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a>
{/loop} {/loop}
</div> </div>
{else} {else}
<i title="{intl l='This mailing template could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i> <i title="{intl l='This mailing template could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i>
{/if} {/if}
</td> </td>
</tr> </tr>
{/loop} {/loop}
{elseloop rel="mailing-templates"} {elseloop rel="mailing-templates"}
<tr> <tr>
<td colspan="3"> <td colspan="3">
<div class="alert alert-info"> <div class="alert alert-info">
{intl l="No mailing template has been created yet. Click the + button to create one."} {intl l="No mailing template has been created yet. Click the + button to create one."}
</div> </div>
</td> </td>
</tr> </tr>
{/elseloop} {/elseloop}
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</form> </form>
</div> </div>

View File

@@ -26,215 +26,219 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="general-block-decorator"> <div class="general-block-decorator">
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<caption class="clearfix"> <table class="table table-striped table-condensed table-left-aligned">
{intl l='Transport modules'} <caption class="clearfix">
</caption> {intl l='Transport modules'}
<thead> </caption>
<tr> <thead>
<th>{intl l="Name"}</th> <tr>
<th>{intl l="Description"}</th> <th>{intl l="Name"}</th>
<th>{intl l="Enable/Disable"}</th> <th>{intl l="Description"}</th>
<th>{intl l="Enable/Disable"}</th>
{module_include location='modules_table_header'} {module_include location='modules_table_header'}
<th class="actions">{intl l="Actions"}</th> <th class="actions">{intl l="Actions"}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td><a href="">Tinymce</a></td> <td><a href="">Tinymce</a></td>
<td>Eos minima maiores doloribus mollitia perspiciatis esse iusto odit error delectus aliquid! Eius, pariatur accusantium odit quidem laboriosam.</td> <td>Eos minima maiores doloribus mollitia perspiciatis esse iusto odit error delectus aliquid! Eius, pariatur accusantium odit quidem laboriosam.</td>
<td> <td>
<div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok-circle'></i>" data-off-label="<i class='glyphicon glyphicon-remove-circle'></i>"> <div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok-circle'></i>" data-off-label="<i class='glyphicon glyphicon-remove-circle'></i>">
<input type="checkbox" checked> <input type="checkbox" checked>
</div> </div>
</td> </td>
{module_include location='modules_table_row'} {module_include location='modules_table_row'}
<td> <td>
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.documentation"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.documentation"}
<a class="btn btn-default btn-xs" title="{intl l='Read the documentation of this module'}" href="{url path="/admin/module/documentation/$ID"}"><span class="glyphicon glyphicon-book"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Read the documentation of this module'}" href="{url path="/admin/module/documentation/$ID"}"><span class="glyphicon glyphicon-book"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.edit"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this module'}" href="{url path="/admin/module/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Edit this module'}" href="{url path="/admin/module/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.modules.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.modules.delete"}
<a class="btn btn-default btn-xs" title="{intl l='Delete this module'}" href="#delete_module_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Delete this module'}" href="#delete_module_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a href="">So colissimo</a></td> <td><a href="">So colissimo</a></td>
<td>Eos minima maiores doloribus mollitia perspiciatis esse iusto odit error delectus aliquid</td> <td>Eos minima maiores doloribus mollitia perspiciatis esse iusto odit error delectus aliquid</td>
<td> <td>
<div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok-circle'></i>" data-off-label="<i class='glyphicon glyphicon-remove-circle'></i>"> <div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok-circle'></i>" data-off-label="<i class='glyphicon glyphicon-remove-circle'></i>">
<input type="checkbox"> <input type="checkbox">
</div> </div>
</td> </td>
{module_include location='modules_table_row'} {module_include location='modules_table_row'}
<td> <td>
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.documentation"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.documentation"}
<a class="btn btn-default btn-xs" title="{intl l='Read the documentation of this module'}" href="{url path="/admin/module/documentation/$ID"}"><span class="glyphicon glyphicon-book"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Read the documentation of this module'}" href="{url path="/admin/module/documentation/$ID"}"><span class="glyphicon glyphicon-book"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.edit"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this module'}" href="{url path="/admin/module/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Edit this module'}" href="{url path="/admin/module/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.modules.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.modules.delete"}
<a class="btn btn-default btn-xs" title="{intl l='Delete this module'}" href="#delete_module_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Delete this module'}" href="#delete_module_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a href="">Title meta</a></td> <td><a href="">Title meta</a></td>
<td>Eos minima maiores doloribus mollitia perspiciatis esse iusto odit error delectus aliquid</td> <td>Eos minima maiores doloribus mollitia perspiciatis esse iusto odit error delectus aliquid</td>
<td> <td>
<div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok-circle'></i>" data-off-label="<i class='glyphicon glyphicon-remove-circle'></i>"> <div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok-circle'></i>" data-off-label="<i class='glyphicon glyphicon-remove-circle'></i>">
<input type="checkbox"> <input type="checkbox">
</div> </div>
</td> </td>
{module_include location='modules_table_row'} {module_include location='modules_table_row'}
<td> <td>
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.documentation"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.documentation"}
<a class="btn btn-default btn-xs" title="{intl l='Read the documentation of this module'}" href="{url path="/admin/module/documentation/$ID"}"><span class="glyphicon glyphicon-book"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Read the documentation of this module'}" href="{url path="/admin/module/documentation/$ID"}"><span class="glyphicon glyphicon-book"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.edit"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this module'}" href="{url path="/admin/module/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Edit this module'}" href="{url path="/admin/module/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.modules.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.modules.delete"}
<a class="btn btn-default btn-xs" title="{intl l='Delete this module'}" href="#delete_module_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Delete this module'}" href="#delete_module_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
<div class="general-block-decorator"> <div class="general-block-decorator">
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<caption class="clearfix"> <table class="table table-striped table-condensed table-left-aligned">
{intl l='Delivery modules'} <caption class="clearfix">
</caption> {intl l='Delivery modules'}
<thead> </caption>
<tr> <thead>
<th>{intl l="Name"}</th> <tr>
<th>{intl l="Description"}</th> <th>{intl l="Name"}</th>
<th>{intl l="Enable/Disable"}</th> <th>{intl l="Description"}</th>
<th>{intl l="Enable/Disable"}</th>
{module_include location='modules_table_header'} {module_include location='modules_table_header'}
<th class="actions">{intl l="Actions"}</th> <th class="actions">{intl l="Actions"}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td><a href="">Tinymce</a></td> <td><a href="">Tinymce</a></td>
<td>Eos minima maiores doloribus mollitia perspiciatis esse iusto odit error delectus aliquid! Eius, pariatur accusantium odit quidem laboriosam.</td> <td>Eos minima maiores doloribus mollitia perspiciatis esse iusto odit error delectus aliquid! Eius, pariatur accusantium odit quidem laboriosam.</td>
<td> <td>
<div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok-circle'></i>" data-off-label="<i class='glyphicon glyphicon-remove-circle'></i>"> <div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok-circle'></i>" data-off-label="<i class='glyphicon glyphicon-remove-circle'></i>">
<input type="checkbox" checked> <input type="checkbox" checked>
</div> </div>
</td> </td>
{module_include location='modules_table_row'} {module_include location='modules_table_row'}
<td> <td>
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.documentation"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.documentation"}
<a class="btn btn-default btn-xs" title="{intl l='Read the documentation of this module'}" href="{url path="/admin/module/documentation/$ID"}"><span class="glyphicon glyphicon-book"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Read the documentation of this module'}" href="{url path="/admin/module/documentation/$ID"}"><span class="glyphicon glyphicon-book"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.edit"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this module'}" href="{url path="/admin/module/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Edit this module'}" href="{url path="/admin/module/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.modules.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.modules.delete"}
<a class="btn btn-default btn-xs" title="{intl l='Delete this module'}" href="#delete_module_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Delete this module'}" href="#delete_module_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a href="">So colissimo</a></td> <td><a href="">So colissimo</a></td>
<td>Eos minima maiores doloribus mollitia perspiciatis esse iusto odit error delectus aliquid</td> <td>Eos minima maiores doloribus mollitia perspiciatis esse iusto odit error delectus aliquid</td>
<td> <td>
<div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok-circle'></i>" data-off-label="<i class='glyphicon glyphicon-remove-circle'></i>"> <div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok-circle'></i>" data-off-label="<i class='glyphicon glyphicon-remove-circle'></i>">
<input type="checkbox"> <input type="checkbox">
</div> </div>
</td> </td>
{module_include location='modules_table_row'} {module_include location='modules_table_row'}
<td> <td>
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.documentation"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.documentation"}
<a class="btn btn-default btn-xs" title="{intl l='Read the documentation of this module'}" href="{url path="/admin/module/documentation/$ID"}"><span class="glyphicon glyphicon-book"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Read the documentation of this module'}" href="{url path="/admin/module/documentation/$ID"}"><span class="glyphicon glyphicon-book"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.edit"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this module'}" href="{url path="/admin/module/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Edit this module'}" href="{url path="/admin/module/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.modules.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.modules.delete"}
<a class="btn btn-default btn-xs" title="{intl l='Delete this module'}" href="#delete_module_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Delete this module'}" href="#delete_module_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a href="">Title meta</a></td> <td><a href="">Title meta</a></td>
<td>Eos minima maiores doloribus mollitia perspiciatis esse iusto odit error delectus aliquid</td> <td>Eos minima maiores doloribus mollitia perspiciatis esse iusto odit error delectus aliquid</td>
<td> <td>
<div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok-circle'></i>" data-off-label="<i class='glyphicon glyphicon-remove-circle'></i>"> <div class="make-switch switch-small" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok-circle'></i>" data-off-label="<i class='glyphicon glyphicon-remove-circle'></i>">
<input type="checkbox"> <input type="checkbox">
</div> </div>
</td> </td>
{module_include location='modules_table_row'} {module_include location='modules_table_row'}
<td> <td>
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.documentation"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.documentation"}
<a class="btn btn-default btn-xs" title="{intl l='Read the documentation of this module'}" href="{url path="/admin/module/documentation/$ID"}"><span class="glyphicon glyphicon-book"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Read the documentation of this module'}" href="{url path="/admin/module/documentation/$ID"}"><span class="glyphicon glyphicon-book"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.edit"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.modules.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this module'}" href="{url path="/admin/module/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Edit this module'}" href="{url path="/admin/module/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.modules.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.modules.delete"}
<a class="btn btn-default btn-xs" title="{intl l='Delete this module'}" href="#delete_module_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Delete this module'}" href="#delete_module_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -30,71 +30,75 @@
<div class="tab-content"> <div class="tab-content">
<div class="tab-pane fade active in" id="cart"> <div class="tab-pane fade active in" id="cart">
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<caption class="clearfix"> <table class="table table-striped table-condensed table-left-aligned">
{intl l='Information about order 01201303540354'} <caption class="clearfix">
</caption> {intl l='Information about order 01201303540354'}
<thead> </caption>
<tr> <thead>
<th>{intl l="Designation"}</th> <tr>
<th>{intl l="Price"}</th> <th>{intl l="Designation"}</th>
<th>{intl l="Quantity"}</th> <th>{intl l="Price"}</th>
<th>{intl l="Total"}</th> <th>{intl l="Quantity"}</th>
</tr> <th>{intl l="Total"}</th>
</thead> </tr>
</thead>
<tbody> <tbody>
<tr> <tr>
<td><a href="#">T-Shirt F T1</a></td> <td><a href="#">T-Shirt F T1</a></td>
<td>20.00 &euro;</td> <td>20.00 &euro;</td>
<td>3</td> <td>3</td>
<td>60.00 &euro;</td> <td>60.00 &euro;</td>
</tr> </tr>
<tr> <tr>
<td><a href="#">T-Shirt F T1</a></td> <td><a href="#">T-Shirt F T1</a></td>
<td>20.00 &euro;</td> <td>20.00 &euro;</td>
<td>3</td> <td>3</td>
<td>60.00 &euro;</td> <td>60.00 &euro;</td>
</tr> </tr>
<tr> <tr>
<td><a href="#">T-Shirt F T1</a></td> <td><a href="#">T-Shirt F T1</a></td>
<td>20.00 &euro;</td> <td>20.00 &euro;</td>
<td>3</td> <td>3</td>
<td>60.00 &euro;</td> <td>60.00 &euro;</td>
</tr> </tr>
</tbody> </tbody>
<tfoot> <tfoot>
<tr class="active"> <tr class="active">
<td colspan="3"><strong>Total</strong></td> <td colspan="3"><strong>Total</strong></td>
<td><strong>180.00 &euro;</strong></td> <td><strong>180.00 &euro;</strong></td>
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
</div>
</div> <!-- #cart --> </div> <!-- #cart -->
<div class="tab-pane fade" id="bill"> <div class="tab-pane fade" id="bill">
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<caption> <table class="table table-striped table-condensed table-left-aligned">
{intl l='Information about the bill'} <caption>
</caption> {intl l='Information about the bill'}
<thead> </caption>
<tr> <thead>
<th>{intl l="Bill n°"}</th> <tr>
<th>{intl l="Compagny"}</th> <th>{intl l="Bill n°"}</th>
<th>{intl l="Firstname & Lastname"}</th> <th>{intl l="Compagny"}</th>
<th>{intl l="Date & Hour"}</th> <th>{intl l="Firstname & Lastname"}</th>
</tr> <th>{intl l="Date & Hour"}</th>
</thead> </tr>
</thead>
<tbody> <tbody>
<tr> <tr>
<td><a href="#">0001</a></td> <td><a href="#">0001</a></td>
<td>Thelia</td> <td>Thelia</td>
<td>Dupont Jean</td> <td>Dupont Jean</td>
<td>11/01/2013 14:11:00</td> <td>11/01/2013 14:11:00</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
</div> <!-- #bill --> </div> <!-- #bill -->
<div class="tab-pane fade" id="carriage"> <div class="tab-pane fade" id="carriage">
@@ -116,214 +120,219 @@
</div> <!-- #carriage --> </div> <!-- #carriage -->
<div class="tab-pane fade" id="settlement"> <div class="tab-pane fade" id="settlement">
<div class="table-responsive">
<table class="table table-striped table-condensed table-left-aligned"> <table class="table table-striped table-condensed table-left-aligned">
<caption class="clearfix"> <caption class="clearfix">
{intl l='Information about the settlement'} {intl l='Information about the settlement'}
</caption> </caption>
<tbody> <tbody>
<tr> <tr>
<th>{intl l="Type of payment"}</th> <th>{intl l="Type of payment"}</th>
<td>Unknown</td> <td>Unknown</td>
</tr> </tr>
<tr> <tr>
<th>{intl l="Transaction reference"}</th> <th>{intl l="Transaction reference"}</th>
<td>141100</td> <td>141100</td>
</tr> </tr>
<tr> <tr>
<th>{intl l="Total order before discount"}</th> <th>{intl l="Total order before discount"}</th>
<td>60 &euro;</td> <td>60 &euro;</td>
</tr> </tr>
<tr> <tr>
<th>{intl l="Discount"}</th> <th>{intl l="Discount"}</th>
<td>10%</td> <td>10%</td>
</tr> </tr>
<tr> <tr>
<th>{intl l="Coupon code"}</th> <th>{intl l="Coupon code"}</th>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<th>{intl l="Total with discount"}</th> <th>{intl l="Total with discount"}</th>
<td>50 &euro;</td> <td>50 &euro;</td>
</tr> </tr>
<tr> <tr>
<th>{intl l="Freight"}</th> <th>{intl l="Freight"}</th>
<td>6 &euro;</td> <td>6 &euro;</td>
</tr> </tr>
<tr> <tr>
<th>{intl l="Total"}</th> <th>{intl l="Total"}</th>
<td>56 &euro;</td> <td>56 &euro;</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
</div> <!-- #settlement --> </div> <!-- #settlement -->
<div class="tab-pane fade clearfix" id="address"> <div class="tab-pane fade clearfix" id="address">
<div class="col-md-6"> <div class="col-md-6">
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<caption class="clearfix"> <table class="table table-striped table-condensed table-left-aligned">
{intl l='Billing address'} <caption class="clearfix">
<a class="btn btn-default btn-primary pull-right" title="{intl l='Edit this billing address'}" href="#edit_address_dialog" data-toggle="modal"> {intl l='Billing address'}
<span class="glyphicon glyphicon-edit"></span> <a class="btn btn-default btn-primary pull-right" title="{intl l='Edit this billing address'}" href="#edit_address_dialog" data-toggle="modal">
</a> <span class="glyphicon glyphicon-edit"></span>
</caption> </a>
<tbody> </caption>
<tr> <tbody>
<th>{intl l="Title"}</th> <tr>
<td>Mr</td> <th>{intl l="Title"}</th>
</tr> <td>Mr</td>
<tr> </tr>
<th>{intl l="Compagny"}</th> <tr>
<td>Thelia</td> <th>{intl l="Compagny"}</th>
</tr> <td>Thelia</td>
<tr> </tr>
<th>{intl l="Firstname"}</th> <tr>
<td>Espeche</td> <th>{intl l="Firstname"}</th>
</tr> <td>Espeche</td>
<tr> </tr>
<th>{intl l="Lastname"}</th> <tr>
<td>Michaël</td> <th>{intl l="Lastname"}</th>
</tr> <td>Michaël</td>
<tr> </tr>
<th>{intl l="Street address"}</th> <tr>
<td>5, rue Rochon</td> <th>{intl l="Street address"}</th>
</tr> <td>5, rue Rochon</td>
<tr> </tr>
<th>{intl l="Additional address"}</th> <tr>
<td>Lorem ipsum dolor sit amet</td> <th>{intl l="Additional address"}</th>
</tr> <td>Lorem ipsum dolor sit amet</td>
<tr> </tr>
<th>{intl l="Additional address"}</th> <tr>
<td>Lorem ipsum dolor sit</td> <th>{intl l="Additional address"}</th>
</tr> <td>Lorem ipsum dolor sit</td>
<tr> </tr>
<th>{intl l="Zip code"}</th> <tr>
<td>63000</td> <th>{intl l="Zip code"}</th>
</tr> <td>63000</td>
<tr> </tr>
<th>{intl l="City"}</th> <tr>
<td>Clermont-Fd</td> <th>{intl l="City"}</th>
</tr> <td>Clermont-Fd</td>
<tr> </tr>
<th>{intl l="Country"}</th> <tr>
<td>France</td> <th>{intl l="Country"}</th>
</tr> <td>France</td>
<tr> </tr>
<th>{intl l="Phone"}</th> <tr>
<td>01 02 03 04 05</td> <th>{intl l="Phone"}</th>
</tr> <td>01 02 03 04 05</td>
</tbody> </tr>
</table> </tbody>
</table>
</div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<caption class="clearfix"> <table class="table table-striped table-condensed table-left-aligned">
{intl l='Delivery address'} <caption class="clearfix">
<a class="btn btn-default btn-primary pull-right" title="{intl l='Edit this delivery address'}" href="#edit_address_dialog" data-toggle="modal"> {intl l='Delivery address'}
<span class="glyphicon glyphicon-edit"></span> <a class="btn btn-default btn-primary pull-right" title="{intl l='Edit this delivery address'}" href="#edit_address_dialog" data-toggle="modal">
</a> <span class="glyphicon glyphicon-edit"></span>
</caption> </a>
<tbody> </caption>
<tr> <tbody>
<th>{intl l="Title"}</th> <tr>
<td>Mr</td> <th>{intl l="Title"}</th>
</tr> <td>Mr</td>
<tr> </tr>
<th>{intl l="Compagny"}</th> <tr>
<td>Thelia</td> <th>{intl l="Compagny"}</th>
</tr> <td>Thelia</td>
<tr> </tr>
<th>{intl l="Firstname"}</th> <tr>
<td>Espeche</td> <th>{intl l="Firstname"}</th>
</tr> <td>Espeche</td>
<tr> </tr>
<th>{intl l="Lastname"}</th> <tr>
<td>Michaël</td> <th>{intl l="Lastname"}</th>
</tr> <td>Michaël</td>
<tr> </tr>
<th>{intl l="Street address"}</th> <tr>
<td>5, rue Rochon</td> <th>{intl l="Street address"}</th>
</tr> <td>5, rue Rochon</td>
<tr> </tr>
<th>{intl l="Additional address"}</th> <tr>
<td>Lorem ipsum dolor sit amet</td> <th>{intl l="Additional address"}</th>
</tr> <td>Lorem ipsum dolor sit amet</td>
<tr> </tr>
<th>{intl l="Additional address"}</th> <tr>
<td>Lorem ipsum dolor sit</td> <th>{intl l="Additional address"}</th>
</tr> <td>Lorem ipsum dolor sit</td>
<tr> </tr>
<th>{intl l="Zip code"}</th> <tr>
<td>63000</td> <th>{intl l="Zip code"}</th>
</tr> <td>63000</td>
<tr> </tr>
<th>{intl l="City"}</th> <tr>
<td>Clermont-Fd</td> <th>{intl l="City"}</th>
</tr> <td>Clermont-Fd</td>
<tr> </tr>
<th>{intl l="Country"}</th> <tr>
<td>France</td> <th>{intl l="Country"}</th>
</tr> <td>France</td>
<tr> </tr>
<th>{intl l="Phone"}</th> <tr>
<td>01 02 03 04 05</td> <th>{intl l="Phone"}</th>
</tr> <td>01 02 03 04 05</td>
</tbody> </tr>
</table> </tbody>
</table>
</div>
</div> </div>
</div> <!-- #address --> </div> <!-- #address -->
<div class="tab-pane fade clearfix" id="supplements"> <div class="tab-pane fade clearfix" id="supplements">
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<caption> <table class="table table-striped table-condensed table-left-aligned">
{intl l='Further information'} <caption>
</caption> {intl l='Further information'}
</caption>
<tbody>
<tr> <tbody>
<th><label for="">{intl l='Status'}</label></th> <tr>
<td> <th><label for="">{intl l='Status'}</label></th>
<form action="" method=""> <td>
<div class="row"> <form action="" method="">
<div class="col-lg-4"> <div class="row">
<select name="" id="" class="form-control"> <div class="col-lg-4">
<option value="">Status 1</option> <select name="" id="" class="form-control">
<option value="">Status 2</option> <option value="">Status 1</option>
<option value="">Status 3</option> <option value="">Status 2</option>
</select> <option value="">Status 3</option>
</div> </select>
</div> </div>
</form> </div>
</td> </form>
</tr> </td>
<tr> </tr>
<th><label for="">{intl l='Order Tracking'}</label></th> <tr>
<td> <th><label for="">{intl l='Order Tracking'}</label></th>
<form action="" method=""> <td>
<div class="row"> <form action="" method="">
<div class="col-lg-4"> <div class="row">
<input type="text" id="" name="" class="form-control" value="" title="" placeholder=""> <div class="col-lg-4">
</div> <input type="text" id="" name="" class="form-control" value="" title="" placeholder="">
<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-ok"></span></button> </div>
</div> <button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-ok"></span></button>
</form> </div>
</td> </form>
</tr> </td>
<tr> </tr>
<th>{intl l='Bill'}</th> <tr>
<td><a href="#" class="btn btn-default btn-primary"><span class="glyphicon glyphicon-cloud-download"></span> {intl l='Download bill to pdf'}</a></td> <th>{intl l='Bill'}</th>
</tr> <td><a href="#" class="btn btn-default btn-primary"><span class="glyphicon glyphicon-cloud-download"></span> {intl l='Download bill to pdf'}</a></td>
<tr> </tr>
<th>{intl l='Delivery'}</th> <tr>
<td><a href="#" class="btn btn-default btn-primary"><span class="glyphicon glyphicon-cloud-download"></span> {intl l='Download delivery to pdf'}</a></td> <th>{intl l='Delivery'}</th>
</tr> <td><a href="#" class="btn btn-default btn-primary"><span class="glyphicon glyphicon-cloud-download"></span> {intl l='Download delivery to pdf'}</a></td>
</tbody> </tr>
</tbody>
</table> </table>
</div>
</div> <!-- #supplements --> </div> <!-- #supplements -->
</div> </div>

View File

@@ -19,114 +19,116 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="general-block-decorator"> <div class="general-block-decorator">
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<caption class="clearfix"> <table class="table table-striped table-condensed table-left-aligned">
{intl l='Orders'} <caption class="clearfix">
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.orders.create"} {intl l='Orders'}
<a class="btn btn-default btn-primary pull-right" title="{intl l='Create an order'}" href="#creation_dialog"> {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.orders.create"}
<span class="glyphicon glyphicon-plus-sign"></span> <a class="btn btn-default btn-primary pull-right" title="{intl l='Create an order'}" href="#creation_dialog">
</a> <span class="glyphicon glyphicon-plus-sign"></span>
{/loop} </a>
</caption> {/loop}
<thead> </caption>
<tr> <thead>
<th>{intl l="Order n°"}</th> <tr>
<th>{intl l="Date & Hour"}</th> <th>{intl l="Order n°"}</th>
<th>{intl l="Compagny"}</th> <th>{intl l="Date & Hour"}</th>
<th>{intl l="Name"}</th> <th>{intl l="Compagny"}</th>
<th>{intl l="Amount"}</th> <th>{intl l="Name"}</th>
<th>{intl l="Status"}</th> <th>{intl l="Amount"}</th>
<th>{intl l="Status"}</th>
{module_include location='orders_table_header'} {module_include location='orders_table_header'}
<th class="actions">{intl l="Actions"}</th> <th class="actions">{intl l="Actions"}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td><a href="">01230450123045</a></td> <td><a href="">01230450123045</a></td>
<td>11/09/2013 10:24:31</td> <td>11/09/2013 10:24:31</td>
<td>Thelia</td> <td>Thelia</td>
<td><a href="">Dupont</a></td> <td><a href="">Dupont</a></td>
<td>251 &euro;</td> <td>251 &euro;</td>
<td><span class="label label-success">Paid</span></td> <td><span class="label label-success">Paid</span></td>
{module_include location='orders_table_row'} {module_include location='orders_table_row'}
<td> <td>
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.orders.edit"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.orders.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this order'}" href="{url path="/admin/order/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Edit this order'}" href="{url path="/admin/order/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.orders.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.orders.delete"}
<a class="btn btn-default btn-xs" title="{intl l='Delete this order'}" href="#delete_order_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Delete this order'}" href="#delete_order_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a href="">01230450123045</a></td> <td><a href="">01230450123045</a></td>
<td>11/09/2013 10:24:31</td> <td>11/09/2013 10:24:31</td>
<td>Thelia</td> <td>Thelia</td>
<td><a href="">Dupont</a></td> <td><a href="">Dupont</a></td>
<td>251 &euro;</td> <td>251 &euro;</td>
<td><span class="label label-danger">Canceled</span></td> <td><span class="label label-danger">Canceled</span></td>
{module_include location='orders_table_row'} {module_include location='orders_table_row'}
<td> <td>
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.orders.edit"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.orders.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this order'}" href="{url path="/admin/order/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Edit this order'}" href="{url path="/admin/order/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.orders.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.orders.delete"}
<a class="btn btn-default btn-xs" title="{intl l='Delete this order'}" href="#delete_order_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Delete this order'}" href="#delete_order_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a href="">01230450123045</a></td> <td><a href="">01230450123045</a></td>
<td>11/09/2013 10:24:31</td> <td>11/09/2013 10:24:31</td>
<td>Thelia</td> <td>Thelia</td>
<td><a href="">Dupont</a></td> <td><a href="">Dupont</a></td>
<td>251 &euro;</td> <td>251 &euro;</td>
<td><span class="label label-info">Current</span></td> <td><span class="label label-info">Current</span></td>
{module_include location='orders_table_row'} {module_include location='orders_table_row'}
<td> <td>
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.orders.edit"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.orders.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this order'}" href="{url path="/admin/order/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Edit this order'}" href="{url path="/admin/order/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.orders.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.orders.delete"}
<a class="btn btn-default btn-xs" title="{intl l='Delete this order'}" href="#delete_order_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Delete this order'}" href="#delete_order_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
<!-- <tr> <!-- <tr>
<td colspan="3"> <td colspan="3">
<div class="alert alert-info"> <div class="alert alert-info">
{intl l="No mailing template has been created yet. Click the + button to create one."} {intl l="No mailing template has been created yet. Click the + button to create one."}
</div> </div>
</td> </td>
</tr> --> </tr> -->
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -48,56 +48,58 @@
</div> </div>
<div class="col-md-8"> <div class="col-md-8">
<table class="table table-striped table-condensed"> <div class="table-responsive">
<thead> <table class="table table-striped table-condensed">
<tr> <thead>
<th>{intl l="Country"}</th> <tr>
<th>{intl l="Actions"}</th> <th>{intl l="Country"}</th>
</tr> <th>{intl l="Actions"}</th>
</thead> </tr>
<tbody> </thead>
<tr> <tbody>
<td>Wallis-et-Futuna</td> <tr>
<td> <td>Wallis-et-Futuna</td>
<a class="btn btn-default btn-xs" title="{intl l='Delete this country'}" href="#delete_country_dialog" data-id="{$ID}" data-toggle="modal"> <td>
<span class="glyphicon glyphicon-trash"></span> <a class="btn btn-default btn-xs" title="{intl l='Delete this country'}" href="#delete_country_dialog" data-id="{$ID}" data-toggle="modal">
</a> <span class="glyphicon glyphicon-trash"></span>
</td> </a>
</tr> </td>
<tr> </tr>
<td>Polynésie française</td> <tr>
<td> <td>Polynésie française</td>
<a class="btn btn-default btn-xs" title="{intl l='Delete this country'}" href="#delete_country_dialog" data-id="{$ID}" data-toggle="modal"> <td>
<span class="glyphicon glyphicon-trash"></span> <a class="btn btn-default btn-xs" title="{intl l='Delete this country'}" href="#delete_country_dialog" data-id="{$ID}" data-toggle="modal">
</a> <span class="glyphicon glyphicon-trash"></span>
</td> </a>
</tr> </td>
<tr> </tr>
<td>USA - Alabama</td> <tr>
<td> <td>USA - Alabama</td>
<a class="btn btn-default btn-xs" title="{intl l='Delete this country'}" href="#delete_zone_dialog" data-id="{$ID}" data-toggle="modal"> <td>
<span class="glyphicon glyphicon-trash"></span> <a class="btn btn-default btn-xs" title="{intl l='Delete this country'}" href="#delete_zone_dialog" data-id="{$ID}" data-toggle="modal">
</a> <span class="glyphicon glyphicon-trash"></span>
</td> </a>
</tr> </td>
</tbody> </tr>
<tfoot> </tbody>
<tr class="active"> <tfoot>
<td colspan="2"> <tr class="active">
<form method="POST" action=""> <td colspan="2">
<label for="" class="control-label">{intl l="Freight"}</label> <form method="POST" action="">
<div class="input-group"> <label for="" class="control-label">{intl l="Freight"}</label>
<input type="text" class="form-control" name="" id="" placeholder="Freight value"> <div class="input-group">
<span class="input-group-addon">&euro;</span> <input type="text" class="form-control" name="" id="" placeholder="Freight value">
<span class="input-group-btn"> <span class="input-group-addon">&euro;</span>
<button type="submit" class="btn btn-default btn-primary"><span class="glyphicon glyphicon-check"></span></button> <span class="input-group-btn">
</span> <button type="submit" class="btn btn-default btn-primary"><span class="glyphicon glyphicon-check"></span></button>
</div> </span>
</form> </div>
</td> </form>
</tr> </td>
</tfoot> </tr>
</table> </tfoot>
</table>
</div>
</div> </div>
</div> </div>

View File

@@ -20,88 +20,90 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="general-block-decorator"> <div class="general-block-decorator">
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<caption class="clearfix"> <table class="table table-striped table-condensed table-left-aligned">
{intl l='Thelia Shipping configuration'} <caption class="clearfix">
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.shipping-configuration.create"} {intl l='Thelia Shipping configuration'}
<a class="btn btn-default btn-primary pull-right" title="{intl l='Add a new shipping configuration'}" href="#creation_dialog" data-toggle="modal"> {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.shipping-configuration.create"}
<span class="glyphicon glyphicon-plus-sign"></span> <a class="btn btn-default btn-primary pull-right" title="{intl l='Add a new shipping configuration'}" href="#creation_dialog" data-toggle="modal">
</a> <span class="glyphicon glyphicon-plus-sign"></span>
{/loop} </a>
</caption> {/loop}
<thead> </caption>
<tr> <thead>
<th>{intl l="Description"}</th> <tr>
<th>{intl l="Description"}</th>
{module_include location='shipping_configuration_table_header'} {module_include location='shipping_configuration_table_header'}
<th>{intl l="Actions"}</th> <th>{intl l="Actions"}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>France</td> <td>France</td>
{module_include location='shipping_configuration_table_row'} {module_include location='shipping_configuration_table_row'}
<td> <td>
{if ! $SECURED} {if ! $SECURED}
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-configuration.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-configuration.change"}
<a class="btn btn-default btn-xs shipping-configuration-change" title="{intl l='Change this shipping configuration'}" href="{url path="/admin/configuration/shipping_configuration/update/$ID"}"><i class="glyphicon glyphicon-edit"></i></a> <a class="btn btn-default btn-xs shipping-configuration-change" title="{intl l='Change this shipping configuration'}" href="{url path="/admin/configuration/shipping_configuration/update/$ID"}"><i class="glyphicon glyphicon-edit"></i></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.configuration.shipping-configuration.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.configuration.shipping-configuration.delete"}
<a class="btn btn-default btn-xs shipping-configuration-delete" title="{intl l='Delete this shipping configuration'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a> <a class="btn btn-default btn-xs shipping-configuration-delete" title="{intl l='Delete this shipping configuration'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a>
{/loop} {/loop}
</div> </div>
{else} {else}
<i title="{intl l='This shipping configuration could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i> <i title="{intl l='This shipping configuration could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i>
{/if} {/if}
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Outre-Mer DOM</td> <td>Outre-Mer DOM</td>
{module_include location='shipping_configuration_table_row'} {module_include location='shipping_configuration_table_row'}
<td> <td>
{if ! $SECURED} {if ! $SECURED}
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-configuration.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-configuration.change"}
<a class="btn btn-default btn-xs shipping-configuration-change" title="{intl l='Change this shipping configuration'}" href="{url path="/admin/configuration/shipping_configuration/update/$ID"}"><i class="glyphicon glyphicon-edit"></i></a> <a class="btn btn-default btn-xs shipping-configuration-change" title="{intl l='Change this shipping configuration'}" href="{url path="/admin/configuration/shipping_configuration/update/$ID"}"><i class="glyphicon glyphicon-edit"></i></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.configuration.shipping-configuration.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.configuration.shipping-configuration.delete"}
<a class="btn btn-default btn-xs shipping-configuration-delete" title="{intl l='Delete this shipping configuration'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a> <a class="btn btn-default btn-xs shipping-configuration-delete" title="{intl l='Delete this shipping configuration'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a>
{/loop} {/loop}
</div> </div>
{else} {else}
<i title="{intl l='This shipping configuration could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i> <i title="{intl l='This shipping configuration could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i>
{/if} {/if}
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Outre-Mer TOM</td> <td>Outre-Mer TOM</td>
{module_include location='shipping_configuration_table_row'} {module_include location='shipping_configuration_table_row'}
<td> <td>
{if ! $SECURED} {if ! $SECURED}
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-configuration.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-configuration.change"}
<a class="btn btn-default btn-xs shipping-configuration-change" title="{intl l='Change this shipping configuration'}" href="{url path="/admin/configuration/shipping_configuration/update/$ID"}"><i class="glyphicon glyphicon-edit"></i></a> <a class="btn btn-default btn-xs shipping-configuration-change" title="{intl l='Change this shipping configuration'}" href="{url path="/admin/configuration/shipping_configuration/update/$ID"}"><i class="glyphicon glyphicon-edit"></i></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.configuration.shipping-configuration.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.configuration.shipping-configuration.delete"}
<a class="btn btn-default btn-xs shipping-configuration-delete" title="{intl l='Delete this shipping configuration'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a> <a class="btn btn-default btn-xs shipping-configuration-delete" title="{intl l='Delete this shipping configuration'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a>
{/loop} {/loop}
</div> </div>
{else} {else}
<i title="{intl l='This shipping configuration could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i> <i title="{intl l='This shipping configuration could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i>
{/if} {/if}
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -48,40 +48,42 @@
</div> </div>
<div class="col-md-8"> <div class="col-md-8">
<table class="table table-striped table-condensed"> <div class="table-responsive">
<thead> <table class="table table-striped table-condensed">
<tr> <thead>
<th>{intl l="Zones"}</th> <tr>
<th>{intl l="Actions"}</th> <th>{intl l="Zones"}</th>
</tr> <th>{intl l="Actions"}</th>
</thead> </tr>
<tbody> </thead>
<tr> <tbody>
<td>France</td> <tr>
<td> <td>France</td>
<a class="btn btn-default btn-xs" title="{intl l='Delete this zone'}" href="#delete_zone_dialog" data-id="{$ID}" data-toggle="modal"> <td>
<span class="glyphicon glyphicon-trash"></span> <a class="btn btn-default btn-xs" title="{intl l='Delete this zone'}" href="#delete_zone_dialog" data-id="{$ID}" data-toggle="modal">
</a> <span class="glyphicon glyphicon-trash"></span>
</td> </a>
</tr> </td>
<tr> </tr>
<td>Zone 1</td> <tr>
<td> <td>Zone 1</td>
<a class="btn btn-default btn-xs" title="{intl l='Delete this zone'}" href="#delete_zone_dialog" data-id="{$ID}" data-toggle="modal"> <td>
<span class="glyphicon glyphicon-trash"></span> <a class="btn btn-default btn-xs" title="{intl l='Delete this zone'}" href="#delete_zone_dialog" data-id="{$ID}" data-toggle="modal">
</a> <span class="glyphicon glyphicon-trash"></span>
</td> </a>
</tr> </td>
<tr> </tr>
<td>Zone 2</td> <tr>
<td> <td>Zone 2</td>
<a class="btn btn-default btn-xs" title="{intl l='Delete this zone'}" href="#delete_zone_dialog" data-id="{$ID}" data-toggle="modal"> <td>
<span class="glyphicon glyphicon-trash"></span> <a class="btn btn-default btn-xs" title="{intl l='Delete this zone'}" href="#delete_zone_dialog" data-id="{$ID}" data-toggle="modal">
</a> <span class="glyphicon glyphicon-trash"></span>
</td> </a>
</tr> </td>
</tbody> </tr>
</table> </tbody>
</table>
</div>
</div> </div>
</div> </div>

View File

@@ -20,74 +20,76 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="general-block-decorator"> <div class="general-block-decorator">
<table class="table table-striped table-condensed table-left-aligned"> <div class="table-responsive">
<caption> <table class="table table-striped table-condensed table-left-aligned">
{intl l='Thelia Shipping zones'} <caption>
</caption> {intl l='Thelia Shipping zones'}
<thead> </caption>
<tr> <thead>
<th>{intl l="Name"}</th> <tr>
<th>{intl l="Name"}</th>
{module_include location='shipping_zones_table_header'} {module_include location='shipping_zones_table_header'}
<th>{intl l="Actions"}</th> <th>{intl l="Actions"}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>So Colissimo</td> <td>So Colissimo</td>
{module_include location='shipping_zones_table_row'} {module_include location='shipping_zones_table_row'}
<td> <td>
{if ! $SECURED} {if ! $SECURED}
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-zones.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-zones.change"}
<a class="btn btn-default btn-xs shipping-zones-change" title="{intl l='Change this shipping zone'}" href="{url path="/admin/configuration/shipping_zones/update/$ID"}"><i class="glyphicon glyphicon-edit"></i></a> <a class="btn btn-default btn-xs shipping-zones-change" title="{intl l='Change this shipping zone'}" href="{url path="/admin/configuration/shipping_zones/update/$ID"}"><i class="glyphicon glyphicon-edit"></i></a>
{/loop} {/loop}
</div> </div>
{else} {else}
<i title="{intl l='This shipping zone could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i> <i title="{intl l='This shipping zone could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i>
{/if} {/if}
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Chronopost</td> <td>Chronopost</td>
{module_include location='shipping_zones_table_row'} {module_include location='shipping_zones_table_row'}
<td> <td>
{if ! $SECURED} {if ! $SECURED}
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-zones.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-zones.change"}
<a class="btn btn-default btn-xs shipping-zones-change" title="{intl l='Change this shipping zone'}" href="{url path="/admin/configuration/shipping_zones/update/$ID"}"><i class="glyphicon glyphicon-edit"></i></a> <a class="btn btn-default btn-xs shipping-zones-change" title="{intl l='Change this shipping zone'}" href="{url path="/admin/configuration/shipping_zones/update/$ID"}"><i class="glyphicon glyphicon-edit"></i></a>
{/loop} {/loop}
</div> </div>
{else} {else}
<i title="{intl l='This shipping zone could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i> <i title="{intl l='This shipping zone could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i>
{/if} {/if}
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Kiala</td> <td>Kiala</td>
{module_include location='shipping_zones_table_row'} {module_include location='shipping_zones_table_row'}
<td> <td>
{if ! $SECURED} {if ! $SECURED}
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-zones.change"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-zones.change"}
<a class="btn btn-default btn-xs shipping-zones-change" title="{intl l='Change this shipping zone'}" href="{url path="/admin/configuration/shipping_zones/update/$ID"}"><i class="glyphicon glyphicon-edit"></i></a> <a class="btn btn-default btn-xs shipping-zones-change" title="{intl l='Change this shipping zone'}" href="{url path="/admin/configuration/shipping_zones/update/$ID"}"><i class="glyphicon glyphicon-edit"></i></a>
{/loop} {/loop}
</div> </div>
{else} {else}
<i title="{intl l='This shipping zone could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i> <i title="{intl l='This shipping zone could not be changed.'}" class="glyphicon glyphicon-ban-circle"></i>
{/if} {/if}
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -25,86 +25,88 @@
{if ! empty($general_error) } {if ! empty($general_error) }
<div class="alert alert-danger">{$general_error}</div> <div class="alert alert-danger">{$general_error}</div>
{/if} {/if}
<div class="table-responsive">
<table class="table table-striped table-condensed table-left-aligned">
<caption>
{intl l='Thelia product templates'}
<table class="table table-striped table-condensed table-left-aligned"> {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.templates.create"}
<caption> <a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new product template'}" href="#creation_dialog" data-toggle="modal">
{intl l='Thelia product templates'} <span class="glyphicon glyphicon-plus-sign"></span>
</a>
{/loop}
</caption>
<thead>
<tr>
<th>
{admin_sortable_header
current_order=$order
order='id'
reverse_order='id_reverse'
path='/admin/configuration/templates'
label="{intl l='ID'}"
}
</th>
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.templates.create"} <th>
<a class="btn btn-default btn-primary action-btn" title="{intl l='Add a new product template'}" href="#creation_dialog" data-toggle="modal"> {admin_sortable_header
<span class="glyphicon glyphicon-plus-sign"></span> current_order=$order
</a> order='alpha'
{/loop} reverse_order='alpha_reverse'
</caption> path='/admin/configuration/templates'
<thead> label="{intl l='Title'}"
<tr> }
<th> </th>
{admin_sortable_header
current_order=$order
order='id'
reverse_order='id_reverse'
path='/admin/configuration/templates'
label="{intl l='ID'}"
}
</th>
<th> {module_include location='templates_table_header'}
{admin_sortable_header
current_order=$order
order='alpha'
reverse_order='alpha_reverse'
path='/admin/configuration/templates'
label="{intl l='Title'}"
}
</th>
{module_include location='templates_table_header'} <th class="actions">{intl l="Actions"}</th>
</tr>
</thead>
<th class="actions">{intl l="Actions"}</th> <tbody>
</tr> {loop name="list" type="template" backend_context="1" lang=$lang_id order=$order}
</thead> <tr>
<td>{$ID}</td>
<tbody> <td>
{loop name="list" type="template" backend_context="1" lang=$lang_id order=$order} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.templates.change"}
<tr> <a title="{intl l='Change this template'}" href="{url path='/admin/configuration/templates/update' template_id=$ID}">{$NAME}</a>
<td>{$ID}</td> {/loop}
{elseloop rel="can_change"}
{$NAME}
{/elseloop}
</td>
<td> {module_include location='templates_table_row'}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.templates.change"}
<a title="{intl l='Change this template'}" href="{url path='/admin/configuration/templates/update' template_id=$ID}">{$NAME}</a>
{/loop}
{elseloop rel="can_change"}
{$NAME}
{/elseloop}
</td>
{module_include location='templates_table_row'} <td class="actions">
<div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.templates.change"}
<a class="btn btn-default btn-xs template-change" title="{intl l='Change this product template'}" href="{url path='/admin/configuration/templates/update' template_id=$ID}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop}
<td class="actions"> {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.templates.delete"}
<div class="btn-group"> <a class="btn btn-default btn-xs template-delete" title="{intl l='Delete this product template'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.templates.change"} {/loop}
<a class="btn btn-default btn-xs template-change" title="{intl l='Change this product template'}" href="{url path='/admin/configuration/templates/update' template_id=$ID}"><span class="glyphicon glyphicon-edit"></span></a> </div>
{/loop} </td>
</tr>
{/loop}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.templates.delete"} {elseloop rel="list"}
<a class="btn btn-default btn-xs template-delete" title="{intl l='Delete this product template'}" href="#delete_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <tr>
{/loop} <td colspan="4">
</div> <div class="alert alert-info">
</td> {intl l="No product template has been created yet. Click the + button to create one."}
</tr> </div>
{/loop} </td>
</tr>
{elseloop rel="list"} {/elseloop}
<tr> </tbody>
<td colspan="4"> </table>
<div class="alert alert-info"> </div>
{intl l="No product template has been created yet. Click the + button to create one."}
</div>
</td>
</tr>
{/elseloop}
</tbody>
</table>
</div> </div>
</form> </form>
</div> </div>

View File

@@ -21,6 +21,7 @@
<div class="col-md-12"> <div class="col-md-12">
<form action="{url path='/admin/configuration/variables/update-values'}" method="post"> <form action="{url path='/admin/configuration/variables/update-values'}" method="post">
<div class="general-block-decorator"> <div class="general-block-decorator">
<div class="table-responsive">
<table class="table table-striped table-condensed table-left-aligned"> <table class="table table-striped table-condensed table-left-aligned">
<caption class="clearfix"> <caption class="clearfix">
{intl l='Thelia system variables'} {intl l='Thelia system variables'}
@@ -122,6 +123,7 @@
{/loop} {/loop}
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</form> </form>
</div> </div>