[+] BO Orders

This commit is contained in:
Kevin Granger
2013-07-26 18:54:28 +02:00
parent c1e4b812f9
commit 9f9c0ef416
12 changed files with 204 additions and 246 deletions
+1 -1
View File
@@ -5089,7 +5089,7 @@ body.fixed-top {
border-radius: 5px; border-radius: 5px;
-webkit-box-shadow: rgba(0, 0, 0, 0.1) 0 0 7px, white 0 0 0 4px inset; -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0 0 7px, white 0 0 0 4px inset;
box-shadow: rgba(0, 0, 0, 0.1) 0 0 7px, white 0 0 0 4px inset; } box-shadow: rgba(0, 0, 0, 0.1) 0 0 7px, white 0 0 0 4px inset; }
#content form legend { #content legend {
float: left; float: left;
padding: 0 0 0 0; padding: 0 0 0 0;
margin: 5px 0 15px 0; margin: 5px 0 15px 0;
@@ -53,7 +53,7 @@ body.fixed-top
background-color: $bg-content-color background-color: $bg-content-color
@include border-radius(5px) @include border-radius(5px)
@include box-shadow(rgba(black,0.10) 0 0 7px, white 0 0 0 4px inset) @include box-shadow(rgba(black,0.10) 0 0 7px, white 0 0 0 4px inset)
form legend legend
float: left float: left
padding: 0 0 0 0 padding: 0 0 0 0
margin: 5px 0 15px 0 margin: 5px 0 15px 0
@@ -283,6 +283,7 @@
</div> </div>
</div> </div>
{elseif $input.type == 'textarea'} {elseif $input.type == 'textarea'}
{if isset($input.lang) AND $input.lang} {if isset($input.lang) AND $input.lang}
{foreach $languages as $language} {foreach $languages as $language}
@@ -312,6 +313,7 @@
{else} {else}
<textarea name="{$input.name}" id="{if isset($input.id)}{$input.id}{else}{$input.name}{/if}" cols="{$input.cols}" rows="{$input.rows}" {if isset($input.autoload_rte) && $input.autoload_rte}class="rte autoload_rte {if isset($input.class)}{$input.class}{/if}"{/if}>{$fields_value[$input.name]|escape:'htmlall':'UTF-8'}</textarea> <textarea name="{$input.name}" id="{if isset($input.id)}{$input.id}{else}{$input.name}{/if}" cols="{$input.cols}" rows="{$input.rows}" {if isset($input.autoload_rte) && $input.autoload_rte}class="rte autoload_rte {if isset($input.class)}{$input.class}{/if}"{/if}>{$fields_value[$input.name]|escape:'htmlall':'UTF-8'}</textarea>
{/if} {/if}
{elseif $input.type == 'checkbox'} {elseif $input.type == 'checkbox'}
{foreach $input.values.query as $value} {foreach $input.values.query as $value}
{assign var=id_checkbox value=$input.name|cat:'_'|cat:$value[$input.values.id]} {assign var=id_checkbox value=$input.name|cat:'_'|cat:$value[$input.values.id]}
@@ -395,12 +397,20 @@
value="{$fields_value[$input.name]|escape:'htmlall':'UTF-8'}" /> value="{$fields_value[$input.name]|escape:'htmlall':'UTF-8'}" />
{elseif $input.type == 'date'} {elseif $input.type == 'date'}
<input type="text" <div class="row">
data-hex="true" <div class="input-group col-lg-4">
{if isset($input.class)}class="{$input.class}" <input type="text"
{else}class="datepicker"{/if} data-hex="true"
name="{$input.name}" {if isset($input.class)}class="{$input.class}"
value="{$fields_value[$input.name]|escape:'htmlall':'UTF-8'}" /> {else}class="datepicker"{/if}
name="{$input.name}"
value="{$fields_value[$input.name]|escape:'htmlall':'UTF-8'}" />
<span class="input-group-addon">
<i class="icon-calendar-empty"></i>
</span>
</div>
</div>
{elseif $input.type == 'free'} {elseif $input.type == 'free'}
{$fields_value[$input.name]} {$fields_value[$input.name]}
{/if} {/if}
@@ -22,20 +22,50 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*} *}
</table> </table>
{if $bulk_actions} {if $bulk_actions}
<p> <p>
{foreach $bulk_actions as $key => $params} {foreach $bulk_actions as $key => $params}
<input type="submit" class="btn btn-default" name="submitBulk{$key}{$table}" value="{$params.text}" {if isset($params.confirm)}onclick="return confirm('{$params.confirm}');"{/if} /> <input type="submit" class="btn btn-default" name="submitBulk{$key}{$table}" value="{$params.text}" {if isset($params.confirm)}onclick="return confirm('{$params.confirm}');"{/if} />
{/foreach} {/foreach}
</p> </p>
{/if} {/if}
{if !$simple_header}
<div class="table-pagination pull-right">
<span>
{if $page > 1}
<input type="image" src="../img/admin/list-prev2.gif" onclick="getE('submitFilter{$table}').value=1"/>&nbsp;
<input type="image" src="../img/admin/list-prev.gif" onclick="getE('submitFilter{$table}').value={$page - 1}"/>
{/if}
{l s='Page'} <b>{$page}</b> / {$total_pages}
{if $page < $total_pages}
<input type="image" src="../img/admin/list-next.gif" onclick="getE('submitFilter{$table}').value={$page + 1}"/>&nbsp;
<input type="image" src="../img/admin/list-next2.gif" onclick="getE('submitFilter{$table}').value={$total_pages}"/>
{/if}
</span>
<span>
&nbsp;|&nbsp;
<label >{l s='Display'}</label>
<select class="filter fixed-width-S" name="pagination" onchange="submit()">
{* Choose number of results per page *}
{foreach $pagination AS $value}
<option value="{$value|intval}"{if $selected_pagination == $value} selected="selected" {elseif $selected_pagination == NULL && $value == $pagination[1]} selected="selected2"{/if}>{$value|intval}</option>
{/foreach}
</select>
</span>
<span> / {$list_total} {l s='result(s)'}</span>
</div>
{/if}
{if !$simple_header} {if !$simple_header}
<input type="hidden" name="token" value="{$token}" /> <input type="hidden" name="token" value="{$token}" />
</fieldset> </fieldset>
</form> </form>
{/if} {/if}
{hook h='displayAdminListAfter'} {hook h='displayAdminListAfter'}
@@ -24,51 +24,46 @@
*} *}
{if !$simple_header} {if !$simple_header}
<script type="text/javascript">
$(document).ready(function() {
$('table.{$table} .filter').keypress(function(event){
formSubmit(event, 'submitFilterButton{$table}')
})
});
</script>
{* Display column names and arrows for ordering (ASC, DESC) *}
{if $is_order_position}
<script type="text/javascript" src="../js/jquery/plugins/jquery.tablednd.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { var token = '{$token}';
$('table.{$table} .filter').keypress(function(event){ var come_from = '{$table}';
formSubmit(event, 'submitFilterButton{$table}') var alternate = {if $order_way == 'DESC'}'1'{else}'0'{/if};
})
});
</script> </script>
{* Display column names and arrows for ordering (ASC, DESC) *} <script type="text/javascript" src="../js/admin-dnd.js"></script>
{if $is_order_position} {/if}
<script type="text/javascript" src="../js/jquery/plugins/jquery.tablednd.js"></script> <script type="text/javascript">
<script type="text/javascript"> $(function() {
var token = '{$token}'; if ($("table.{$table} .datepicker").length > 0)
var come_from = '{$table}'; $("table.{$table} .datepicker").datepicker({
var alternate = {if $order_way == 'DESC'}'1'{else}'0'{/if}; prevText: '',
</script> nextText: '',
<script type="text/javascript" src="../js/admin-dnd.js"></script> dateFormat: 'yy-mm-dd'
{/if} });
});
<script type="text/javascript"> </script>
$(function() { {/if}
if ($("table.{$table} .datepicker").length > 0)
$("table.{$table} .datepicker").datepicker({
prevText: '',
nextText: '',
dateFormat: 'yy-mm-dd'
});
});
</script>
{/if}{* End if simple_header *}
{if $show_toolbar} {if $show_toolbar}
{include file="toolbar.tpl" toolbar_btn=$toolbar_btn toolbar_scroll=$toolbar_scroll title=$title} {include file="toolbar.tpl" toolbar_btn=$toolbar_btn toolbar_scroll=$toolbar_scroll title=$title}
{/if} {/if}
{if !$simple_header} {if !$simple_header}
<div class="leadin">{block name="leadin"}{/block}</div> <div class="leadin">{block name="leadin"}{/block}</div>
{/if} {/if}
{hook h='displayAdminListBefore'} {hook h='displayAdminListBefore'}
{if isset($name_controller)} {if isset($name_controller)}
{capture name=hookName assign=hookName}display{$name_controller|ucfirst}ListBefore{/capture} {capture name=hookName assign=hookName}display{$name_controller|ucfirst}ListBefore{/capture}
{hook h=$hookName} {hook h=$hookName}
@@ -77,48 +72,13 @@
{hook h=$hookName} {hook h=$hookName}
{/if} {/if}
{if !$simple_header} {if !$simple_header}
<form method="post" action="{$action}" class="form-inline"> <form method="post" action="{$action}" class="form-inline">
<fieldset class="col-lg-12"> <fieldset class="col-lg-12">
{block name="override_header"}{/block} {block name="override_header"}{/block}
<input type="hidden" id="submitFilter{$table}" name="submitFilter{$table}" value="0"/> <input type="hidden" id="submitFilter{$table}" name="submitFilter{$table}" value="0"/>
{/if}
{if !$simple_header}
<span>
{if $page > 1}
<input type="image" src="../img/admin/list-prev2.gif" onclick="getE('submitFilter{$table}').value=1"/>&nbsp;
<input type="image" src="../img/admin/list-prev.gif" onclick="getE('submitFilter{$table}').value={$page - 1}"/>
{/if}
{l s='Page'} <b>{$page}</b> / {$total_pages}
{if $page < $total_pages}
<input type="image" src="../img/admin/list-next.gif" onclick="getE('submitFilter{$table}').value={$page + 1}"/>&nbsp;
<input type="image" src="../img/admin/list-next2.gif" onclick="getE('submitFilter{$table}').value={$total_pages}"/>
{/if}
</span>
<span>
&nbsp;|&nbsp;
<label >
{l s='Display'}
</label>
<select class="filter fixed-width-S" name="pagination" onchange="submit()">
{* Choose number of results per page *}
{foreach $pagination AS $value}
<option value="{$value|intval}"{if $selected_pagination == $value} selected="selected" {elseif $selected_pagination == NULL && $value == $pagination[1]} selected="selected2"{/if}>{$value|intval}</option>
{/foreach}
</select>
</span>
<span> / {$list_total} {l s='result(s)'}</span>
<span class="pull-right"> <span class="pull-right">
<button type="submit" name="submitReset{$table}" class="btn btn-default btn-small"> <button type="submit" name="submitReset{$table}" class="btn btn-default btn-small">
<i class="icon-eraser"></i> {l s='Reset'} <i class="icon-eraser"></i> {l s='Reset'}
@@ -127,64 +87,49 @@
<i class="icon-filter"></i> {l s='Filter'} <i class="icon-filter"></i> {l s='Filter'}
</button> </button>
</span> </span>
{/if}
{/if} <table
class="table table-hover"
<table name="list_table"
class="table table-hover" {if $table_id} id={$table_id}{/if}
name="list_table" class="table {if $table_dnd}tableDnD{/if} {$table}"
{if $table_id} id={$table_id}{/if} >
class="table {if $table_dnd}tableDnD{/if} {$table}"
cellpadding="0" cellspacing="0">
{* <col width="10px" />
{foreach $fields_display AS $key => $params}
<col {if isset($params.width) && $params.width != 'auto'}width="{$params.width}px"{/if}/>
{/foreach}
{if $shop_link_type}
<col width="80px" />
{/if}
{if $has_actions}
<col width="200px" />
{/if} *}
<thead> <thead>
<tr class="nodrag nodrop"> <tr class="nodrag nodrop">
<th class="center"> <th class="center">
{if $has_bulk_actions} {if $has_bulk_actions}
<input type="checkbox" name="checkme" class="noborder" onclick="checkDelBoxes(this.form, '{$table}Box[]', this.checked)" /> <input type="checkbox" name="checkme" class="noborder" onclick="checkDelBoxes(this.form, '{$table}Box[]', this.checked)" />
{/if} {/if}
</th> </th>
{foreach $fields_display AS $key => $params} {foreach $fields_display AS $key => $params}
<th {if isset($params.align)} class="{$params.align}"{/if}> <th {if isset($params.align)} class="{$params.align}"{/if}>
{if isset($params.hint)} {if isset($params.hint)}
<span class="alert alert-info" name="help_box">{$params.hint}<span class="hint-pointer">&nbsp;</span></span> <span class="alert alert-info" name="help_box">{$params.hint}<span class="hint-pointer">&nbsp;</span></span>
{/if} {/if}
<span class="title_box {if isset($order_by) && ($key == $order_by)} active{/if}"> <span class="title_box {if isset($order_by) && ($key == $order_by)} active{/if}">
{$params.title} {$params.title}
{if (!isset($params.orderby) || $params.orderby) && !$simple_header} {if (!isset($params.orderby) || $params.orderby) && !$simple_header}
<a {if isset($order_by) && ($key == $order_by) && ($order_way == 'DESC')}class="active"{/if} href="{$currentIndex}&{$table}Orderby={$key|urlencode}&{$table}Orderway=desc&token={$token}{if isset($smarty.get.$identifier)}&{$identifier}={$smarty.get.$identifier|intval}{/if}"> <a {if isset($order_by) && ($key == $order_by) && ($order_way == 'DESC')}class="active"{/if} href="{$currentIndex}&{$table}Orderby={$key|urlencode}&{$table}Orderway=desc&token={$token}{if isset($smarty.get.$identifier)}&{$identifier}={$smarty.get.$identifier|intval}{/if}">
<i class="icon-caret-down"></i> <i class="icon-caret-down"></i>
</a> </a>
<a {if isset($order_by) && ($key == $order_by) && ($order_way == 'ASC')}class="active"{/if} href="{$currentIndex}&{$table}Orderby={$key|urlencode}&{$table}Orderway=asc&token={$token}{if isset($smarty.get.$identifier)}&{$identifier}={$smarty.get.$identifier|intval}{/if}">
<a {if isset($order_by) && ($key == $order_by) && ($order_way == 'ASC')}class="active"{/if} href="{$currentIndex}&{$table}Orderby={$key|urlencode}&{$table}Orderway=asc&token={$token}{if isset($smarty.get.$identifier)}&{$identifier}={$smarty.get.$identifier|intval}{/if}">
<i class="icon-caret-up"></i> <i class="icon-caret-up"></i>
</a> </a>
</span> </span>
{elseif !$simple_header} {/if}
{/if} </th>
</th>
{/foreach} {/foreach}
{if $shop_link_type} {if $shop_link_type}
<th> <th>
{if $shop_link_type == 'shop'} {if $shop_link_type == 'shop'}
{l s='Shop'} {l s='Shop'}
{else} {else}
{l s='Group shop'} {l s='Group shop'}
{/if} {/if}
<br />&nbsp; </th>
</th>
{/if} {/if}
{if $has_actions} {if $has_actions}
<th>{l s='Actions'}{if !$simple_header}{/if}</th> <th>{l s='Actions'}{if !$simple_header}{/if}</th>
{/if} {/if}
</tr> </tr>
{if !$simple_header} {if !$simple_header}
@@ -197,43 +142,43 @@
{* Filters (input, select, date or bool) *} {* Filters (input, select, date or bool) *}
{foreach $fields_display AS $key => $params} {foreach $fields_display AS $key => $params}
<td {if isset($params.align)} class="{$params.align}" {/if}> <td {if isset($params.align)} class="{$params.align}" {/if}>
{if isset($params.search) && !$params.search} {if isset($params.search) && !$params.search}
-- --
{else} {else}
{if $params.type == 'bool'} {if $params.type == 'bool'}
<select class="filter" onchange="$('#submitFilterButton{$table}').focus();$('#submitFilterButton{$table}').click();" name="{$table}Filter_{$key}"> <select class="filter" onchange="$('#submitFilterButton{$table}').focus();$('#submitFilterButton{$table}').click();" name="{$table}Filter_{$key}">
<option value="">--</option> <option value="">--</option>
<option value="1" {if $params.value == 1} selected="selected" {/if}>{l s='Yes'}</option> <option value="1" {if $params.value == 1} selected="selected" {/if}>{l s='Yes'}</option>
<option value="0" {if $params.value == 0 && $params.value != ''} selected="selected" {/if}>{l s='No'}</option> <option value="0" {if $params.value == 0 && $params.value != ''} selected="selected" {/if}>{l s='No'}</option>
</select>
{elseif $params.type == 'date' || $params.type == 'datetime'}
{l s='From'} <input type="text" class="filter datepicker" id="{$params.id_date}_0" name="{$params.name_date}[0]" value="{if isset($params.value.0)}{$params.value.0}{/if}"{if isset($params.width)} style="width:70px"{/if}/>
{l s='To'} <input type="text" class="filter datepicker" id="{$params.id_date}_1" name="{$params.name_date}[1]" value="{if isset($params.value.1)}{$params.value.1}{/if}"{if isset($params.width)} style="width:70px"{/if}/>
{elseif $params.type == 'select'}
{if isset($params.filter_key)}
<select class="filter" onchange="$('#submitFilterButton{$table}').focus();$('#submitFilterButton{$table}').click();" name="{$table}Filter_{$params.filter_key}" {if isset($params.width)} style="width:{$params.width}px"{/if}>
<option value="" {if $params.value == ''} selected="selected" {/if}>--</option>
{if isset($params.list) && is_array($params.list)}
{foreach $params.list AS $option_value => $option_display}
<option value="{$option_value}" {if $option_display == $params.value || $option_value == $params.value} selected="selected"{/if}>{$option_display}</option>
{/foreach}
{/if}
</select> </select>
{elseif $params.type == 'date' || $params.type == 'datetime'}
{l s='From'} <input type="text" class="filter datepicker" id="{$params.id_date}_0" name="{$params.name_date}[0]" value="{if isset($params.value.0)}{$params.value.0}{/if}"{if isset($params.width)} style="width:70px"{/if}/>
{l s='To'} <input type="text" class="filter datepicker" id="{$params.id_date}_1" name="{$params.name_date}[1]" value="{if isset($params.value.1)}{$params.value.1}{/if}"{if isset($params.width)} style="width:70px"{/if}/>
{elseif $params.type == 'select'}
{if isset($params.filter_key)}
<select class="filter" onchange="$('#submitFilterButton{$table}').focus();$('#submitFilterButton{$table}').click();" name="{$table}Filter_{$params.filter_key}" {if isset($params.width)} style="width:{$params.width}px"{/if}>
<option value="" {if $params.value == ''} selected="selected" {/if}>--</option>
{if isset($params.list) && is_array($params.list)}
{foreach $params.list AS $option_value => $option_display}
<option value="{$option_value}" {if $option_display == $params.value || $option_value == $params.value} selected="selected"{/if}>{$option_display}</option>
{/foreach}
{/if}
</select>
{/if}
{else}
<input type="text" class="filter" name="{$table}Filter_{if isset($params.filter_key)}{$params.filter_key}{else}{$key}{/if}" value="{$params.value|escape:'htmlall':'UTF-8'}" {if isset($params.width) && $params.width != 'auto'} style="width:{$params.width}px"{/if} />
{/if} {/if}
{else}
<input type="text" class="filter" name="{$table}Filter_{if isset($params.filter_key)}{$params.filter_key}{else}{$key}{/if}" value="{$params.value|escape:'htmlall':'UTF-8'}" {if isset($params.width) && $params.width != 'auto'} style="width:{$params.width}px"{/if} />
{/if} {/if}
</td> {/if}
</td>
{/foreach} {/foreach}
{if $shop_link_type} {if $shop_link_type}
<td>--</td> <td>--</td>
{/if} {/if}
{if $has_actions} {if $has_actions}
<td class="center">--</td> <td class="center">--</td>
{/if} {/if}
</tr> </tr>
{/if} {/if}
</thead> </thead>
+15 -16
View File
@@ -574,24 +574,28 @@ class HelperListCore extends Helper
$this->fields_list[$key] = $params; $this->fields_list[$key] = $params;
} }
$this->header_tpl->assign(array_merge($this->tpl_vars, array( Context::getContext()->smarty->assign(array(
'title' => $this->title,
'show_toolbar' => $this->show_toolbar,
'toolbar_scroll' => $this->toolbar_scroll,
'toolbar_btn' => $this->toolbar_btn,
'table' => $this->table,
'currentIndex' => $this->currentIndex,
'action' => $action,
'page' => $page, 'page' => $page,
'simple_header' => $this->simple_header, 'simple_header' => $this->simple_header,
'total_pages' => $total_pages, 'total_pages' => $total_pages,
'selected_pagination' => $selected_pagination, 'selected_pagination' => $selected_pagination,
'pagination' => $this->_pagination, 'pagination' => $this->_pagination,
'list_total' => $this->listTotal, 'list_total' => $this->listTotal,
'token' => $this->token,
'table' => $this->table,
'bulk_actions' => $this->bulk_actions
));
$this->header_tpl->assign(array_merge($this->tpl_vars, array(
'title' => $this->title,
'show_toolbar' => $this->show_toolbar,
'toolbar_scroll' => $this->toolbar_scroll,
'toolbar_btn' => $this->toolbar_btn,
'currentIndex' => $this->currentIndex,
'action' => $action,
'is_order_position' => $this->position_identifier && $this->orderBy == 'position', 'is_order_position' => $this->position_identifier && $this->orderBy == 'position',
'order_way' => $this->orderWay, 'order_way' => $this->orderWay,
'order_by' => $this->orderBy, 'order_by' => $this->orderBy,
'token' => $this->token,
'fields_display' => $this->fields_list, 'fields_display' => $this->fields_list,
'delete' => in_array('delete', $this->actions), 'delete' => in_array('delete', $this->actions),
'identifier' => $this->identifier, 'identifier' => $this->identifier,
@@ -599,12 +603,11 @@ class HelperListCore extends Helper
'shop_link_type' => $this->shopLinkType, 'shop_link_type' => $this->shopLinkType,
'has_actions' => !empty($this->actions), 'has_actions' => !empty($this->actions),
'has_bulk_actions' => !empty($this->bulk_actions), 'has_bulk_actions' => !empty($this->bulk_actions),
'bulk_actions' => $this->bulk_actions,
'table_id' => isset($table_id) ? $table_id : null, 'table_id' => isset($table_id) ? $table_id : null,
'table_dnd' => isset($table_dnd) ? $table_dnd : null, 'table_dnd' => isset($table_dnd) ? $table_dnd : null,
'name' => isset($name) ? $name : null, 'name' => isset($name) ? $name : null,
'name_id' => isset($name_id) ? $name_id : null, 'name_id' => isset($name_id) ? $name_id : null,
'row_hover' => $this->row_hover, 'row_hover' => $this->row_hover
))); )));
return $this->header_tpl->fetch(); return $this->header_tpl->fetch();
@@ -616,11 +619,7 @@ class HelperListCore extends Helper
public function displayListFooter() public function displayListFooter()
{ {
$this->footer_tpl->assign(array_merge($this->tpl_vars, array( $this->footer_tpl->assign(array_merge($this->tpl_vars, array(
'token' => $this->token, 'current' => $this->currentIndex
'table' => $this->table,
'current' => $this->currentIndex,
'bulk_actions' => $this->bulk_actions,
'simple_header' => $this->simple_header
))); )));
return $this->footer_tpl->fetch(); return $this->footer_tpl->fetch();
} }
@@ -40,13 +40,11 @@ class AdminDeliverySlipControllerCore extends AdminController
'PS_DELIVERY_PREFIX' => array( 'PS_DELIVERY_PREFIX' => array(
'title' => $this->l('Delivery prefix:'), 'title' => $this->l('Delivery prefix:'),
'desc' => $this->l('Prefix used for delivery slips'), 'desc' => $this->l('Prefix used for delivery slips'),
'size' => 6,
'type' => 'textLang' 'type' => 'textLang'
), ),
'PS_DELIVERY_NUMBER' => array( 'PS_DELIVERY_NUMBER' => array(
'title' => $this->l('Delivery number:'), 'title' => $this->l('Delivery number:'),
'desc' => $this->l('The next delivery slip will begin with this number and then increase with each additional slip.'), 'desc' => $this->l('The next delivery slip will begin with this number and then increase with each additional slip.'),
'size' => 6,
'cast' => 'intval', 'cast' => 'intval',
'type' => 'text' 'type' => 'text'
) )
@@ -63,31 +61,30 @@ class AdminDeliverySlipControllerCore extends AdminController
$this->fields_form = array( $this->fields_form = array(
'legend' => array( 'legend' => array(
'title' => $this->l('Print PDF delivery slips'), 'title' => $this->l('Print PDF delivery slips'),
'image' => '../img/admin/AdminPdf.gif' 'icon' => 'icon-print'
), ),
'input' => array( 'input' => array(
array( array(
'type' => 'date', 'type' => 'date',
'label' => $this->l('From:'), 'label' => $this->l('From:'),
'name' => 'date_from', 'name' => 'date_from',
'size' => 20,
'maxlength' => 10, 'maxlength' => 10,
'required' => true, 'required' => true,
'desc' => $this->l('Format: 2011-12-31 (inclusive)') 'hint' => $this->l('Format: 2011-12-31 (inclusive)')
), ),
array( array(
'type' => 'date', 'type' => 'date',
'label' => $this->l('To:'), 'label' => $this->l('To:'),
'name' => 'date_to', 'name' => 'date_to',
'size' => 20,
'maxlength' => 10, 'maxlength' => 10,
'required' => true, 'required' => true,
'desc' => $this->l('Format: 2012-12-31 (inclusive)') 'hint' => $this->l('Format: 2012-12-31 (inclusive)')
) )
), ),
'submit' => array( 'submit' => array(
'title' => $this->l('Generate PDF file'), 'title' => $this->l('Generate PDF file'),
'class' => 'button' 'class' => 'btn btn-primary',
'icon' => 'icon-download-alt'
) )
); );
@@ -132,7 +132,7 @@ class AdminInvoicesControllerCore extends AdminController
$this->fields_form = array( $this->fields_form = array(
'legend' => array( 'legend' => array(
'title' => $this->l('By order status'), 'title' => $this->l('By order status'),
'icon' => 'icon-pushpin' 'icon' => 'icon-time'
), ),
'input' => array( 'input' => array(
array( array(
@@ -46,16 +46,13 @@ class AdminOrderMessageControllerCore extends AdminController
$this->fields_list = array( $this->fields_list = array(
'id_order_message' => array( 'id_order_message' => array(
'title' => $this->l('ID'), 'title' => $this->l('ID'),
'align' => 'center', 'align' => 'center'
'width' => 25
), ),
'name' => array( 'name' => array(
'title' => $this->l('Name'), 'title' => $this->l('Name')
'width' => 140
), ),
'message' => array( 'message' => array(
'title' => $this->l('Message'), 'title' => $this->l('Message'),
'width' => 600,
'maxlength' => 300 'maxlength' => 300
) )
); );
@@ -63,7 +60,7 @@ class AdminOrderMessageControllerCore extends AdminController
$this->fields_form = array( $this->fields_form = array(
'legend' => array( 'legend' => array(
'title' => $this->l('Order messages'), 'title' => $this->l('Order messages'),
'image' => '../img/admin/email.gif' 'icon' => 'icon-mail'
), ),
'input' => array( 'input' => array(
array( array(
@@ -79,8 +76,6 @@ class AdminOrderMessageControllerCore extends AdminController
'lang' => true, 'lang' => true,
'label' => $this->l('Message:'), 'label' => $this->l('Message:'),
'name' => 'message', 'name' => 'message',
'cols' => 50,
'rows' => 15,
'required' => true 'required' => true
) )
), ),
+3 -12
View File
@@ -64,17 +64,14 @@ class AdminOrdersControllerCore extends AdminController
$this->fields_list = array( $this->fields_list = array(
'id_order' => array( 'id_order' => array(
'title' => $this->l('ID'), 'title' => $this->l('ID'),
'align' => 'center', 'align' => 'center'
'width' => 25
), ),
'reference' => array( 'reference' => array(
'title' => $this->l('Reference'), 'title' => $this->l('Reference'),
'align' => 'center', 'align' => 'center'
'width' => 65
), ),
'new' => array( 'new' => array(
'title' => $this->l('New'), 'title' => $this->l('New'),
'width' => 25,
'align' => 'center', 'align' => 'center',
'type' => 'bool', 'type' => 'bool',
'tmpTableFilter' => true, 'tmpTableFilter' => true,
@@ -93,7 +90,6 @@ class AdminOrdersControllerCore extends AdminController
), ),
'total_paid_tax_incl' => array( 'total_paid_tax_incl' => array(
'title' => $this->l('Total'), 'title' => $this->l('Total'),
'width' => 70,
'align' => 'right', 'align' => 'right',
'prefix' => '<b>', 'prefix' => '<b>',
'suffix' => '</b>', 'suffix' => '</b>',
@@ -101,13 +97,11 @@ class AdminOrdersControllerCore extends AdminController
'currency' => true 'currency' => true
), ),
'payment' => array( 'payment' => array(
'title' => $this->l('Payment: '), 'title' => $this->l('Payment: ')
'width' => 100
), ),
'osname' => array( 'osname' => array(
'title' => $this->l('Status'), 'title' => $this->l('Status'),
'color' => 'color', 'color' => 'color',
'width' => 280,
'type' => 'select', 'type' => 'select',
'list' => $statuses_array, 'list' => $statuses_array,
'filter_key' => 'os!id_order_state', 'filter_key' => 'os!id_order_state',
@@ -115,14 +109,12 @@ class AdminOrdersControllerCore extends AdminController
), ),
'date_add' => array( 'date_add' => array(
'title' => $this->l('Date'), 'title' => $this->l('Date'),
'width' => 130,
'align' => 'right', 'align' => 'right',
'type' => 'datetime', 'type' => 'datetime',
'filter_key' => 'a!date_add' 'filter_key' => 'a!date_add'
), ),
'id_pdf' => array( 'id_pdf' => array(
'title' => $this->l('PDF'), 'title' => $this->l('PDF'),
'width' => 35,
'align' => 'center', 'align' => 'center',
'callback' => 'printPDFIcons', 'callback' => 'printPDFIcons',
'orderby' => false, 'orderby' => false,
@@ -2258,4 +2250,3 @@ class AdminOrdersControllerCore extends AdminController
$order_invoice->update(); $order_invoice->update();
} }
} }
+6 -10
View File
@@ -35,7 +35,6 @@ class AdminSlipControllerCore extends AdminController
'id_order_slip' => array( 'id_order_slip' => array(
'title' => $this->l('ID'), 'title' => $this->l('ID'),
'align' => 'center', 'align' => 'center',
'width' => 25
), ),
'id_order' => array( 'id_order' => array(
'title' => $this->l('ID Order'), 'title' => $this->l('ID Order'),
@@ -43,13 +42,11 @@ class AdminSlipControllerCore extends AdminController
), ),
'date_add' => array( 'date_add' => array(
'title' => $this->l('Date issued'), 'title' => $this->l('Date issued'),
'width' => 150,
'type' => 'date', 'type' => 'date',
'align' => 'right' 'align' => 'right'
), ),
'id_pdf' => array( 'id_pdf' => array(
'title' => $this->l('PDF'), 'title' => $this->l('PDF'),
'width' => 35,
'align' => 'center', 'align' => 'center',
'callback' => 'printPDFIcons', 'callback' => 'printPDFIcons',
'orderby' => false, 'orderby' => false,
@@ -83,32 +80,31 @@ class AdminSlipControllerCore extends AdminController
$this->fields_form = array( $this->fields_form = array(
'legend' => array( 'legend' => array(
'title' => $this->l('Print a PDF'), 'title' => $this->l('Print a PDF'),
'image' => '../img/admin/pdf.gif' 'icon' => 'icon-print'
), ),
'input' => array( 'input' => array(
array( array(
'type' => 'date', 'type' => 'date',
'label' => $this->l('From:'), 'label' => $this->l('From:'),
'name' => 'date_from', 'name' => 'date_from',
'size' => 20,
'maxlength' => 10, 'maxlength' => 10,
'required' => true, 'required' => true,
'desc' => $this->l('Format: 2011-12-31 (inclusive)') 'hint' => $this->l('Format: 2011-12-31 (inclusive)')
), ),
array( array(
'type' => 'date', 'type' => 'date',
'label' => $this->l('To:'), 'label' => $this->l('To:'),
'name' => 'date_to', 'name' => 'date_to',
'size' => 20,
'maxlength' => 10, 'maxlength' => 10,
'required' => true, 'required' => true,
'desc' => $this->l('Format: 2012-12-31 (inclusive)') 'hint' => $this->l('Format: 2012-12-31 (inclusive)')
) )
), ),
'submit' => array( 'submit' => array(
'title' => $this->l('Generate PDF file'), 'title' => $this->l('Generate PDF file'),
'class' => 'button', 'class' => 'btn btn-primary',
'id' => 'submitPrint' 'id' => 'submitPrint',
'icon' => 'icon-download-alt'
) )
); );
+20 -25
View File
@@ -73,8 +73,7 @@ class AdminStatusesControllerCore extends AdminController
$this->fields_list = array( $this->fields_list = array(
'id_order_state' => array( 'id_order_state' => array(
'title' => $this->l('ID'), 'title' => $this->l('ID'),
'align' => 'center', 'align' => 'center'
'width' => 25
), ),
'name' => array( 'name' => array(
'title' => $this->l('Name'), 'title' => $this->l('Name'),
@@ -85,7 +84,6 @@ class AdminStatusesControllerCore extends AdminController
'title' => $this->l('Icon'), 'title' => $this->l('Icon'),
'align' => 'center', 'align' => 'center',
'image' => 'os', 'image' => 'os',
'width' => 25,
'orderby' => false, 'orderby' => false,
'search' => false 'search' => false
), ),
@@ -96,14 +94,12 @@ class AdminStatusesControllerCore extends AdminController
'1' => 'enabled.gif', '1' => 'enabled.gif',
'0' => 'disabled.gif' '0' => 'disabled.gif'
), ),
'width' => 190,
'type' => 'bool', 'type' => 'bool',
'orderby' => false 'orderby' => false
), ),
'delivery' => array( 'delivery' => array(
'title' => $this->l('Delivery'), 'title' => $this->l('Delivery'),
'align' => 'center', 'align' => 'center',
'width' => 25,
'icon' => array( 'icon' => array(
'1' => 'enabled.gif', '1' => 'enabled.gif',
'0' => 'disabled.gif' '0' => 'disabled.gif'
@@ -115,7 +111,6 @@ class AdminStatusesControllerCore extends AdminController
'invoice' => array( 'invoice' => array(
'title' => $this->l('Invoice'), 'title' => $this->l('Invoice'),
'align' => 'center', 'align' => 'center',
'width' => 25,
'icon' => array( 'icon' => array(
'1' => 'enabled.gif', '1' => 'enabled.gif',
'0' => 'disabled.gif' '0' => 'disabled.gif'
@@ -124,8 +119,7 @@ class AdminStatusesControllerCore extends AdminController
'orderby' => false 'orderby' => false
), ),
'template' => array( 'template' => array(
'title' => $this->l('Email template'), 'title' => $this->l('Email template')
'width' => 120
) )
); );
} }
@@ -146,8 +140,7 @@ class AdminStatusesControllerCore extends AdminController
$this->fields_list = array( $this->fields_list = array(
'id_order_return_state' => array( 'id_order_return_state' => array(
'title' => $this->l('ID'), 'title' => $this->l('ID'),
'align' => 'center', 'align' => 'center'
'width' => 25
), ),
'name' => array( 'name' => array(
'title' => $this->l('Name'), 'title' => $this->l('Name'),
@@ -245,7 +238,7 @@ class AdminStatusesControllerCore extends AdminController
'tinymce' => true, 'tinymce' => true,
'legend' => array( 'legend' => array(
'title' => $this->l('Order status'), 'title' => $this->l('Order status'),
'image' => '../img/admin/time.gif' 'icon' => 'icon-time'
), ),
'input' => array( 'input' => array(
array( array(
@@ -253,23 +246,23 @@ class AdminStatusesControllerCore extends AdminController
'label' => $this->l('Status name:'), 'label' => $this->l('Status name:'),
'name' => 'name', 'name' => 'name',
'lang' => true, 'lang' => true,
'size' => 40,
'required' => true, 'required' => true,
'hint' => $this->l('Invalid characters: numbers and').' !<>,;?=+()@#"�{}_$%:', 'hint' => array(
'desc' => $this->l('Order status (e.g. \'Pending\')') $this->l('Order status (e.g. \'Pending\')'),
$this->l('Invalid characters: numbers and').' !<>,;?=+()@#"�{}_$%:'
)
), ),
array( array(
'type' => 'file', 'type' => 'file',
'label' => $this->l('Icon:'), 'label' => $this->l('Icon:'),
'name' => 'icon', 'name' => 'icon',
'desc' => $this->l('Upload an icon from your computer (File type: .gif, suggested size: 16x16)') 'hint' => $this->l('Upload an icon from your computer (File type: .gif, suggested size: 16x16)')
), ),
array( array(
'type' => 'color', 'type' => 'color',
'label' => $this->l('Color:'), 'label' => $this->l('Color:'),
'name' => 'color', 'name' => 'color',
'size' => 30, 'hint' => $this->l('Status will be highlighted in this color. (HTML colors only)').' "lightblue", "#CC6600")'
'desc' => $this->l('Status will be highlighted in this color. (HTML colors only)').' "lightblue", "#CC6600")'
), ),
array( array(
'type' => 'checkbox', 'type' => 'checkbox',
@@ -358,8 +351,10 @@ class AdminStatusesControllerCore extends AdminController
'id' => 'id', 'id' => 'id',
'name' => 'name' 'name' => 'name'
), ),
'hint' => $this->l('Only letters, number and hashtags are allowed.'), 'hint' => array(
'desc' => $this->l('Email template for both .html and .txt') $this->l('Only letters, number and hashtags are allowed.'),
$this->l('Email template for both .html and .txt')
)
) )
), ),
'submit' => array( 'submit' => array(
@@ -392,7 +387,7 @@ class AdminStatusesControllerCore extends AdminController
'tinymce' => true, 'tinymce' => true,
'legend' => array( 'legend' => array(
'title' => $this->l('Order status'), 'title' => $this->l('Order status'),
'image' => '../img/admin/time.gif' 'icon' => 'icon-time'
), ),
'input' => array( 'input' => array(
array( array(
@@ -400,17 +395,17 @@ class AdminStatusesControllerCore extends AdminController
'label' => $this->l('Status name:'), 'label' => $this->l('Status name:'),
'name' => 'name', 'name' => 'name',
'lang' => true, 'lang' => true,
'size' => 40,
'required' => true, 'required' => true,
'hint' => $this->l('Invalid characters: numbers and').' !<>,;?=+()@#"�{}_$%:', 'hint' => array(
'desc' => $this->l('Order\'s return status name') $this->l('Order\'s return status name'),
$this->l('Invalid characters: numbers and').' !<>,;?=+()@#"�{}_$%:'
)
), ),
array( array(
'type' => 'color', 'type' => 'color',
'label' => $this->l('Color:'), 'label' => $this->l('Color:'),
'name' => 'color', 'name' => 'color',
'size' => 30, 'hint' => $this->l('Status will be highlighted in this color. (HTML colors only)').' "lightblue", "#CC6600")'
'desc' => $this->l('Status will be highlighted in this color. (HTML colors only)').' "lightblue", "#CC6600")'
) )
), ),
'submit' => array( 'submit' => array(