create export for expeditor
This commit is contained in:
@@ -9,6 +9,10 @@
|
||||
|
||||
{elseloop rel="checkrights.colissimo"}
|
||||
|
||||
<div class="alert alert-info">
|
||||
<p>{intl l="Colissimo Module allows to send your products all around the world with La Poste."}</p>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="freeshipping-failed" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
@@ -25,13 +29,101 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="general-block-decorator">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-info">
|
||||
<p>{intl l="Colissimo Module allows to send your products all around the world with La Poste."}</p>
|
||||
<ul id="tabbed-menu" class="nav nav-tabs">
|
||||
<li class="active"><a data-toggle="tab" href="#export">{intl l="Export expeditor inet file"}</a> </li>
|
||||
<li class="{if $tab eq "1"}active{/if}"><a data-toggle="tab" href="#prices_slices_tab">{intl l="Price slices"}</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div id="export" class="tab-pane active form-container">
|
||||
{form name="colissimo.export.form"}
|
||||
{if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
|
||||
<form action="{url path='/admin/module/colissimo/export'}" method="post">
|
||||
{form_hidden_fields form=$form}
|
||||
<div class="panel panel-default">
|
||||
{form_field form=$form field="status_id"}
|
||||
<div class="panel-heading clearfix">
|
||||
{intl l="Change orders status after export"}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<div class="general-block-decorator">
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<label for="nochange">{intl l="Do not change"}</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="radio" id="nochange" name="{$name}" value="nochange"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="processing">{intl l="Processing"}</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="radio" id="processing" name="{$name}" value="processing"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="sent">{intl l="Sent"}*</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="radio" id="sent" name="{$name}" value="sent"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/form_field}
|
||||
<span class="p">{intl l="*If you choose this option, the exported orders would not be available on this page anymore"}</span>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-striped table-condensed">
|
||||
<thead>
|
||||
<th class="object-title">
|
||||
{intl l="REF"}
|
||||
</th>
|
||||
<th class="object-title">
|
||||
{intl l="Date"}
|
||||
</th>
|
||||
<th class="object-title">
|
||||
{intl l="Total taxed amount"}
|
||||
</th>
|
||||
<th class="object-title">
|
||||
{intl l="Export"}
|
||||
</th>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{loop name="colissimo.notsend.loop" type="colissimo.notsend.loop"}
|
||||
{form_field form=$form field="order_"|cat:$ID}
|
||||
<tr>
|
||||
<td>
|
||||
<label for="{$label_attr.for}">
|
||||
{$label}
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
{$CREATE_DATE|date_format}
|
||||
</td>
|
||||
<td>
|
||||
{$TOTAL_TAXED_AMOUNT} {loop name="list.socolissimo.getcurrency" type="currency" id=$CURRENCY}{$SYMBOL}{/loop}
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="{$name}" id="{$label_attr.for}" value="true" class="form-control"/>
|
||||
</td>
|
||||
</tr>
|
||||
{/form_field}
|
||||
{/loop}
|
||||
</tbody>
|
||||
</table>
|
||||
<button type="submit" name="export_socolissimo_form" value="stay" class="form-submit-button btn btn-sm btn-default" title="{intl l='Export'}">{intl l='Export'}</button>
|
||||
</form>
|
||||
{/form}
|
||||
</div>
|
||||
<div id="prices_slices_tab" class="tab-pane {if $tab eq 1}active{/if} form-container">
|
||||
<!-- checkbox free shipping -->
|
||||
{assign var="isColissimoFreeShipping" value=0}
|
||||
{form name="colissimo.freeshipping.form"}
|
||||
@@ -142,7 +234,8 @@
|
||||
</table>
|
||||
</div>
|
||||
{/loop}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,10 +7,12 @@
|
||||
<loops>
|
||||
<loop class="Colissimo\Loop\Price" name="colissimo"/>
|
||||
<loop class="Colissimo\Loop\CheckRightsLoop" name="colissimo.check.rights" />
|
||||
<loop class="Colissimo\Loop\NotSendLoop" name="colissimo.notsend.loop" />
|
||||
</loops>
|
||||
|
||||
<forms>
|
||||
<form name="colissimo.freeshipping.form" class="Colissimo\Form\FreeShipping" />
|
||||
<form name="colissimo.export.form" class="Colissimo\Form\Export" />
|
||||
</forms>
|
||||
|
||||
<commands>
|
||||
|
||||
@@ -10,4 +10,8 @@
|
||||
<route id="colissimo.edit.freeshipping" path="/admin/module/colissimo/freeshipping" methods="post">
|
||||
<default key="_controller">Colissimo\Controller\FreeShipping::set</default>
|
||||
</route>
|
||||
|
||||
<route id="colissimo.export" path="/admin/module/colissimo/export" methods="post">
|
||||
<default key="_controller">Colissimo\Controller\Export::exportAction</default>
|
||||
</route>
|
||||
</routes>
|
||||
|
||||
Reference in New Issue
Block a user