settings: add different ressources for banner format (#25787)
This commit is contained in:
parent
dd87564a24
commit
fb6d0723b2
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue