$(function () {

    var content = gettext('<b>How to modify a published training</b></br>' +
        'A published training can\'t be modified, to edit it change its status to "draft". ' +
        'This action may take several minutes. ' +
        'It will create a duplicate of your training in draft mode. ' +
        'Trainers will still be able to use the published training.' +
        '</br></br> ' +
        '<b>Publish your draft</b></br>' +
        'Once you have done all your modifications in your draft, ' +
        'you may publish your draft training, it will overwrite the existing ' +
        '"published training".');

    var options = {
        selector: '[data-toggle="popover"]',
        trigger: 'hover',
        content: content,
        html: true
    };

    $('body').popover(options);

});
