diff --git a/src/dokumentor/static/css/style.css b/src/dokumentor/static/css/style.css index 8d00ad6..c9ef7f5 100644 --- a/src/dokumentor/static/css/style.css +++ b/src/dokumentor/static/css/style.css @@ -570,6 +570,7 @@ table.list {border-collapse: collapse;border:#dedede 1px solid;width: 100%;} .docs-content-wrapper table.list tr.doc-row {height:50px;} table.list tr:nth-child(odd) {background: #f7f7f7;} table.list tr:nth-child(even) {background: #fff;} +table.list tfoot tr:nth-child(odd) {background: #fff;} table.list tr th {text-align: left;font-size:12px;color:#646669;padding:7px 10px 7px 10px;border-right:#dedede 1px solid;border-bottom:#dedede 1px solid;border-top:none;background: #f7f7f7;} table.list tr th:last-child {border-right:none;} table.list tr th a {font-size:12px;color:#646669;text-decoration:none;} diff --git a/src/dokumentor/static/js/client.list.js b/src/dokumentor/static/js/client.list.js index e7bb316..26972f9 100644 --- a/src/dokumentor/static/js/client.list.js +++ b/src/dokumentor/static/js/client.list.js @@ -12,6 +12,6 @@ $(document).ready(function() { setup_client_edit_form(delete_form); setup_client_delete_links(delete_form, true); } - } + }; window.clients_edit_del_update(); }); diff --git a/src/dokumentor/static/js/dialogs.js b/src/dokumentor/static/js/dialogs.js index 3cf548a..827d903 100644 --- a/src/dokumentor/static/js/dialogs.js +++ b/src/dokumentor/static/js/dialogs.js @@ -42,8 +42,8 @@ $(document).ready(function() { if (data.success) { - console.log('!!!!!!!!!!!!!!!!!!!'); - console.log(data); + // console.log('!!!!!!!!!!!!!!!!!!!'); + // console.log(data); if (form[0].id == 'client-edit-form') { $('#id_client_text').hide(); diff --git a/src/dokumentor/static/js/docs/list.panels.js b/src/dokumentor/static/js/docs/list.panels.js index 71c0303..975fd7e 100644 --- a/src/dokumentor/static/js/docs/list.panels.js +++ b/src/dokumentor/static/js/docs/list.panels.js @@ -7,7 +7,7 @@ $(document).ready(function() { var doc_rows_click = $('tr.doc-row td.clck', table); var panels = $('.doc-panel'); var row_pointer = $('#row_pointer'); - + // on mouse entering thead - hide pointer and panels, and show filters $('thead', table).mouseenter(function() { row_pointer.hide(); @@ -19,7 +19,7 @@ $(document).ready(function() { $('tfoot', table).mouseenter(function() { row_pointer.hide(); panels.hide(); - $('.filters').show(); + $(' .filters').show(); }); // on mouse entering table row (tr) - @@ -64,7 +64,7 @@ $(document).ready(function() { var doc_id = $this.closest("tr").data("id") var doc_type = $this.data("doctype") var doc_attr = $this.data("attr") - $.post('/my/docs/ajax_toggle_doc_status/' + doc_type + '/' + doc_id + '/' + doc_attr + '/', function(data){ + $.post('/my/docs/ajax_toggle_doc_status/' + doc_type + '/' + doc_id + '/' + doc_attr + '/', function(data){ $this.text(data[0]); $this.removeClass('doc_status1 doc_status2 doc_status3 doc_statustrue doc_statusTrue doc_statusFalse doc_statusfalse'); $this.addClass('doc_status' + data[1]); diff --git a/src/dokumentor/templates/docs/_base/base_list.html b/src/dokumentor/templates/docs/_base/base_list.html index dde426c..0892871 100644 --- a/src/dokumentor/templates/docs/_base/base_list.html +++ b/src/dokumentor/templates/docs/_base/base_list.html @@ -68,7 +68,7 @@ {% endif %} {{ obj.doc_sum|default:"---" }} - {% endblock %} + {% endblock table_obj_cells %} {% block table_obj_cells_extra %}{% endblock %} @@ -77,8 +77,18 @@ {# важно! tfoot (также как и thead), нужен в js для показа/скрытия боковой панели #} {# правильный colspan нужен для IE, иначе он игнорит footer #} - {% block table_footer %} - {% endblock %} + + + {% block table_footer %} + + + + + + + {% endblock table_footer %} + +
{% include 'paginator.html' with url_list=url_prefix|add:'list' %} diff --git a/src/dokumentor/templates/docs/aktsverki/list.html b/src/dokumentor/templates/docs/aktsverki/list.html index fa06959..5f89b7f 100644 --- a/src/dokumentor/templates/docs/aktsverki/list.html +++ b/src/dokumentor/templates/docs/aktsverki/list.html @@ -34,8 +34,9 @@ {# важно! tfoot (также как и thead), нужен в js для показа/скрытия боковой панели #} {# правильный colspan нужен для IE, иначе он игнорит footer #} {% block table_footer %} - - {% include 'paginator.html' with url_list=url_prefix|add:'list' %} - -{% endblock %} - + + + + + +{% endblock table_footer %} diff --git a/src/dokumentor/templates/docs/dover/list.html b/src/dokumentor/templates/docs/dover/list.html index c491f71..9c3eb46 100644 --- a/src/dokumentor/templates/docs/dover/list.html +++ b/src/dokumentor/templates/docs/dover/list.html @@ -37,10 +37,12 @@ {# важно! tfoot (также как и thead), нужен в js для показа/скрытия боковой панели #} {# правильный colspan нужен для IE, иначе он игнорит footer #} {% block table_footer %} - - {% include 'paginator.html' with url_list=url_prefix|add:'list' %} - -{% endblock %} + + + + + +{% endblock table_footer %} {% block no-docs-create-new %} Вы ещё не создали ни одной {{ padeji.rodit }}.

Создать diff --git a/src/dokumentor/templates/docs/platejka/list.html b/src/dokumentor/templates/docs/platejka/list.html index 4b6fcfe..a249811 100644 --- a/src/dokumentor/templates/docs/platejka/list.html +++ b/src/dokumentor/templates/docs/platejka/list.html @@ -27,8 +27,10 @@ {# важно! tfoot (также как и thead), нужен в js для показа/скрытия боковой панели #} {# правильный colspan нужен для IE, иначе он игнорит footer #} {% block table_footer %} - - {% include 'paginator.html' with url_list=url_prefix|add:'list' %} - -{% endblock %} + + + + + +{% endblock table_footer %}