{"en_US": "<data inherit_id=\"http_routing.500\">\n    <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->\n    <!-- This template should not use any variable except those provided by website.ir_http._handle_exception  -->\n    <!--    no request.crsf_token, no theme style, no assets, ... cursor can be broken during rendering !      -->\n    <!--    see test_05_reset_specific_view_controller_broken_request                                          -->\n    <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->\n    <xpath expr=\"//script[last()]\" position=\"before\">\n        <script type=\"text/javascript\" src=\"/web/static/lib/bootstrap/js/dist/util/component-functions.js\"/>\n        <script type=\"text/javascript\" src=\"/web/static/lib/bootstrap/js/dist/util/backdrop.js\"/>\n        <script type=\"text/javascript\" src=\"/web/static/lib/bootstrap/js/dist/util/focustrap.js\"/>\n        <script type=\"text/javascript\" src=\"/web/static/lib/bootstrap/js/dist/util/scrollbar.js\"/>\n        <script type=\"text/javascript\" src=\"/web/static/lib/bootstrap/js/dist/modal.js\"/>\n    </xpath>\n    <xpath expr=\"//style\" position=\"after\">\n        <t t-if=\"view\">\n            <script>\n                $(document).ready(function() {\n                    var button = $('.reset_templates_button');\n                    button.click(function() {\n                        $('#reset_templates_mode').val($(this).data('mode'));\n                        var dialog = $('#reset_template_confirmation').modal('show');\n                        var input = dialog.find('input[type=\"text\"]').val('').focus();\n                        var dialog_form = dialog.find('form');\n                        dialog_form.submit(function() {\n                            if (input.val() == dialog.find('.confirm_word').text()) {\n                                dialog.modal('hide');\n                                button.prop('disabled', true).text('Working...');\n                                const id = document.querySelector('input[id=\"reset_templates_view_id\"]').value;\n                                const redirect = document.querySelector('input[name=\"redirect\"]').value;\n                                const mode = document.querySelector('input[id=\"reset_templates_mode\"]').value;\n                                fetch('/website/reset_template', {\n                                    method: \"POST\",\n                                    headers: {\n                                        \"Content-Type\": \"application/json\",\n                                    },\n                                    'body': JSON.stringify({'params': {'view_id': id, 'mode': mode}})\n                                }).then(() =&gt; window.location = redirect);\n                            } else {\n                                input.val('').focus();\n                            }\n                            return false;\n                        });\n                        return false;\n                    });\n                });\n            </script>\n        </t>\n    </xpath>\n    <xpath expr=\"//div[@id='wrapwrap']\" position=\"before\">\n        <div t-if=\"view\" role=\"dialog\" id=\"reset_template_confirmation\" class=\"modal\" tabindex=\"-1\" t-ignore=\"true\">\n            <div class=\"modal-dialog\">\n                <form role=\"form\">\n                    <div class=\"modal-content\">\n                        <header class=\"modal-header\">\n                            <h4 class=\"modal-title\">Reset templates</h4>\n                            <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"/>\n                        </header>\n                        <main class=\"modal-body\">\n                            <div class=\"row mb0\">\n                                <label for=\"page-name\" class=\"col-md-12 col-form-label\">\n                                    <p>The selected templates will be reset to their factory settings.</p>\n                                </label>\n                            </div>\n                            <div class=\"row mb0\">\n                                <label for=\"page-name\" class=\"col-md-9 col-form-label\">\n                                    <p>Type '<i class=\"confirm_word\">yes</i>' in the box below if you want to confirm.</p>\n                                </label>\n                                <div class=\"col-md-3 mt16\">\n                                    <input type=\"text\" id=\"page-name\" class=\"form-control\" required=\"required\" placeholder=\"yes\"/>\n                                </div>\n                            </div>\n                        </main>\n                        <footer class=\"modal-footer\">\n                            <button type=\"button\" class=\"btn\" data-bs-dismiss=\"modal\" aria-label=\"Cancel\">Cancel</button>\n                            <input type=\"submit\" value=\"Confirm\" class=\"btn btn-primary\"/>\n                        </footer>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </xpath>\n    <xpath expr=\"//div[@id='error_message']\" position=\"after\">\n        <div class=\"container\" t-if=\"view and editable\">\n            <div class=\"alert alert-danger\" role=\"alert\">\n                <h4>Template fallback</h4>\n                <p>An error occurred while rendering the template <code t-esc=\"qweb_exception.name\"/>.</p>\n                <p>If this error is caused by a change of yours in the templates, you have the possibility to reset the template to its <strong>factory settings</strong>.</p>\n                <form action=\"#\" method=\"post\" id=\"reset_templates_form\">\n                    <ul>\n                        <li>\n                            <label>\n                                <t t-esc=\"view.name\"/>\n                            </label>\n                        </li>\n                    </ul>\n                    <input type=\"hidden\" name=\"redirect\" t-att-value=\"request.httprequest.path\"/>\n                    <input type=\"hidden\" id=\"reset_templates_view_id\" name=\"view_id\" t-att-value=\"view.id\"/>\n                    <input type=\"hidden\" id=\"reset_templates_mode\" name=\"mode\"/>\n                    <button data-mode=\"soft\" class=\"reset_templates_button btn btn-info\">Restore previous version (soft reset).</button>\n                    <button t-if=\"view.arch_fs\" data-mode=\"hard\" class=\"reset_templates_button btn btn-outline-danger\">Reset to initial version (hard reset).</button>\n                </form>\n            </div>\n        </div>\n    </xpath>\n</data>", "fr_FR": "<data inherit_id=\"http_routing.500\">\n    <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->\n    <!-- This template should not use any variable except those provided by website.ir_http._handle_exception  -->\n    <!--    no request.crsf_token, no theme style, no assets, ... cursor can be broken during rendering !      -->\n    <!--    see test_05_reset_specific_view_controller_broken_request                                          -->\n    <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->\n    <xpath expr=\"//script[last()]\" position=\"before\">\n        <script type=\"text/javascript\" src=\"/web/static/lib/bootstrap/js/dist/util/component-functions.js\"/>\n        <script type=\"text/javascript\" src=\"/web/static/lib/bootstrap/js/dist/util/backdrop.js\"/>\n        <script type=\"text/javascript\" src=\"/web/static/lib/bootstrap/js/dist/util/focustrap.js\"/>\n        <script type=\"text/javascript\" src=\"/web/static/lib/bootstrap/js/dist/util/scrollbar.js\"/>\n        <script type=\"text/javascript\" src=\"/web/static/lib/bootstrap/js/dist/modal.js\"/>\n    </xpath>\n    <xpath expr=\"//style\" position=\"after\">\n        <t t-if=\"view\">\n            <script>\n                $(document).ready(function() {\n                    var button = $('.reset_templates_button');\n                    button.click(function() {\n                        $('#reset_templates_mode').val($(this).data('mode'));\n                        var dialog = $('#reset_template_confirmation').modal('show');\n                        var input = dialog.find('input[type=\"text\"]').val('').focus();\n                        var dialog_form = dialog.find('form');\n                        dialog_form.submit(function() {\n                            if (input.val() == dialog.find('.confirm_word').text()) {\n                                dialog.modal('hide');\n                                button.prop('disabled', true).text('Working...');\n                                const id = document.querySelector('input[id=\"reset_templates_view_id\"]').value;\n                                const redirect = document.querySelector('input[name=\"redirect\"]').value;\n                                const mode = document.querySelector('input[id=\"reset_templates_mode\"]').value;\n                                fetch('/website/reset_template', {\n                                    method: \"POST\",\n                                    headers: {\n                                        \"Content-Type\": \"application/json\",\n                                    },\n                                    'body': JSON.stringify({'params': {'view_id': id, 'mode': mode}})\n                                }).then(() =&gt; window.location = redirect);\n                            } else {\n                                input.val('').focus();\n                            }\n                            return false;\n                        });\n                        return false;\n                    });\n                });\n            </script>\n        </t>\n    </xpath>\n    <xpath expr=\"//div[@id='wrapwrap']\" position=\"before\">\n        <div t-if=\"view\" role=\"dialog\" id=\"reset_template_confirmation\" class=\"modal\" tabindex=\"-1\" t-ignore=\"true\">\n            <div class=\"modal-dialog\">\n                <form role=\"form\">\n                    <div class=\"modal-content\">\n                        <header class=\"modal-header\">\n                            <h4 class=\"modal-title\">Réinitialiser les modèles</h4>\n                            <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Fermer\"/>\n                        </header>\n                        <main class=\"modal-body\">\n                            <div class=\"row mb0\">\n                                <label for=\"page-name\" class=\"col-md-12 col-form-label\">\n                                    <p>Les modèles sélectionnés seront réinitialisés aux paramètres d'usine.</p>\n                                </label>\n                            </div>\n                            <div class=\"row mb0\">\n                                <label for=\"page-name\" class=\"col-md-9 col-form-label\">\n                                    <p>Écrivez '<i class=\"confirm_word\">oui</i>' dans la case ci-dessous pour confirmer.</p>\n                                </label>\n                                <div class=\"col-md-3 mt16\">\n                                    <input type=\"text\" id=\"page-name\" class=\"form-control\" required=\"required\" placeholder=\"oui\"/>\n                                </div>\n                            </div>\n                        </main>\n                        <footer class=\"modal-footer\">\n                            <button type=\"button\" class=\"btn\" data-bs-dismiss=\"modal\" aria-label=\"Annuler\">Annuler</button>\n                            <input type=\"submit\" value=\"Confirm\" class=\"btn btn-primary\"/>\n                        </footer>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </xpath>\n    <xpath expr=\"//div[@id='error_message']\" position=\"after\">\n        <div class=\"container\" t-if=\"view and editable\">\n            <div class=\"alert alert-danger\" role=\"alert\">\n                <h4>Modèle de repli</h4>\n                <p>Une erreur s'est produite lors de l'affichage du modèle <code t-esc=\"qweb_exception.name\"/>.</p>\n                <p>Si cette erreur est causée par une de vos modification dans les modèles, vous avez la possibilité de réinitialiser le modèle à ses <strong>paramètres d'usine</strong>.</p>\n                <form action=\"#\" method=\"post\" id=\"reset_templates_form\">\n                    <ul>\n                        <li>\n                            <label>\n                                <t t-esc=\"view.name\"/>\n                            </label>\n                        </li>\n                    </ul>\n                    <input type=\"hidden\" name=\"redirect\" t-att-value=\"request.httprequest.path\"/>\n                    <input type=\"hidden\" id=\"reset_templates_view_id\" name=\"view_id\" t-att-value=\"view.id\"/>\n                    <input type=\"hidden\" id=\"reset_templates_mode\" name=\"mode\"/>\n                    <button data-mode=\"soft\" class=\"reset_templates_button btn btn-info\">Restaurer la version précédente (soft reset).</button>\n                    <button t-if=\"view.arch_fs\" data-mode=\"hard\" class=\"reset_templates_button btn btn-outline-danger\">Réinitialisation à la version initiale (hard reset).</button>\n                </form>\n            </div>\n        </div>\n    </xpath>\n</data>"}