{"content": "\n<div class=\"djDebugPanelTitle\">\n  <button type=\"button\" class=\"djDebugClose\">\u00bb</button>\n  <h3>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0448\u0430\u0431\u043b\u043e\u043d\u0430: <code>base.html</code></h3>\n</div>\n<div class=\"djDebugPanelContent\">\n  <div class=\"djdt-scroll\">\n    \n      <code>{% load static %}\n&lt;!DOCTYPE html&gt;\n&lt;html lang=&quot;ru&quot;&gt;\n    {% block head %}\n    &lt;head&gt;\n    &lt;meta charset=&quot;utf-8&quot;&gt;\n    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;\n    \n    &lt;!-- Fonts --&gt;\n    &lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.googleapis.com&quot;&gt;\n&lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.gstatic.com&quot; crossorigin&gt;\n&lt;link href=&quot;https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,700;6..12,900&amp;display=swap&quot; rel=&quot;stylesheet&quot;&gt;\n    \n    &lt;!-- Bootstrap Icons --&gt;\n    &lt;link rel=&quot;stylesheet&quot; href=&quot;{% static &#x27;css/bootstrap-icons.css&#x27; %}&quot;&gt;\n    \n    &lt;!-- Bootstrap --&gt;\n    &lt;link href=&quot;{% static &#x27;css/bootstrap.min.css&#x27; %}&quot; rel=&quot;stylesheet&quot;&gt;\n    \n    &lt;!-- Bootstrap-select --&gt;\n    &lt;link rel=&quot;stylesheet&quot; href=&quot;{% static &#x27;css/bootstrap-select.min.css&#x27; %}&quot;&gt;\n    \n    &lt;!-- Owl Carousel --&gt;\n    &lt;link rel=&quot;stylesheet&quot; href=&quot;{% static &#x27;css/owl.carousel.min.css&#x27; %}&quot;&gt;\n    &lt;link rel=&quot;stylesheet&quot; href=&quot;{% static &#x27;css/owl.theme.default.min.css&#x27; %}&quot;&gt;\n    \n    &lt;!-- Fancybox --&gt;\n    &lt;link rel=&quot;stylesheet&quot; href=&quot;{% static &#x27;css/fancybox.min.css&#x27; %}&quot; /&gt;\n    &lt;link href=&quot;{% static &#x27;css/select2.min.css&#x27; %}&quot; rel=&quot;stylesheet&quot; /&gt;\n\n    &lt;link href=&quot;{% static &#x27;css/suggestions.min.css&#x27; %}&quot; rel=&quot;stylesheet&quot; /&gt;\n    \n    &lt;!-- \u0424\u0430\u0432\u0438\u043a\u043e\u043d --&gt;\n    &lt;link rel=&quot;apple-touch-icon&quot; sizes=&quot;180x180&quot; href=&quot;{% static &#x27;fav/apple-touch-icon.png&#x27; %}&quot;&gt; \n    &lt;link rel=&quot;icon&quot; type=&quot;image/png&quot; sizes=&quot;32x32&quot; href=&quot;{% static &#x27;fav/favicon-32x32.png&#x27; %}&quot;&gt;\n    &lt;link rel=&quot;icon&quot; type=&quot;image/png&quot; sizes=&quot;16x16&quot; href=&quot;{% static &#x27;fav/favicon-16x16.png&#x27; %}&quot;&gt;\n    \n    &lt;!-- CDN HTMX --&gt;\n    &lt;script src=&quot;{% static &#x27;js/unpkg.min.js&#x27; %}&quot;&gt;&lt;/script&gt;\n    \n    &lt;!-- Toastify --&gt;\n    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;{% static &#x27;css/toastify.min.css&#x27; %}&quot;&gt;\n    &lt;script src=&quot;{% static &#x27;js/toastify.js&#x27; %}&quot;&gt;&lt;/script&gt;\n\n\n    \n    \n    \n    {% block meta %} {% endblock %}\n    \n    \n    &lt;script&gt;\n        setTimeout(function(){\n            if ($(&#x27;#toast&#x27;).length &gt; 0) {\n                $(&#x27;#toast&#x27;).hide(&#x27;slow&#x27;);\n            }\n        }, 5000)\n    &lt;/script&gt;\n    \n    &lt;!--\u0412\u0420\u0415\u041c\u0415\u041d\u041d\u042b\u0415 \u0424\u0410\u0419\u041b\u042b--&gt;\n    {% include &#x27;include/css.html&#x27; %}\n\n\n\n    &lt;/head&gt;\n    {% endblock head %}\n    &lt;body&gt;\n        &lt;!-- \u043c\u0435\u043d\u044e \u0441\u0430\u0439\u0442\u0430 --&gt; \n        {% include &#x27;include/nav.html&#x27; %}\n        \n        &lt;!-- \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0441\u0430\u0439\u0442\u0430 --&gt;  \n        &lt;div class=&quot;pages_main&quot;&gt;\n            {% block content %} {% endblock %}\n        &lt;/div&gt;\n        &lt;!-- \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0441\u0430\u0439\u0442\u0430 --&gt; \n        \n        \n        &lt;!-- \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f --&gt;  \n        {% if messages %}\n            {% for message in messages %}\n                {% if message.tags == &#x27;success&#x27; %}\n                    &lt;div id=&#x27;toast&#x27; class=&#x27;toast-body bg-success text-light position-fixed bottom-0 end-0 p-3 m-3 &#x27; style=&#x27;z-index: 1111; border-radius: 4px;&#x27;&gt;{{message}}&lt;/div&gt;\n                {% endif %}\n                {% if message.tags == &#x27;info&#x27; %}\n                    &lt;div id=&#x27;toast&#x27; class=&#x27;toast-body bg-info text-light position-fixed bottom-0 end-0 p-3 m-3&#x27; style=&#x27;z-index: 1111; border-radius: 4px;&#x27;&gt;{{message}}&lt;/div&gt;\n                {% endif %}\n                {% if message.tags == &#x27;warning&#x27; %}\n                    &lt;div id=&#x27;toast&#x27; class=&#x27;toast-body bg-warning text-light position-fixed bottom-0 end-0 p-3 m-3&#x27; style=&#x27;z-index: 1111; border-radius: 4px;&#x27;&gt;{{message}}&lt;/div&gt;\n                {% endif %}\n                {% if message.tags == &#x27;error&#x27; %}\n                    &lt;div id=&#x27;toast&#x27; class=&#x27;toast-body bg-danger text-light position-fixed bottom-0 end-0 p-3 m-3&#x27; style=&#x27;z-index: 1111; border-radius: 4px;&#x27;&gt;{{message}}&lt;/div&gt;\n                {% endif %}\n                {% if message.tags == &#x27;debug&#x27; %}\n                    &lt;div id=&#x27;toast&#x27; class=&#x27;toast-body bg-primary text-light position-fixed bottom-0 end-0 p-3 m-3&#x27; style=&#x27;z-index: 1111; border-radius: 4px;&#x27;&gt;{{message}}&lt;/div&gt;\n                {% endif %}\n            {% endfor %}\n        {% endif %}\n&lt;!-- \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f --&gt; \n         \n        &lt;!-- footer \u0441\u0430\u0439\u0442\u0430 --&gt;\n        {% include &#x27;include/footer.html&#x27; %}   \n        \n        {% block js %}\n        \n    &lt;script src=&quot;{% static &#x27;js/bootstrap.bundle.min.js&#x27; %}&quot;&gt;&lt;/script&gt;\n    &lt;script src=&quot;{% static &#x27;js/jquery.min.js&#x27; %}&quot;&gt;&lt;/script&gt;\n    &lt;script src=&quot;{% static &#x27;js/jquery-3.2.1.slim.min.js&#x27; %}&quot;&gt;&lt;/script&gt;\n    &lt;script src=&quot;{% static &#x27;js/popper.min.js&#x27; %}&quot;&gt;&lt;/script&gt;\n    &lt;!-- &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js&quot;&gt;&lt;/script&gt; --&gt;\n    &lt;script src=&quot;{% static &#x27;js/owl.carousel.min.js&#x27; %}&quot;&gt;&lt;/script&gt;\n    &lt;script src=&quot;{% static &#x27;js/jquery.fancybox.min.js&#x27; %}&quot;&gt;&lt;/script&gt;\n    &lt;script src=&quot;{% static &#x27;js/select2.min.js&#x27; %}&quot;&gt;&lt;/script&gt;\n    &lt;script src=&quot;{% static &#x27;js/bootstrap.min.js&#x27; %}&quot;&gt;&lt;/script&gt;\n    &lt;script src=&quot;{% static &#x27;js/bootstrap-select.min.js&#x27; %}&quot;&gt;&lt;/script&gt;\n    &lt;script src=&quot;{% static &#x27;js/develop.js&#x27; %}&quot;&gt;&lt;/script&gt;\n    \n\n    &lt;script src=&quot;/static/smart-selects/admin/js/chainedfk.js&quot;&gt;&lt;/script&gt;\n    &lt;!-- &lt;script src=&quot;{% static &#x27;js/yandex_map/sidebar.js&#x27; %}&quot;&gt;&lt;/script&gt;\n    &lt;script src=&quot;{% static &#x27;js/yandex_map/panel.js&#x27; %}&quot;&gt;&lt;/script&gt; --&gt;\n\n    \n\n    &lt;script&gt;\n        let userCity = &#x27;&#x27;\n        $(&#x27;#cityNav&#x27;).prop(&#x27;disabled&#x27;, true);\n        $(&#x27;#cityNav&#x27;).selectpicker(&#x27;refresh&#x27;);        \n        $(&#x27;#regionNav&#x27;).prop(&#x27;disabled&#x27;, true);\n        $(&#x27;#regionNav&#x27;).selectpicker(&#x27;refresh&#x27;);\n\n        async function Regions () {\n            let response = await fetch(&#x27;/api/regions/?format=json&#x27;);\n            let jsonRegions = await response.json();\n            jsonRegions.map((region) =&gt; $(&#x27;#regionNav&#x27;).append(`&lt;option value=&quot;${region.id}&quot;&gt;${region.name}&lt;/option&gt;`))\n            $(&#x27;#regionNav&#x27;).prop(&#x27;disabled&#x27;, false);\n            $(&#x27;#regionNav&#x27;).selectpicker(&#x27;refresh&#x27;);\n\n            {%if city_user%}\n            $(&#x27;#regionNav&#x27;).selectpicker(&#x27;val&#x27;, &#x27;{{city_user.region.pk}}&#x27;);\n                let responseT = await fetch(&#x27;/api/citys/?format=json&amp;region={{city_user.region.pk}}&#x27;);\n                let jsonCitys = await responseT.json();\n                document.getElementById(&quot;cityNav&quot;).innerHTML = &#x27;&#x27;;\n                jsonCitys.map((city) =&gt; $(&#x27;#cityNav&#x27;).append(`&lt;option value=&quot;${city.id}&quot;&gt;${city.name}&lt;/option&gt;`))\n                $(&#x27;#cityNav&#x27;).prop(&#x27;disabled&#x27;, false);\n                $(&#x27;#cityNav&#x27;).selectpicker(&#x27;refresh&#x27;);\n                $(&#x27;#cityNav&#x27;).selectpicker(&#x27;val&#x27;, &#x27;{{city_user.pk}}&#x27;);\n            {%endif%}\n        }\n\n        document.getElementById(&#x27;regionNav&#x27;).addEventListener(&quot;change&quot;, async function handleCity() {\n                $(&#x27;#cityNav&#x27;).prop(&#x27;disabled&#x27;, true);\n                $(&#x27;#cityNav&#x27;).selectpicker(&#x27;refresh&#x27;);\n\n                let elem = document.getElementById(&#x27;regionNav&#x27;)\n                let response = await fetch(&#x27;/api/citys/?format=json&amp;region=&#x27;+elem.value);\n                let jsonCitys = await response.json();\n                \n                document.getElementById(&quot;cityNav&quot;).innerHTML = &#x27;&#x27;;\n                jsonCitys.map((city) =&gt; $(&#x27;#cityNav&#x27;).append(`&lt;option value=&quot;${city.id}&quot;&gt;${city.name}&lt;/option&gt;`))\n                $(&#x27;#cityNav&#x27;).prop(&#x27;disabled&#x27;, false);\n                $(&#x27;#cityNav&#x27;).selectpicker(&#x27;refresh&#x27;);\n            }\n            ); \n        document.getElementById(&#x27;cityNav&#x27;).addEventListener(&quot;change&quot;, () =&gt; {\n            let elem = document.getElementById(&#x27;cityNav&#x27;)\n            userCity = elem.value\n        }\n        )\n        async function SaveCity(event){\n            event.preventDefault()\n            let text = document.getElementById(&quot;changeCity&quot;)\n            text.innerHTML = $(&quot;#cityNav option:selected&quot; ).text()\n            //$(&#x27;#cityModal&#x27;).modal(&#x27;toggle&#x27;); \n            let response = await fetch(&#x27;/city_change/?city=&#x27;+userCity);\n            location.reload();\n        }\n        async function ResetCity() {\n            let response = await fetch(&#x27;/city_change/?city=0&#x27;);\n            location.reload();\n        }\n    &lt;/script&gt;\n    &lt;script&gt;\n        $(&#x27;.salaryselect&#x27;).selectpicker(&#x27;val&#x27;, &#x27;1&#x27;);\n    &lt;/script&gt;\n    {% endblock %}  \n    &lt;/body&gt;\n&lt;/html&gt;</code>\n    \n  </div>\n</div>\n"}