settings: add different ressources for banner format (#25787)

This commit is contained in:
Frédéric Péters 2018-09-04 10:41:28 +02:00
parent dd87564a24
commit fb6d0723b2
1 changed files with 41 additions and 37 deletions

78
debian/50gnm.py vendored
View File

@ -326,47 +326,51 @@ COMBO_ASSET_SLOTS = {
"commune:banner": {
"label": u"Bandeau communal"
},
"logo:atmo": {
"label": u"Logo Atmo"
},
"logo:grandlyon": {
"label": u"Logo Grand Lyon"
},
"logo:tcl": {
"label": u"Logo TCL"
},
"logo:velov": {
"label": u"Logo Velo'v"
},
"logo:toodego": {
"label": u"Logo Toodego"
},
"logo:rnsa": {
"label": u"Logo RNSA"
},
"picture:atmo": {
"label": u"Photographie Qualité de l'air"
},
"picture:mdr": {
"label": u"Photographie Maison du Rhône"
},
"picture:piscine": {
"label": u"Photographie Piscine"
},
"picture:pollen": {
"label": u"Photographie Pollen"
},
"picture:tcl": {
"label": u"Photographie TCL"
},
"picture:velov": {
"label": u"Photographie Velo'v"
},
}
producers = [
('atmo', 'Atmo'),
('grandlyon', 'Grand Lyon'),
('rnsa', 'RNSA'),
('tcl', 'TCL'),
('toodego', 'Toodego'),
('velov', "Velo'v"),
]
for producer, producer_label in producers:
COMBO_ASSET_SLOTS['logo:%s' % producer] = {
'label': u'Logo %s' % producer_label
}
tiles = [
('air', u"Qualité de l'air"),
('bibliotheque', u"Bibliothèque"),
('covoiturage', u"Aire de covoiturage"),
('decheterie', u"Déchèterie"),
('donnerie', u"Donnerie"),
('mdr', u"Maison du Rhône"),
('piscine', u"Piscine"),
('pollen', u"Pollen"),
('taxi', u"Taxi"),
('tcl', u"TCL"),
('velov', u"Velo'v"),
]
for tile, tile_label in tiles:
COMBO_ASSET_SLOTS['picture:%s' % tile] = {
'label': u'Photographie %s' % tile_label
}
if tile not in ('taxi', 'tcl', 'velov'):
COMBO_ASSET_SLOTS['picture:banner:%s' % tile] = {
'label': u'Photographie/bannière %s' % tile_label
}
WCS_FORM_ASSET_SLOTS = {
"picture": {
"prefix": u"Photo"
"prefix": u"Photographie"
},
"picture:banner": {
"prefix": u"Photographie/bannière"
},
"logo": {
"prefix": u"Picto"