{# -*- coding: utf-8 -*- #} {% extends 'template/base.html'|translate:lang %} {% load exfiltry %} {% load exsyntax %} {% load static %} {% load compress %} {% block js_scripts_base %} {% compress js %} {% jscript_link 'pytigon_js/pytigon-tools.js' %} {% jscript_link 'vanillajs_plugins/sprintf/sprintf.min.js' %} {% jscript_link 'vanillajs_plugins/moment.js/moment-with-locales.min.js' %} {% jscript_link 'vanillajs_plugins/lz-string/lz-string.min.js' %} {% jscript_link 'vanillajs_plugins/cookie/js.cookie.js' %} {% jscript_link 'vanillajs_plugins/tether/js/tether.min.js' %} {% jscript_link 'vanillajs_plugins/popper/popper.min.js' %} {% jscript_link 'jquery/jquery-3.2.1.min.js' %} {% jscript_link 'jquery_plugins/select2/js/select2.full.js' %} {% jscript_link 'django_select2/django_select2.js' %} {% jscript_link 'jquery_plugins/form/jquery.form.js' %} {% jscript_link 'jquery_plugins/csrf/csrf.js' %} {% jscript_link 'jquery_plugins/unique-element-id/jquery.unique-element-id.js' %} {% jscript_link 'jquery_plugins/draggable/jquery.draggable.js' %} {% jscript_link 'jquery_plugins/perfect-scrollbar/js/perfect-scrollbar.min.js' %} {% jscript_link 'jquery_plugins/jquery-treegrid/js/jquery.treegrid.min.js' %} {% jscript_link 'jquery_plugins/daterangepicker/daterangepicker.js' %} {% block bootstrap_js %} {% jscript_link 'bootstrap/js/bootstrap.js' %} {% endblock %} {% jscript_link 'bootstrap_plugins/bootstrap-table/bootstrap-table.js' %} {% jscript_link 'bootstrap_plugins/bootstrap-table/bootstrap-table-locale-all.min.js' %} {% jscript_link 'bootstrap_plugins/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js' %} {% jscript_link 'bootstrap_plugins/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js' %} {% jscript_link 'bootstrap_plugins/bootstrap4-editable/js/bootstrap4-editable.js' %} {% jscript_link 'bootstrap_plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js' %} {% jscript_link 'bootstrap_plugins/bootstrap-select/js/bootstrap-select.min.js' %} {% jscript_link 'bootstrap_plugins/bootstrap-ladda/spin.min.js' %} {% jscript_link 'bootstrap_plugins/bootstrap-ladda/ladda.min.js' %} {% jscript_link 'bootstrap_plugins/twbs-pagination/jquery.twbsPagination.min.js' %} {% jscript_link 'bootstrap_plugins/bootstrap-typeahead/bootstrap-typeahead.js' %} {% block theme_js_scripts %}{% endblock %} {% block ext_js_scripts %}{% endblock %} {% endcompress %} {% module_link 'pytigon_js/pytigon.js' %} {% endblock %} {% block jquery_init %} import {app_init,jquery_ready} from "{% get_static_prefix %}pytigon_js/pytigon.js"; import {init_db,init_sync} from "{% get_static_prefix %}pytigon_js/pytigon_js.db.js"; {% block js_app_init %} function base_fragment_init() {} {% endblock %} {% block component_init %} var component_init = null {% endblock %} app_init('{{prj_name}}', '{{application_type}}', '{{app_manager.get_menu_id}}', '{{ lang }}', '{{base_path}}', base_fragment_init, component_init, {% if offline_support %}true{% else %}false{% endif %}, '{{ settings.START_PAGE}}', '{{ gen_time }}' ); {% endblock %} {% block jquery_ready_start %} jQuery(document).ready(function() { {% endblock %} {% block jquery_ready %} jquery_ready(); base_fragment_init(); {% endblock %} {% block jquery_ready_end %} }); {% endblock %} {% block js_scripts %} {% if form_edit or form_delete or form_info %} {% if form_ext %} {{ block.super }} {% endif %} {% else %} {{ block.super }} {% endif %} {% endblock %} {% block js_extrascipts_init %} {% if form_edit or form_delete or form_info %} {% if form_ext %} {{ block.super }} {% endif %} {% else %} {{ block.super }} {% endif %} {% endblock %} {% block js_script_body %} {% block jquery_ovr %}{% endblock %} {% endblock %} {% block css_links %} {% compress css %} {% css_link 'vanillajs_plugins/tether/css/tether.min.css' %} {% css_link 'bootstrap_plugins/bootstrap-table/bootstrap-table.css' %} {% css_link 'bootstrap_plugins/bootstrap4-editable/css/bootstrap-editable.css' %} {% css_link 'fonts/font-awesome/css/font-awesome.min.css' %} {% css_link 'jquery_plugins/daterangepicker/daterangepicker.css' %} {% css_link 'bootstrap_plugins/bootstrap-select/css/bootstrap-select.min.css' %} {% css_link 'bootstrap_plugins/bootstrap-ladda/ladda-themeless.min.css' %} {% css_link 'jquery_plugins/perfect-scrollbar/css/perfect-scrollbar.css' %} {% css_link 'jquery_plugins/jquery-treegrid/css/jquery.treegrid.css' %} {% css_link 'jquery_plugins/select2/css/select2.min.css' %} {% comment %} {% css_link 'themes/select2-bootstrap.css' %} {% endcomment %} {{ form.media.css }} {% block botstrap_css %} {% css_link 'themes/bootswatch/materia/bootstrap.min.css' %} {% css_link 'bootstrap_plugins/awesome-bootstrap-checkbox.css' %} {% endblock %} {% block theme_css_links %} {% comment %} {% endcomment %} {% css_link 'themes/select2-material.css' %} {% endblock %} {% block theme_css_links_spec %} {% css_link 'themes/default.css' %} {% css_link 'themes/'|append_str:browser_type|append_str:'.css' %} {% endblock %} {% endcompress %} {% endblock %} {% block css_start %} {% endblock %} {% block login_header %}{% endblock %} {% block login_footer %}{% endblock %} {% block menu_start %}
{% endblock %} {% block topmenu_start %} {% comment %} {% endcomment %}
{% else %} {% endif %} {% endblock %} {% block menu_end %}
{% endblock %} {% block body_start %} {% block body_start_0 %} {% if not show_form %} {% if standard_web_browser %} {% else %} {% endif %} {% endif %} {% endblock %} {% block form_bar %}{% endblock %} {% endblock %} {% block grid1 %}{% endblock %} {% block tabs %} {% if NO_TABS or application_type != 'modern' %} {{block.super}} {% else %}
{{block.super}} {% endif %} {% endblock %} {% block body_desktop %} {% if ONLY_CONTENT %} {{block.super}} {% else %}
{{block.super}}
{% endif %} {% endblock %} {% block body_end %} {% if standard_web_browser %} {{ form.media.js }} {% endif %} {% if not show_form %}
{% endif %} {% endblock %} {% block body_init %} {% block loading-indicator: %} {% if ie %} {% else %} {% endif %} {% endblock %} {% endblock %} {% block tabsort_class %} {% if table_type == 'datatable' %} class="tabsort flexible_size table datatable table-hover table-striped table-sm table-condensed {%if get %}table_get{% endif %}" data-method="get" data-url="{{table_path_and_filter}}json/{% if get %}{{get}}/{% else %}list/{% endif %}" data-side-pagination="server" data-pagination="true" data-page-size="64" data-page-list="[64]" data-search="true" data-sortable="true" data-toolbar="#{{uuid}}_toolbar" data-locale="pl-PL" data-show-columns="true" data-icons-prefix="fa" data-icons="icons" data-id-field="cid" data-multiple-select-row="true" {# .data-click-to-select="true" #} data-mobile-responsive="true" {# .data-show-refresh="true" #} {% else %} class="tabsort table table-hover table-sm table-striped {%if get %}table_get{% endif %}" {% endif %} {% endblock %} {% block row_edit_header %} {% if form %} {{form.errors}} {% if form.errors %} {% endif %} {% endif %} {% endblock %} {% block row_edit_form %} {% if form %} {% if field %} {{form|get_value:field|field_as_widget:"width:100%,height:calc(99.9% - 20)" }} {% else %} {% block row_edit %} {% form %} {% endform %} {% endblock %} {% endif %} {% endif %} {% endblock %} {% block page_start %} {% if not show_form %} {{block.super}} {% endif %} {% endblock %} {% block page_head %} {% if not show_form %} {{block.super}} {% endif %} {% endblock %} {% block page_end %} {% if not show_form %} {{block.super}} {% endif %} {% endblock %}