::use 'design.mtt'::

::_("Planning of deliveries:"):: ::contract.name::

::raw _("Subscribe now by selecting checkboxes corresponding to dates which are convenient for you. The goal of attendances consists in helping during the delivery of products.")::

::foreach d distribs:: ::set date = getDate(d.date):: ::end:: ::set me = doodle.get(user.id):: ::foreach d distribs:: ::end:: ::foreach doo doodle:: ::foreach d distribs:: ::end:: ::end::
::date.dow::
::date.d::
::date.m::
::date.h+":"+date.i::
::user.getCoupleName():: ::if me !=null:: ::set a = me.planning.get(d.id):: ::if a!=null:: ::else:: ::if !d.hasEnoughDistributors():: ::else:: ::_("full"):: ::end:: ::end:: ::else:: ::if !d.hasEnoughDistributors():: ::else:: ::_("full"):: ::end:: ::end::
::doo.user.getCoupleName():: ::set a = doo.planning.get(d.id):: ::if a!=null:: ::end::
::_("Validate")::
::end::