aboutsummaryrefslogtreecommitdiffstats
path: root/jm2l/templates/Logistique/Dialog_Heberg.mako
blob: 737dfd5a57a2b2d36bee70fb2c07173f79a0b6fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<%namespace name="helper" file="jm2l:templates/helpers.mako"/>
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
##               Détail de l'échange d'hébergement 
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<%def name="ShowH(Exch)"> \
    ${helper.show_exchange(Exch, Exch.asker, Exch.provider)}
    <dl>
        <dt>Quoi</dt>
        % if Exch.Category:
            <dd>${Exch.Category.exch_subtype}</dd>
        % else:
            <dd>Un hébergement</dd>
        % endif
        <dt>Quand </dt>
        <dd>La nuit du ${Exch.start_time.strftime('%A %d %b %Y')} jusqu'au lendemain</dd>
        % if Exch.description:
            <dt>Détails </dt>
            <dd>${Exch.description}</dd>
        % endif
    </dl>    
</%def> \
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
##                 Proposition d'hébergement 
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<%def name="Heberg_Proposal(form)"> \
<% ## PlaceHolder, ContainerStyle, FieldStyle
    DicFormat = {
        "Day_start" :{'ContainerStyle':'float:left;', 'FieldStyle':'width:13em;'},
        "exch_categ" :{'FieldStyle':'width:18em;'},        
        "description":{'FieldStyle':'width:85%;'}
    }
%>
    ${helper.DisplayForm(form, DicFormat)}
    NB: Vous devez faire une proposition différente pour chaque nuit que vous proposez.
    <br>
    <a class="btn btn-mini btn-info" role="button" href="javascript:DoGetLieu('/2015/modal/Place/0');">
        <i class="icon-plus-sign icon-white"></i> Indiquer l'adresse proposée.
    </a>
</%def> \
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
##                   Demande d'hébergement 
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<%def name="Heberg_Ask(form)"> \
<% ## PlaceHolder, ContainerStyle, FieldStyle
    DicFormat = {  
        "description":{'FieldStyle':'width:85%;'}
    }
%>
    ${helper.DisplayForm(form, DicFormat)}
    NB: Vous devez faire une demande différente pour chaque nuit d'hébergement demandée.
</%def> \