diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-06 16:40:42 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-06 16:40:42 +0200 |
commit | 414dd4445e96cb6c5ccbaca0d831fb4b418cd036 (patch) | |
tree | 4505fb648a67ae86282d1b16008825b2d9f06859 | |
parent | 192f79a86561f276ac270992ace46932a63504a6 (diff) | |
download | Ishtar-414dd4445e96cb6c5ccbaca0d831fb4b418cd036.tar.bz2 Ishtar-414dd4445e96cb6c5ccbaca0d831fb4b418cd036.zip |
Enlarge your tables - twice the size (refs #3420)
3 files changed, 5 insertions, 5 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_findbasket.html b/archaeological_finds/templates/ishtar/sheet_findbasket.html index 6f8b12e6d..b6d4ffd42 100644 --- a/archaeological_finds/templates/ishtar/sheet_findbasket.html +++ b/archaeological_finds/templates/ishtar/sheet_findbasket.html @@ -9,5 +9,5 @@ <p class="window-refs">{{ item.label|default:"" }}</p> {% field "Owned by" item.user %} {% field "Comment" item.comment %} -{% dynamic_table_document_large finds 'finds_for_ope' 'basket' item.pk 'TABLE_COLS_FOR_OPE' output %} +{% dynamic_table_document finds 'finds_for_ope' 'basket' item.pk 'TABLE_COLS_FOR_OPE' output %} {% endblock %} diff --git a/ishtar_common/templates/ishtar/blocks/window_tables/dynamic_documents.html b/ishtar_common/templates/ishtar/blocks/window_tables/dynamic_documents.html index f751cebe3..891cd0f6f 100644 --- a/ishtar_common/templates/ishtar/blocks/window_tables/dynamic_documents.html +++ b/ishtar_common/templates/ishtar/blocks/window_tables/dynamic_documents.html @@ -41,7 +41,7 @@ setTimeout( alert("{% trans "An error as occured during search. Check your query fields." %}"); } }); - {% if large %}jQuery("#grid_{{name}}").jqGrid('setGridHeight', 400);{% endif %} + {% if large %}jQuery("#grid_{{name}}").jqGrid('setGridHeight', 272);{% endif %} }, 200); </script> diff --git a/ishtar_common/templatetags/window_tables.py b/ishtar_common/templatetags/window_tables.py index 960bc7184..bf4dd2b1a 100644 --- a/ishtar_common/templatetags/window_tables.py +++ b/ishtar_common/templatetags/window_tables.py @@ -71,7 +71,7 @@ ASSOCIATED_MODELS['containers'] = ( @register.simple_tag(takes_context=True) def dynamic_table_document( context, caption, associated_model, key, value, - table_cols='TABLE_COLS', output='html', large=False, + table_cols='TABLE_COLS', output='html', large=True, col_prefix=''): if not table_cols: table_cols = 'TABLE_COLS' @@ -135,9 +135,9 @@ def dynamic_table_document( @register.simple_tag(takes_context=True) -def dynamic_table_document_large( +def dynamic_table_document_small( context, caption, associated_model, key, value, table_cols='TABLE_COLS', output='html'): return dynamic_table_document( context, caption, associated_model, key, - value, table_cols, output, large=True) + value, table_cols, output, large=False) |