::use 'design.mtt'::
::if(contracts!=null):: ::foreach c contracts:: ::c.name:: ::end:: ::end::
::if place!=null:: ::place:: ::end:: ::if place!=null::
$$nullSafe(::place.address1::) $$nullSafe(::place.address2::) $$nullSafe(::place.zipCode::) $$nullSafe(::place.city::)
::end::
::set hdate = hDate(date)::
::__("Distribution on ::date::",{date:hdate})::
::_("Orders will close on"):: ::if ArrayTool.mapLength(infos) == 1:: ::hDate( infos.iterator().next()[0].orderEndDate ):: ::else::
    ::foreach k infos.keys()::
  • ::set dists = infos.get(k):: ::if dists.length==1:: ::dists[0]._contract.name:: ::else:: ::set tt = "":: ::foreach d dists:: ::set tt = tt + d._contract.name + ". ":: ::end:: ::_("Autres"):: ::end:: : ::hDate(Date.fromString(k))::
  • ::end::
::end::
::foreach p products:: ::end::

::_("My order")::

::if(user==null):: ::_("Sign up and validate the order"):: ::else:: ::_("Validate"):: ::end:: ::_("You can check your previous orders in 'my account' section")::
::_("All products")::
::foreach g group.getCategoryGroups()::

::g.name::

::foreach c g.categs:: ::c.name::
::end::
::end::
::if blocks!=null:: ::foreach b blocks::

::b.title::

::raw b.html::

::end:: ::end::
::end::