You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

92 lines
2.1 KiB

::use 'design.mtt'::
<style>
table tr td{
white-space: nowrap;
overflow-x:hidden;
}
</style>
<div class="col-md-12">
<div class="article">
<div class="text-center">
<h3>
::_("Validate the delivery of the"):: ::hDate(date)::
</h3>
<h4
><span class="glyphicon glyphicon-map-marker"></span>::place::
</h4>
<p>
::if(confirmed)::
<div class="alert alert-success block-center" style="width:150px;margin:auto;">
<span class="glyphicon glyphicon-ok"></span>
::_("Validated")::
</div>
::else::
<div class="alert alert-danger block-center" style="width:150px;margin:auto;">
<span class="glyphicon glyphicon-exclamation-sign"></span>
::_("Not validated")::
</div>
::end::
</p>
</div>
<p class="text-center">
<a href="/contractAdmin/ordersByDate/::date.toString().substr(0,10)::/::place.id::" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-list-alt"></span> ::_("Back to the summary sheet of orders"):: </a>
</p>
<table class="table table-bordered table-hover table-condensed" style="width:100%;">
::foreach u users::
::set basket = getBasket(u.id,place.id,date)::
::if(basket.isValidated()==true)::
::set class="success"::
::else::
::set class="danger"::
::end::
<tr class="::class::">
<td>
<div class="basketNumber" ::cond basket!=null:: >
<i class="fa fa-shopping-basket" aria-hidden="true"></i> ::_("Num"):: ::basket.num::
</div>
</td>
<td>
::u.getCoupleName()::
</td>
<td class="text-right">
::if(class=="danger")::
<a href="/validate/::date::/::place.id::/::u.id::" class="btn btn-danger">
<i class="fa fa-chevron-right" aria-hidden="true"></i>
::_("To be validated")::
</a>
::else::
<a href="/validate/::date::/::place.id::/::u.id::" class="btn">
<span class="glyphicon glyphicon-ok"></span>
::_("Validated")::
</a>
::end::
</td>
</tr>
::end::
</table>
</div>
</div>
::end::