aboutsummaryrefslogtreecommitdiffstats
path: root/jm2l/templates/Logistique/Dialog_Matos.mako
blob: 4f2085cd4a4c6f1b29d843f6e74d008e8a71db42 (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
<%namespace name="helper" file="jm2l:templates/helpers.mako"/>
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
##               Détail de l'échange matériel
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<%def name="ShowM(Exch)"> \
    ${helper.show_exchange(Exch, Exch.asker, Exch.provider)}
    <dl>
        <dt>Catégorie</dt>
        <dd>${Exch.Category.exch_subtype}</dd>
        <dt>Quand </dt>
        <dd>de ${Exch.start_time.strftime('%A %d %b %Y').decode('utf-8')} vers ${Exch.start_time.strftime('%Hh%M')}
            à ${Exch.end_time.strftime('%A %d %b %Y').decode('utf-8')} vers ${Exch.end_time.strftime('%Hh%M')}
        </dd>
        <dt>Détails </dt>
        <dd>${Exch.description}</dd>
    </dl>
</%def> \
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
##                 Proposition de matériel
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<%def name="Matos_Proposal(form)"> \
<% ## PlaceHolder, ContainerStyle, FieldStyle
    DicFormat = {  
        "Day_start" :{'ContainerStyle':'float:left;', 'FieldStyle':'width:8em;'},
        "Hour_start" :{'ContainerStyle':'float:left;width:8em;', 'PlaceHolder':'10:00', 'FieldStyle':'width:4em;margin: 0 2px;'},
        "Day_end" :{'ContainerStyle':'float:left;', 'FieldStyle':'width:8em;'},
        "Hour_end" :{'PlaceHolder':'19:00', 'FieldStyle':'width:4em;margin: 0 2px;'},
        "description":{'FieldStyle':'width:85%;'},
        "exch_categ":{'FieldStyle':'width:10em;'}
    }
%>
    ${helper.DisplayForm(form, DicFormat)}
</%def> \
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
##                   Demande de matériel
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 
<%def name="Matos_Ask(form)"> \
<% ## PlaceHolder, ContainerStyle, FieldStyle
    DicFormat = {  
        "Day_start" :{'ContainerStyle':'float:left;', 'FieldStyle':'width:8em;'},
        "Hour_start" :{'ContainerStyle':'float:left;width:8em;', 'PlaceHolder':'10:00', 'FieldStyle':'width:4em;margin: 0 2px;'},
        "Day_end" :{'ContainerStyle':'float:left;', 'FieldStyle':'width:8em;'},
        "Hour_end" :{'PlaceHolder':'19:00', 'FieldStyle':'width:4em;margin: 0 2px;'},
        "description":{'FieldStyle':'width:85%;'},
        "exch_categ":{'FieldStyle':'width:10em;'}
    }
%>
    ${helper.DisplayForm(form, DicFormat)} 
</%def> \