[intranet/impression] Affichage du code du Btiment J

darcs-hash:20081006060735-ffbb2-f47f80706cdfa33ba3993ced78d1a08224f52699.gz
This commit is contained in:
Nicolas Dandrimont 2008-10-06 08:07:35 +02:00
parent bcad68a7dd
commit 067948c565
2 changed files with 6 additions and 3 deletions

View file

@ -15,6 +15,8 @@ templatesEngine.on = True
[/impression] [/impression]
crans.activate = True crans.activate = True
crans.activate.errorMsg = u"Suite à un problème technique grave, l'imprimante est en attente de réparation. Les Nounous ont été prévenues et s'en chargent au plus vite" crans.activate.errorMsg = u"Suite à un problème technique grave, l'imprimante est en attente de réparation. Les Nounous ont été prévenues et s'en chargent au plus vite"
crans.impression.codes.batJ = u"B1364"
[/static] [/static]
sessionAuthenticateFilter.on=False sessionAuthenticateFilter.on=False

View file

@ -195,12 +195,13 @@ Impression.settings.updatePreview = function()
*****************************/ *****************************/
Impression.popup = {}; Impression.popup = {};
Impression.popup.popupImpression = function(code) { Impression.popup.popupImpression = function(code, codeJ) {
Popup.hide(); Popup.hide();
Popup.create({}, "Impression en cours...", Popup.create({}, "Impression en cours...",
DIV( DIV(
{"id":"printingPopupContent", "style":"background-image:url(./static/dialog-printer.png)"}, {"id":"printingPopupContent", "style":"background-image:url(./static/dialog-printer.png)"},
SPAN("code: "+code), SPAN("code: "+code),
SPAN("Batiment J: "+codeJ),
A({"href":"https://wiki.crans.org/VieCrans/ImpressionReseau", "class":"aide", "target":"_blank"}, "Comment récupérer mon impression ? "), A({"href":"https://wiki.crans.org/VieCrans/ImpressionReseau", "class":"aide", "target":"_blank"}, "Comment récupérer mon impression ? "),
A({"href":"index", "class":"aide", "style":"text-align:right;"}, "Nouvelle impression") A({"href":"index", "class":"aide", "style":"text-align:right;"}, "Nouvelle impression")
) )
@ -354,7 +355,7 @@ Impression.AJAX.finImpression = function(AJAXResp)
Impression.settings.disableForm(false); Impression.settings.disableForm(false);
Impression.settings.update(); Impression.settings.update();
} else { } else {
Impression.popup.popupImpression(AJAXResp.code); Impression.popup.popupImpression(AJAXResp.code, AJAXResp.code_bat_j);
} }
Impression.AJAX.updateSolde(); Impression.AJAX.updateSolde();
} }