}
+.modal-warning .ui-dialog-titlebar {
+ background-image: none;
+ color: white;
+ background-color: red;
+ font-size: 20px;
+
+}
+.modal-warning .ui-dialog-buttonpane {
+ background-color: red;
+ color: white;
+}
+.modal-warning .ui-button {
+ background-color: white;
+ font-weight: 600;
+}
+/* modal dialog */
+.modal-warning .ui-dialog-content {
+ padding: 2em;
+ background-color: #f5f5f5;
+}
+
+
.desk_center {
float: left;
userCollapseText: 'Cacher le texte',
});
-
{% if popup_message %}
// show a warning popup and set a cookie to not display the popup each visit
if(getCookie('time-popup-view') != 1){
$( "#warning-message" ).dialog({
modal: true,
+ width: 400,
+ height: 400,
+ dialogClass: 'modal-warning',
buttons: {
Ok: function() {
$( this ).dialog( "close" );
context['seminar_progress'] = progress
context['seminar_validated'] = validated
delta_sec = context['delta_sec']
+ minutes = -delta_sec / 60
+ hours = minutes / 60
+ missing = "%d minutes" % minutes
+ if hours >= 1:
+ missing = "%dh%02d" % (hours, minutes % 60)
if progress == 100 and not validated and self.template_name == 'teleforma/seminar_detail.html':
- messages.info(self.request, _(
- "You have successfully terminated your e-learning seminar. A training testimonial will be available as soon as the pedagogical team validate all your answers (48h maximum)."))
+ if delta_sec < 0:
+ messages.info(self.request, _(
+ "You have successfully terminated your e-learning seminar. A training testimonial will be available as soon as the pedagogical team validate all your answers (48h maximum)."))
+ else:
+ messages.warning(self.request, _("Your connexion time is not sufficient. In order to get your testimonial, you "
+ "still have to work at least %(time)s.") % {'time': missing})
elif progress < 100 and validated and self.template_name == 'teleforma/seminar_detail.html' and missing_steps == set('5'):
messages.info(self.request, _(
"All your answers have been validated. You can now read the corrected documents (step 5)."))
messages.warning(self.request, _(
"You still need to complete step %(step)s in order to get yout testimonial.") % {'step': missing_steps.pop()})
if progress == 100 and validated and delta_sec < 0:
- minutes = -delta_sec / 60
- hours = minutes / 60
- missing = "%d minutes" % minutes
- if hours >= 1:
- missing = "%dh%02d" % (hours, minutes % 60)
messages.warning(self.request, _("Your connexion time is not sufficient. In order to get your testimonial, you "
"still have to work at least %(time)s.") % {'time': missing})
context['popup_message'] = _("Your connexion time is not sufficient. In order to get your testimonial, you "