%namespace name="dialogH" file="jm2l:templates/Logistique/Dialog_Heberg.mako"/>
<%namespace name="dialogC" file="jm2l:templates/Logistique/Dialog_Covoit.mako"/>
<%namespace name="dialogM" file="jm2l:templates/Logistique/Dialog_Matos.mako"/>
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## Faire une Proposition
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<%def name="AddProposal(Type, form)"> \
<%
if Type=='H':
CurTitle = u"un hébergement"
CurIcon = "icon-home"
elif Type=='C':
CurTitle = "un co-voiturage"
CurIcon = "icon-road"
elif Type=='M':
CurTitle = u"un prêt de matériel"
CurIcon = "icon-shopping-cart"
%> \
%if 'exch_id' in form._fields.keys():
%def> \
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## Faire une Demande
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<%def name="AddAsk(Type, form)"> \
<%
if Type=='H':
CurTitle = u"un hébergement"
CurIcon = "icon-home"
elif Type=='C':
CurTitle = "un co-voiturage"
CurIcon = "icon-road"
elif Type=='M':
CurTitle = u"un prêt de matériel"
CurIcon = "icon-shopping-cart"
%>
% if 'exch_id' in form._fields.keys():
%def> \
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## Afficher les détails
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<%def name="Show(Type, Exch)"> \
<%
if Exch.exch_type=='H':
CurTitle = u"de l'hébergement"
CurIcon = "icon-home"
elif Exch.exch_type=='C':
CurTitle = "du co-voiturage"
CurIcon = "icon-road"
elif Exch.exch_type=='M':
CurTitle = u"du prêt de matériel"
CurIcon = "icon-shopping-cart"
%>
% if Type=='H':
${dialogH.ShowH(Exch)}
% elif Type=='C':
${dialogC.ShowC(Exch)}
% elif Type=='M':
${dialogM.ShowM(Exch)}
% endif
% if Exch.exch_state=='Ask':
% elif Exch.exch_state=='Proposal':
% endif
%def> \